summaryrefslogtreecommitdiffstats
path: root/test/asf
diff options
context:
space:
mode:
Diffstat (limited to 'test/asf')
-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"""