class VCLTestCase(VppTestCase):
""" VCL Test Class """
- def __init__(self, methodName):
+ @classmethod
+ def setUpClass(cls):
+ super(VCLTestCase, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLTestCase, cls).tearDownClass()
+
+ def setUp(self):
var = "VPP_BUILD_DIR"
self.build_dir = os.getenv(var, None)
if self.build_dir is None:
if os.path.isfile("/tmp/ldp_server_af_unix_socket"):
os.remove("/tmp/ldp_server_af_unix_socket")
- super(VCLTestCase, self).__init__(methodName)
+ super(VCLTestCase, self).setUp()
def cut_thru_setup(self):
self.vapi.session_enable_disable(is_enabled=1)
class LDPCutThruTestCase(VCLTestCase):
""" LDP Cut Thru Tests """
+ @classmethod
+ def setUpClass(cls):
+ super(LDPCutThruTestCase, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(LDPCutThruTestCase, cls).tearDownClass()
+
def setUp(self):
super(LDPCutThruTestCase, self).setUp()
class VCLCutThruTestCase(VCLTestCase):
""" VCL Cut Thru Tests """
+ @classmethod
+ def setUpClass(cls):
+ super(VCLCutThruTestCase, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLCutThruTestCase, cls).tearDownClass()
+
def setUp(self):
super(VCLCutThruTestCase, self).setUp()
class LDPThruHostStackEcho(VCLTestCase):
""" LDP Thru Host Stack Echo """
+ @classmethod
+ def setUpClass(cls):
+ super(LDPThruHostStackEcho, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(LDPThruHostStackEcho, cls).tearDownClass()
+
def setUp(self):
super(LDPThruHostStackEcho, self).setUp()
class VCLThruHostStackEcho(VCLTestCase):
""" VCL Thru Host Stack Echo """
+ @classmethod
+ def setUpClass(cls):
+ super(VCLThruHostStackEcho, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLThruHostStackEcho, cls).tearDownClass()
+
def setUp(self):
super(VCLThruHostStackEcho, self).setUp()
class VCLThruHostStackBidirNsock(VCLTestCase):
""" VCL Thru Host Stack Bidir Nsock """
+ @classmethod
+ def setUpClass(cls):
+ super(VCLThruHostStackBidirNsock, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLThruHostStackBidirNsock, cls).tearDownClass()
+
def setUp(self):
super(VCLThruHostStackBidirNsock, self).setUp()
class LDPThruHostStackBidirNsock(VCLTestCase):
""" LDP Thru Host Stack Bidir Nsock """
+ @classmethod
+ def setUpClass(cls):
+ super(LDPThruHostStackBidirNsock, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(LDPThruHostStackBidirNsock, cls).tearDownClass()
+
def setUp(self):
super(LDPThruHostStackBidirNsock, self).setUp()
class LDPThruHostStackNsock(VCLTestCase):
""" LDP Thru Host Stack Nsock """
+ @classmethod
+ def setUpClass(cls):
+ super(LDPThruHostStackNsock, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(LDPThruHostStackNsock, cls).tearDownClass()
+
def setUp(self):
super(LDPThruHostStackNsock, self).setUp()
class VCLThruHostStackNsock(VCLTestCase):
""" VCL Thru Host Stack Nsock """
+ @classmethod
+ def setUpClass(cls):
+ super(VCLThruHostStackNsock, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLThruHostStackNsock, cls).tearDownClass()
+
def setUp(self):
super(VCLThruHostStackNsock, self).setUp()
class LDPThruHostStackIperf(VCLTestCase):
""" LDP Thru Host Stack Iperf """
+ @classmethod
+ def setUpClass(cls):
+ super(LDPThruHostStackIperf, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(LDPThruHostStackIperf, cls).tearDownClass()
+
def setUp(self):
super(LDPThruHostStackIperf, self).setUp()
class LDPIpv6CutThruTestCase(VCLTestCase):
""" LDP IPv6 Cut Thru Tests """
+ @classmethod
+ def setUpClass(cls):
+ super(LDPIpv6CutThruTestCase, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(LDPIpv6CutThruTestCase, cls).tearDownClass()
+
def setUp(self):
super(LDPIpv6CutThruTestCase, self).setUp()
class VCLIpv6CutThruTestCase(VCLTestCase):
""" VCL IPv6 Cut Thru Tests """
+ @classmethod
+ def setUpClass(cls):
+ super(VCLIpv6CutThruTestCase, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLIpv6CutThruTestCase, cls).tearDownClass()
+
def setUp(self):
super(VCLIpv6CutThruTestCase, self).setUp()
class VCLIpv6ThruHostStackEcho(VCLTestCase):
""" VCL IPv6 Thru Host Stack Echo """
+ @classmethod
+ def setUpClass(cls):
+ super(VCLIpv6ThruHostStackEcho, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLIpv6ThruHostStackEcho, cls).tearDownClass()
+
def setUp(self):
super(VCLIpv6ThruHostStackEcho, self).setUp()