From: Florin Coras Date: Thu, 6 May 2021 19:46:04 +0000 (-0700) Subject: vcl: add dtls test X-Git-Tag: v21.10-rc0~108 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=cec1b2776b4b6967d400bc86551765ac7fa4643e;p=vpp.git vcl: add dtls test Type: test Signed-off-by: Florin Coras Change-Id: I726ab3a22399e970b0dd37a5b174062137265914 --- 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 """