aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-02-18 22:39:39 -0800
committerDamjan Marion <dmarion@me.com>2019-02-20 09:34:30 +0000
commit8a140616a5bab477817e7ed59afe6b01bd3d2f3a (patch)
treee2be74643d523312b896d2757d9e59b98c8f87c6 /test
parent8c2dd1bf54af71e4b256bdf885efe2ac53fc6c86 (diff)
tls: add vcl test
Change-Id: If4c7efaf6506a827e7a95a56c2f6b6060df03fa1 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_vcl.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/test_vcl.py b/test/test_vcl.py
index bd7eb76f07e..d88d94454dd 100644
--- a/test/test_vcl.py
+++ b/test/test_vcl.py
@@ -422,6 +422,42 @@ class VCLThruHostStackEcho(VCLTestCase):
super(VCLThruHostStackEcho, self).tearDown()
+class VCLThruHostStackTLS(VCLTestCase):
+ """ VCL Thru Host Stack TLS """
+
+ @classmethod
+ def setUpClass(cls):
+ super(VCLThruHostStackTLS, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLThruHostStackTLS, cls).tearDownClass()
+
+ def setUp(self):
+ super(VCLThruHostStackTLS, self).setUp()
+
+ self.thru_host_stack_setup()
+ self.client_uni_dir_tls_timeout = 20
+ self.server_tls_args = ["-S", self.server_port]
+ self.client_uni_dir_tls_test_args = ["-N", "1000", "-U", "-X", "-S",
+ self.loop0.local_ip4,
+ self.server_port]
+
+ def test_vcl_thru_host_stack_tls_uni_dir(self):
+ """ run VCL thru host stack uni-directional TLS test """
+
+ self.timeout = self.client_uni_dir_tls_timeout
+ self.thru_host_stack_test("vcl_test_server", self.server_tls_args,
+ "vcl_test_client",
+ self.client_uni_dir_tls_test_args)
+
+ def tearDown(self):
+ self.logger.debug(self.vapi.cli("show app server"))
+ self.logger.debug(self.vapi.cli("show session verbose"))
+ self.thru_host_stack_tear_down()
+ super(VCLThruHostStackTLS, self).tearDown()
+
+
class VCLThruHostStackBidirNsock(VCLTestCase):
""" VCL Thru Host Stack Bidir Nsock """