Task #3366
closed
Make use of vde_switch to test transport behaviors
Added by Alex Afanasyev over 8 years ago.
Updated 3 months ago.
Description
vde_switch
(part of VDE-2, vde2
package on Ubuntu, vde
package in Homebrew) emulates switch/hub, with ability to create TAP interfaces.
For example,
vde_switch -t testTap1 -t testTap2
will create testTap1 and testTap2 interfaces that can be later properly configured. The configuration could be tricky, as it is platform-specific.
- Start date deleted (
12/21/2015)
The use of TUN/TAP in unit testing is expressly rejected in #3306 note-10.
- Tracker changed from Task to Feature
I forgot about #3306. But we still may keep this issue alive, if we will have serious test issues with multicast udp/ethernet. I understand that this is not a trivial task, but may be beneficial.
If not unit tests, TAP interfaces can be embedded in integrated tests. Specifically, the VLAN issue (#3348) can be tested with vde_switch
.
- Subject changed from Make use of `vde_switch` to unit-test transport behaviors to Make use of vde_switch to unit-test transport behaviors
Considering we wouldn't use the "distributed" part of VDE, what are the advantages compared to other solutions such as a virtual bridge + a number of veth or tap devices?
- Tags set to UnitTests
- Tracker changed from Feature to Task
- Category changed from Integration Tests to Faces
- Priority changed from Normal to Low
- Tags changed from unit-tests to unit-tests, needs-discussion
- Description updated (diff)
- Tags deleted (
needs-discussion, unit-tests)
- Subject changed from Make use of vde_switch to unit-test transport behaviors to Make use of vde_switch to test transport behaviors
- Status changed from New to Abandoned
Not sure if these tests can still be called "unit" tests if their execution requires a specific environment that must be externally set up.
In any case, I'm tentatively closing this issue and instead suggest that, if we ever implement this, we adopt a VM-based or container-based approach, like Testcontainers for instance.
Also available in: Atom
PDF