From 332e02cbd448d52cc7bdab6670ac123dc73d73fd Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 12 Mar 2025 04:18:32 -0400 Subject: vcl: fix cl sendto on unbound socket Type: fix Change-Id: Ia1e61a7ed633ad9708bd02fbaf4a39fe1a0ca1f3 Signed-off-by: Florin Coras --- test/asf/test_vcl.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'test/asf') diff --git a/test/asf/test_vcl.py b/test/asf/test_vcl.py index 143b46c22ee..ae837fa4065 100644 --- a/test/asf/test_vcl.py +++ b/test/asf/test_vcl.py @@ -561,6 +561,48 @@ class VCLThruHostStackEcho(VCLTestCase): self.logger.debug(self.vapi.cli("show app mq")) +@unittest.skipIf( + "hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin" +) +class VCLThruHostStackCLUDPEcho(VCLTestCase): + """VCL Thru Host Stack CL UDP Echo""" + + @classmethod + def setUpClass(cls): + super(VCLThruHostStackCLUDPEcho, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(VCLThruHostStackCLUDPEcho, cls).tearDownClass() + + def setUp(self): + super(VCLThruHostStackCLUDPEcho, self).setUp() + + self.thru_host_stack_setup() + self.pre_test_sleep = 2 + self.timeout = 5 + + def tearDown(self): + self.thru_host_stack_tear_down() + super(VCLThruHostStackCLUDPEcho, self).tearDown() + + def test_vcl_thru_host_stack_cl_udp_echo(self): + """run VCL IPv4 thru host stack CL UDP echo test""" + server_args = ["-s", self.loop0.local_ip4] + client_args = ["-c", self.loop0.local_ip4] + self.thru_host_stack_test( + "vcl_test_cl_udp", + server_args, + "vcl_test_cl_udp", + client_args, + ) + + def show_commands_at_teardown(self): + self.logger.debug(self.vapi.cli("show app server")) + self.logger.debug(self.vapi.cli("show session verbose")) + self.logger.debug(self.vapi.cli("show app mq")) + + @unittest.skipIf( "hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin" ) -- cgit