From: Vincent Bernat Date: Mon, 14 Aug 2017 11:37:40 +0000 (+0200) Subject: tests: enable test for team device X-Git-Tag: 0.9.8~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3bea2f670ca27ffa74ca29bcb9cd54c1817a997;p=thirdparty%2Flldpd.git tests: enable test for team device --- diff --git a/tests/integration/fixtures/network.py b/tests/integration/fixtures/network.py index 8aa8cf92..e5f45f2d 100644 --- a/tests/integration/fixtures/network.py +++ b/tests/integration/fixtures/network.py @@ -79,7 +79,7 @@ class LinksFactory(object): def _bond_or_team(self, kind, name, *ifaces): """Create a bond or a team.""" - ipr = pyroute2.IPRoute() + ipr = pyroute2.RawIPRoute() # Create the bond ipr.link_create(ifname=name, kind=kind) diff --git a/tests/integration/test_interfaces.py b/tests/integration/test_interfaces.py index 292bf7fb..4adbc0ea 100644 --- a/tests/integration/test_interfaces.py +++ b/tests/integration/test_interfaces.py @@ -66,7 +66,6 @@ def test_bond(lldpd1, lldpd, lldpcli, namespaces, links, when): @pytest.mark.skipif('Dot3' not in pytest.config.lldpd.features, reason="Dot3 not supported") -@pytest.mark.skip(reason="Cannot create a simple team interface without teamd") @pytest.mark.parametrize('when', ['before', 'after']) def test_team(lldpd1, lldpd, lldpcli, namespaces, links, when): links(namespaces(3), namespaces(2)) # Another link to setup a bond @@ -83,7 +82,7 @@ def test_team(lldpd1, lldpd, lldpcli, namespaces, links, when): assert out['lldp.eth0.port.descr'] == 'eth1' assert out['lldp.eth0.port.aggregation'] == str(idx) # Unfortunately, we cannot get the right MAC currently... So, - # this bit will fail. + # this bit will succeed by chance. assert out['lldp.eth0.port.mac'] == '00:00:00:00:00:02'