summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAritra Basu <aritrbas@cisco.com>2024-08-28 14:02:34 -0700
committerFlorin Coras <florin.coras@gmail.com>2024-09-17 15:59:00 +0000
commit70d2a08e7efa0ecb255f2174e6a57b6511016059 (patch)
tree528cfdba2d063965ff33081e40d3a0e32ddf6a35 /test
parent0acb398d6d13b03514bcda72a7b52ece28932b1f (diff)
vcl: add http support to vcl_test_protos
Type: improvement Change-Id: Ibb493f1d7713d0e10b8bd1d5ff17b89967b53b8a Signed-off-by: Aritra Basu <aritrbas@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/asf/test_vcl.py53
1 files changed, 53 insertions, 0 deletions
diff --git a/test/asf/test_vcl.py b/test/asf/test_vcl.py
index 8368a9f922f..124ea14089b 100644
--- a/test/asf/test_vcl.py
+++ b/test/asf/test_vcl.py
@@ -760,6 +760,59 @@ class VCLThruHostStackQUIC(VCLTestCase):
@unittest.skipIf(
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
)
+class VCLThruHostStackHTTPPost(VCLTestCase):
+ """VCL Thru Host Stack HTTP Post"""
+
+ @classmethod
+ def setUpClass(cls):
+ cls.extra_vpp_plugin_config.append("plugin http_plugin.so { enable }")
+ super(VCLThruHostStackHTTPPost, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(VCLThruHostStackHTTPPost, cls).tearDownClass()
+
+ def setUp(self):
+ super(VCLThruHostStackHTTPPost, self).setUp()
+
+ self.thru_host_stack_setup()
+ self.client_uni_dir_http_post_timeout = 20
+ self.server_http_post_args = ["-p", "http", self.server_port]
+ self.client_uni_dir_http_post_test_args = [
+ "-N",
+ "10000",
+ "-U",
+ "-X",
+ "-p",
+ "http",
+ self.loop0.local_ip4,
+ self.server_port,
+ ]
+
+ def test_vcl_thru_host_stack_http_post_uni_dir(self):
+ """run VCL thru host stack uni-directional HTTP POST test"""
+
+ self.timeout = self.client_uni_dir_http_post_timeout
+ self.thru_host_stack_test(
+ "vcl_test_server",
+ self.server_http_post_args,
+ "vcl_test_client",
+ self.client_uni_dir_http_post_test_args,
+ )
+
+ def tearDown(self):
+ self.thru_host_stack_tear_down()
+ super(VCLThruHostStackHTTPPost, 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"))
+
+
+@unittest.skipIf(
+ "hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
+)
class VCLThruHostStackBidirNsock(VCLTestCase):
"""VCL Thru Host Stack Bidir Nsock"""