tests: TestL2bdMultiInst - break serial dependency on tests
enable the tests to run out of order/enable running an individual test. Before: [gw1] [ 20%] FAILED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_02 [gw0] [ 40%] PASSED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_01 [gw1] [ 60%] PASSED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_04 [gw0] [ 80%] FAILED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_03 [gw1] [100%] SKIPPED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_05 ------- After: [gw1] [ 20%] PASSED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_02 [gw0] [ 40%] PASSED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_01 [gw1] [ 60%] PASSED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_04 [gw0] [ 80%] PASSED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_03 [gw1] [100%] PASSED test/test_l2bd_multi_instance.py::TestL2bdMultiInst::test_l2bd_inst_05 Type: test Change-Id: Ie40eb310f5fccacf854c364aa017891bce9b9372 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
This commit is contained in:

committed by
Neale Ranns

parent
4a94cd26ef
commit
548d5ee733
@ -115,15 +115,6 @@ class TestL2bdMultiInst(VppTestCase):
|
|||||||
for i in cls.pg_interfaces:
|
for i in cls.pg_interfaces:
|
||||||
i.admin_up()
|
i.admin_up()
|
||||||
|
|
||||||
# Create list of BDs
|
|
||||||
cls.bd_list = list()
|
|
||||||
|
|
||||||
# Create list of deleted BDs
|
|
||||||
cls.bd_deleted_list = list()
|
|
||||||
|
|
||||||
# Create list of pg_interfaces in BDs
|
|
||||||
cls.pg_in_bd = list()
|
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
super(TestL2bdMultiInst, cls).tearDownClass()
|
super(TestL2bdMultiInst, cls).tearDownClass()
|
||||||
raise
|
raise
|
||||||
@ -138,6 +129,14 @@ class TestL2bdMultiInst(VppTestCase):
|
|||||||
"""
|
"""
|
||||||
self.reset_packet_infos()
|
self.reset_packet_infos()
|
||||||
super(TestL2bdMultiInst, self).setUp()
|
super(TestL2bdMultiInst, self).setUp()
|
||||||
|
# Create list of BDs
|
||||||
|
self.bd_list = []
|
||||||
|
|
||||||
|
# Create list of deleted BDs
|
||||||
|
self.bd_deleted_list = []
|
||||||
|
|
||||||
|
# Create list of pg_interfaces in BDs
|
||||||
|
self.pg_in_bd = []
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""
|
"""
|
||||||
@ -406,12 +405,14 @@ class TestL2bdMultiInst(VppTestCase):
|
|||||||
# Test 1
|
# Test 1
|
||||||
# self.vapi.cli("clear trace")
|
# self.vapi.cli("clear trace")
|
||||||
self.run_verify_test()
|
self.run_verify_test()
|
||||||
|
self.delete_bd(5)
|
||||||
|
|
||||||
def test_l2bd_inst_02(self):
|
def test_l2bd_inst_02(self):
|
||||||
""" L2BD Multi-instance test 2 - update data of 5 BDs
|
""" L2BD Multi-instance test 2 - update data of 5 BDs
|
||||||
"""
|
"""
|
||||||
# Config 2
|
# Config 2
|
||||||
# Update data of 5 BDs (disable learn, forward, flood, uu-flood)
|
# Update data of 5 BDs (disable learn, forward, flood, uu-flood)
|
||||||
|
self.create_bd_and_mac_learn(5)
|
||||||
self.set_bd_flags(self.bd_list[0], learn=False, forward=False,
|
self.set_bd_flags(self.bd_list[0], learn=False, forward=False,
|
||||||
flood=False, uu_flood=False)
|
flood=False, uu_flood=False)
|
||||||
self.set_bd_flags(self.bd_list[1], forward=False)
|
self.set_bd_flags(self.bd_list[1], forward=False)
|
||||||
@ -432,12 +433,14 @@ class TestL2bdMultiInst(VppTestCase):
|
|||||||
flood=True, uu_flood=False)
|
flood=True, uu_flood=False)
|
||||||
self.verify_bd(self.bd_list[4], learn=False, forward=True,
|
self.verify_bd(self.bd_list[4], learn=False, forward=True,
|
||||||
flood=True, uu_flood=True)
|
flood=True, uu_flood=True)
|
||||||
|
self.delete_bd(5)
|
||||||
|
|
||||||
def test_l2bd_inst_03(self):
|
def test_l2bd_inst_03(self):
|
||||||
""" L2BD Multi-instance test 3 - delete 2 BDs
|
""" L2BD Multi-instance test 3 - delete 2 BDs
|
||||||
"""
|
"""
|
||||||
# Config 3
|
# Config 3
|
||||||
# Delete 2 BDs
|
# Delete 2 BDs
|
||||||
|
self.create_bd_and_mac_learn(5)
|
||||||
self.delete_bd(2)
|
self.delete_bd(2)
|
||||||
|
|
||||||
# Verify 3
|
# Verify 3
|
||||||
@ -448,6 +451,7 @@ class TestL2bdMultiInst(VppTestCase):
|
|||||||
|
|
||||||
# Test 3
|
# Test 3
|
||||||
self.run_verify_test()
|
self.run_verify_test()
|
||||||
|
self.delete_bd(3, 3)
|
||||||
|
|
||||||
def test_l2bd_inst_04(self):
|
def test_l2bd_inst_04(self):
|
||||||
""" L2BD Multi-instance test 4 - add 2 BDs
|
""" L2BD Multi-instance test 4 - add 2 BDs
|
||||||
@ -464,13 +468,14 @@ class TestL2bdMultiInst(VppTestCase):
|
|||||||
# Test 4
|
# Test 4
|
||||||
# self.vapi.cli("clear trace")
|
# self.vapi.cli("clear trace")
|
||||||
self.run_verify_test()
|
self.run_verify_test()
|
||||||
|
self.delete_bd(2)
|
||||||
|
|
||||||
@unittest.skipUnless(running_extended_tests, "part of extended tests")
|
|
||||||
def test_l2bd_inst_05(self):
|
def test_l2bd_inst_05(self):
|
||||||
""" L2BD Multi-instance test 5 - delete 5 BDs
|
""" L2BD Multi-instance test 5 - delete 5 BDs
|
||||||
"""
|
"""
|
||||||
# Config 5
|
# Config 5
|
||||||
# Delete 5 BDs
|
# Delete 5 BDs
|
||||||
|
self.create_bd_and_mac_learn(5)
|
||||||
self.delete_bd(5)
|
self.delete_bd(5)
|
||||||
|
|
||||||
# Verify 5
|
# Verify 5
|
||||||
|
Reference in New Issue
Block a user