make test: Add QUIC serial transfer test 24/19624/5
authorDave Wallace <dwallacelf@gmail.com>
Thu, 16 May 2019 01:41:23 +0000 (21:41 -0400)
committerPaul Vinciguerra <pvinci@vinciconsulting.com>
Fri, 17 May 2019 20:43:23 +0000 (20:43 +0000)
Change-Id: I7ed68dd199daa31269d45d67e0a4fa632e1a08d1
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
test/test_quic.py

index aed3408..0cb49cf 100644 (file)
@@ -178,8 +178,8 @@ class QUICInternalEchoIPv4TestCase(QUICTestCase):
         self.thru_host_stack_ipv4_setup()
 
     def tearDown(self):
-        self.thru_host_stack_ipv4_tear_down()
         super(QUICInternalEchoIPv4TestCase, self).tearDown()
+        self.thru_host_stack_ipv4_tear_down()
 
     def show_commands_at_teardown(self):
         self.logger.debug(self.vapi.cli("show session verbose 2"))
@@ -193,6 +193,42 @@ class QUICInternalEchoIPv4TestCase(QUICTestCase):
                                          ["no-output", "mbytes", "10"])
 
 
+class QUICInternalSerialEchoIPv4TestCase(QUICTestCase):
+    """ QUIC Internal Serial Echo IPv4 Transfer Test Cases """
+
+    @classmethod
+    def setUpClass(cls):
+        super(QUICInternalSerialEchoIPv4TestCase, cls).setUpClass()
+
+    @classmethod
+    def tearDownClass(cls):
+        super(QUICInternalSerialEchoIPv4TestCase, cls).tearDownClass()
+
+    def setUp(self):
+        super(QUICInternalSerialEchoIPv4TestCase, self).setUp()
+        self.thru_host_stack_ipv4_setup()
+
+    def tearDown(self):
+        super(QUICInternalSerialEchoIPv4TestCase, self).tearDown()
+        self.thru_host_stack_ipv4_tear_down()
+
+    def show_commands_at_teardown(self):
+        self.logger.debug(self.vapi.cli("show session verbose 2"))
+
+    @unittest.skipUnless(running_extended_tests, "part of extended tests")
+    def test_quic_serial_internal_transfer(self):
+        """ QUIC serial internal echo client/server transfer """
+
+        client_args = (self.client_echo_test_args +
+                       ["no-output", "mbytes", "10"])
+        self.internal_ipv4_transfer_test(self.server_echo_test_args,
+                                         client_args)
+        self.start_internal_echo_client(client_args)
+        self.start_internal_echo_client(client_args)
+        self.start_internal_echo_client(client_args)
+        self.start_internal_echo_client(client_args)
+
+
 class QUICInternalEchoIPv4MultiStreamTestCase(QUICTestCase):
     """ QUIC Internal Echo IPv4 Transfer Test Cases """
 
@@ -209,8 +245,8 @@ class QUICInternalEchoIPv4MultiStreamTestCase(QUICTestCase):
         self.thru_host_stack_ipv4_setup()
 
     def tearDown(self):
-        self.thru_host_stack_ipv4_tear_down()
         super(QUICInternalEchoIPv4MultiStreamTestCase, self).tearDown()
+        self.thru_host_stack_ipv4_tear_down()
 
     def show_commands_at_teardown(self):
         self.logger.debug(self.vapi.cli("show session verbose 2"))