diff options
author | Florin Coras <fcoras@cisco.com> | 2021-05-06 12:46:04 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-05-06 21:55:41 +0000 |
commit | cec1b2776b4b6967d400bc86551765ac7fa4643e (patch) | |
tree | 3ecd0972a56b40d2ce49819ba4027c34af31cbac /test/test_vcl.py | |
parent | 312fb4dbdf20e9d9ff47ccbcaaabba22ea7d20a4 (diff) |
vcl: add dtls test
Type: test
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I726ab3a22399e970b0dd37a5b174062137265914
Diffstat (limited to 'test/test_vcl.py')
-rw-r--r-- | test/test_vcl.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/test_vcl.py b/test/test_vcl.py index 64ca002946b..8bff4be8e16 100644 --- a/test/test_vcl.py +++ b/test/test_vcl.py @@ -450,6 +450,46 @@ class VCLThruHostStackTLS(VCLTestCase): self.logger.debug(self.vapi.cli("show app mq")) +class VCLThruHostStackDTLS(VCLTestCase): + """ VCL Thru Host Stack DTLS """ + + @classmethod + def setUpClass(cls): + super(VCLThruHostStackDTLS, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(VCLThruHostStackDTLS, cls).tearDownClass() + + def setUp(self): + super(VCLThruHostStackDTLS, self).setUp() + + self.thru_host_stack_setup() + self.client_uni_dir_dtls_timeout = 20 + self.server_dtls_args = ["-p dtls", self.server_port] + self.client_uni_dir_dtls_test_args = ["-N", "1000", "-U", "-X", + "-p dtls", "-T 1400", + self.loop0.local_ip4, + self.server_port] + + def test_vcl_thru_host_stack_dtls_uni_dir(self): + """ run VCL thru host stack uni-directional DTLS test """ + + self.timeout = self.client_uni_dir_dtls_timeout + self.thru_host_stack_test("vcl_test_server", self.server_dtls_args, + "vcl_test_client", + self.client_uni_dir_dtls_test_args) + + def tearDown(self): + self.thru_host_stack_tear_down() + super(VCLThruHostStackDTLS, 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 """ |