summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-05-18 00:35:50 -0700
committerDamjan Marion <dmarion@me.com>2021-05-21 06:57:03 +0000
commitdebb352df9ca40170534f1e3449934a02110db96 (patch)
tree9785e3145923b2f3eb46efc2cd87f256ec44aca2 /test
parent01314771535ca46fdf4a07a7dcde67bb8b30e024 (diff)
quic: add extended vcl test
Only works with release binaries. Type: test Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Iede88713e1dbc4d1c6ae62651ff9150f88953f4d
Diffstat (limited to 'test')
-rw-r--r--test/test_vcl.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/test_vcl.py b/test/test_vcl.py
index 7977c1d4e77..63dd3130e7f 100644
--- a/test/test_vcl.py
+++ b/test/test_vcl.py
@@ -490,6 +490,48 @@ class VCLThruHostStackDTLS(VCLTestCase):
self.logger.debug(self.vapi.cli("show app mq"))
+class VCLThruHostStackQUIC(VCLTestCase):
+ """ VCL Thru Host Stack QUIC """
+
+ @classmethod
+ def setUpClass(cls):
+ cls.extra_vpp_plugin_config.append("plugin quic_plugin.so { enable }")
+ super(VCLThruHostStackQUIC, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLThruHostStackQUIC, cls).tearDownClass()
+
+ def setUp(self):
+ super(VCLThruHostStackQUIC, self).setUp()
+
+ self.thru_host_stack_setup()
+ self.client_uni_dir_quic_timeout = 20
+ self.server_quic_args = ["-p", "quic", self.server_port]
+ self.client_uni_dir_quic_test_args = ["-N", "1000", "-U", "-X",
+ "-p", "quic",
+ self.loop0.local_ip4,
+ self.server_port]
+
+ @unittest.skipUnless(running_extended_tests, "part of extended tests")
+ def test_vcl_thru_host_stack_quic_uni_dir(self):
+ """ run VCL thru host stack uni-directional QUIC test """
+
+ self.timeout = self.client_uni_dir_quic_timeout
+ self.thru_host_stack_test("vcl_test_server", self.server_quic_args,
+ "vcl_test_client",
+ self.client_uni_dir_quic_test_args)
+
+ def tearDown(self):
+ self.thru_host_stack_tear_down()
+ super(VCLThruHostStackQUIC, self).tearDown()
+
+ def show_commands_at_teardown(self):
+ self.logger.debug(self.vapi.cli("show app server"))
+ self.logger.debug(self.vapi.cli("show session verbose 2"))
+ self.logger.debug(self.vapi.cli("show app mq"))
+
+
class VCLThruHostStackBidirNsock(VCLTestCase):
""" VCL Thru Host Stack Bidir Nsock """