X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_vcl.py;h=79eb75f364ff343cc5bf89822e53ddeee74c0246;hb=882fcfe6f019f341e654daafe5afae9e69b64c50;hp=c02f13f6990edaf4cd1458009593bde0f6a9d9bd;hpb=56b39f6a9e1e467b3e7413092e20882df3d59ced;p=vpp.git diff --git a/test/test_vcl.py b/test/test_vcl.py index c02f13f6990..79eb75f364f 100644 --- a/test/test_vcl.py +++ b/test/test_vcl.py @@ -68,12 +68,12 @@ class VCLTestCase(VppTestCase): worker_client.join(self.timeout) try: self.validateResults(worker_client, worker_server, self.timeout) - except Exception, error: + except Exception as error: self.fail("Failed with %s" % error) def thru_host_stack_setup(self): self.vapi.session_enable_disable(is_enabled=1) - self.create_loopback_interfaces(range(2)) + self.create_loopback_interfaces(2) table_id = 1 @@ -117,7 +117,7 @@ class VCLTestCase(VppTestCase): def thru_host_stack_ipv6_setup(self): self.vapi.session_enable_disable(is_enabled=1) - self.create_loopback_interfaces(range(2)) + self.create_loopback_interfaces(2) table_id = 1 @@ -182,7 +182,7 @@ class VCLTestCase(VppTestCase): try: self.validateResults(worker_client, worker_server, self.timeout) - except Exception, error: + except Exception as error: self.fail("Failed with %s" % error) def validateResults(self, worker_client, worker_server, timeout): @@ -317,7 +317,6 @@ class VCLThruHostStackTestCase(VCLTestCase): super(VCLThruHostStackTestCase, self).tearDown() - @unittest.skipUnless(running_extended_tests(), "part of extended tests") def test_ldp_thru_host_stack_echo(self): """ run LDP thru host stack echo test """ @@ -333,9 +332,9 @@ class VCLThruHostStackTestCase(VCLTestCase): """ run VCL thru host stack echo test """ # TBD: Enable this when VPP thru host teardown config bug is fixed. - self.thru_host_stack_test("vcl_test_server", self.server_args, - "vcl_test_client", - self.client_echo_test_args) + # self.thru_host_stack_test("vcl_test_server", self.server_args, + # "vcl_test_client", + # self.client_echo_test_args) # TBD: Remove VCLThruHostStackExtended*TestCase classes and move # tests here when VPP thru host teardown/setup config bug @@ -621,7 +620,6 @@ class VCLIpv6ThruHostStackTestCase(VCLTestCase): super(VCLIpv6ThruHostStackTestCase, self).tearDown() - @unittest.skipUnless(running_extended_tests(), "part of extended tests") def test_ldp_ipv6_thru_host_stack_echo(self): """ run LDP IPv6 thru host stack echo test """ @@ -636,11 +634,9 @@ class VCLIpv6ThruHostStackTestCase(VCLTestCase): def test_vcl_ipv6_thru_host_stack_echo(self): """ run VCL IPv6 thru host stack echo test """ - # TBD: Enable this when VPP IPv6 thru host teardown - # config bug is fixed. - # self.thru_host_stack_test("vcl_test_server", self.server_ipv6_args, - # "vcl_test_client", - # self.client_ipv6_echo_test_args) +# self.thru_host_stack_test("vcl_test_server", self.server_ipv6_args, +# "vcl_test_client", +# self.client_ipv6_echo_test_args) # TBD: Remove VCLIpv6ThruHostStackExtended*TestCase classes and move # tests here when VPP thru host teardown/setup config bug