aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_quic.py
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2019-05-15 21:41:23 -0400
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-05-17 20:43:23 +0000
commit0d144c78d7119a0af71eda6e67f29fa56da2614d (patch)
treeb113ab6b6b87762389c25220ee5f8d9acf8d634e /test/test_quic.py
parent9673e3e628b01c4ea4ac74a85e42b3686b029ea6 (diff)
make test: Add QUIC serial transfer test
Change-Id: I7ed68dd199daa31269d45d67e0a4fa632e1a08d1 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'test/test_quic.py')
-rw-r--r--test/test_quic.py40
1 files changed, 38 insertions, 2 deletions
diff --git a/test/test_quic.py b/test/test_quic.py
index aed34088e00..0cb49cf8358 100644
--- a/test/test_quic.py
+++ b/test/test_quic.py
@@ -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"))