diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-03-12 19:23:27 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-04-10 14:37:40 +0000 |
commit | 7f9b7f9f492d1748d8ba025b3a713058fdb1943d (patch) | |
tree | 8f12656075439b4434d666be85ae34112cc37371 /test/test_classifier.py | |
parent | 2e1c8967faf4e9f7b45471df02e4e5b07fbb520a (diff) |
Tests Cleanup: Fix missing calls to setUpClass/tearDownClass.
Continuation/Part 2 of https://gerrit.fd.io/r/#/c/17092/
Change-Id: Id0122d84eaf2c05d29e5be63a594d5e528ee7c9a
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_classifier.py')
-rw-r--r-- | test/test_classifier.py | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/test/test_classifier.py b/test/test_classifier.py index 5585ac02da4..51449016ffb 100644 --- a/test/test_classifier.py +++ b/test/test_classifier.py @@ -25,6 +25,10 @@ class TestClassifier(VppTestCase): super(TestClassifier, cls).setUpClass() cls.acl_active_table = '' + @classmethod + def tearDownClass(cls): + super(TestClassifier, cls).tearDownClass() + def setUp(self): """ Perform test setup before test case. @@ -323,6 +327,14 @@ class TestClassifier(VppTestCase): class TestClassifierIP(TestClassifier): """ Classifier IP Test Case """ + @classmethod + def setUpClass(cls): + super(TestClassifierIP, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestClassifierIP, cls).tearDownClass() + def test_iacl_src_ip(self): """ Source IP iACL test @@ -419,6 +431,14 @@ class TestClassifierIP(TestClassifier): class TestClassifierUDP(TestClassifier): """ Classifier UDP proto Test Case """ + @classmethod + def setUpClass(cls): + super(TestClassifierUDP, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestClassifierUDP, cls).tearDownClass() + def test_iacl_proto_udp(self): """ UDP protocol iACL test @@ -559,6 +579,14 @@ class TestClassifierUDP(TestClassifier): class TestClassifierTCP(TestClassifier): """ Classifier TCP proto Test Case """ + @classmethod + def setUpClass(cls): + super(TestClassifierTCP, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestClassifierTCP, cls).tearDownClass() + def test_iacl_proto_tcp(self): """ TCP protocol iACL test @@ -700,6 +728,14 @@ class TestClassifierTCP(TestClassifier): class TestClassifierIPOut(TestClassifier): """ Classifier output IP Test Case """ + @classmethod + def setUpClass(cls): + super(TestClassifierIPOut, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestClassifierIPOut, cls).tearDownClass() + def test_acl_ip_out(self): """ Output IP ACL test @@ -735,6 +771,14 @@ class TestClassifierIPOut(TestClassifier): class TestClassifierMAC(TestClassifier): """ Classifier MAC Test Case """ + @classmethod + def setUpClass(cls): + super(TestClassifierMAC, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestClassifierMAC, cls).tearDownClass() + def test_acl_mac(self): """ MAC ACL test @@ -770,6 +814,14 @@ class TestClassifierMAC(TestClassifier): class TestClassifierPBR(TestClassifier): """ Classifier PBR Test Case """ + @classmethod + def setUpClass(cls): + super(TestClassifierPBR, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestClassifierPBR, cls).tearDownClass() + def test_acl_pbr(self): """ IP PBR test |