From 0d144c78d7119a0af71eda6e67f29fa56da2614d Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Wed, 15 May 2019 21:41:23 -0400 Subject: make test: Add QUIC serial transfer test Change-Id: I7ed68dd199daa31269d45d67e0a4fa632e1a08d1 Signed-off-by: Dave Wallace --- test/test_quic.py | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) (limited to 'test') 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")) -- cgit 1.2.3-korg