aboutsummaryrefslogtreecommitdiffstats
path: root/test/asf
diff options
context:
space:
mode:
Diffstat (limited to 'test/asf')
-rw-r--r--test/asf/test_http_static.py17
-rw-r--r--test/asf/test_quic.py14
-rw-r--r--test/asf/test_tcp.py2
-rw-r--r--test/asf/test_tls.py2
4 files changed, 23 insertions, 12 deletions
diff --git a/test/asf/test_http_static.py b/test/asf/test_http_static.py
index 368826f75d4..8d488cb4b22 100644
--- a/test/asf/test_http_static.py
+++ b/test/asf/test_http_static.py
@@ -77,11 +77,20 @@ class TestHttpStaticVapi(VppAsfTestCase):
"exec",
self.ns_name,
"curl",
+ "--noproxy",
+ "10.10.1.2",
"-v",
f"10.10.1.2/{self.temp.name[5:]}",
],
capture_output=True,
)
+ if process.returncode != 0:
+ self.logger.error(
+ f"Subprocess failed with return code {process.returncode}"
+ )
+ self.logger.error(f"stderr: {process.stderr.decode()}")
+ raise RuntimeError("Subprocess execution failed")
+ self.logger.info(self.vapi.cli("sh session verbose"))
self.assertIn(b"Hello world", process.stdout)
self.assertIn(b"max-age=600", process.stderr)
@@ -93,6 +102,8 @@ class TestHttpStaticVapi(VppAsfTestCase):
"exec",
self.ns_name,
"curl",
+ "--noproxy",
+ "10.10.1.2",
f"10.10.1.2/{self.temp2.name[5:]}",
],
capture_output=True,
@@ -183,9 +194,9 @@ class TestHttpStaticCli(VppAsfTestCase):
)
self.assertIn(b"Hello world2", process.stdout)
- self.vapi.cli("show http static server cache")
- self.vapi.cli("clear http static cache")
- self.vapi.cli("show http static server sessions")
+ self.logger.info(self.vapi.cli("show http static server cache"))
+ self.logger.info(self.vapi.cli("clear http static cache"))
+ self.logger.info(self.vapi.cli("show http static server sessions"))
if __name__ == "__main__":
diff --git a/test/asf/test_quic.py b/test/asf/test_quic.py
index c4fa6912114..78ebe0f40a7 100644
--- a/test/asf/test_quic.py
+++ b/test/asf/test_quic.py
@@ -178,7 +178,7 @@ class QUICEchoIntTransferTestCase(QUICEchoIntTestCase):
def test_quic_int_transfer(self):
"""QUIC internal transfer"""
self.server()
- self.client("mbytes", "2")
+ self.client("bytes", "2m")
@tag_fixme_vpp_workers
@@ -188,11 +188,11 @@ class QUICEchoIntSerialTestCase(QUICEchoIntTestCase):
def test_quic_serial_int_transfer(self):
"""QUIC serial internal transfer"""
self.server()
- self.client("mbytes", "2")
- self.client("mbytes", "2")
- self.client("mbytes", "2")
- self.client("mbytes", "2")
- self.client("mbytes", "2")
+ self.client("bytes", "2m")
+ self.client("bytes", "2m")
+ self.client("bytes", "2m")
+ self.client("bytes", "2m")
+ self.client("bytes", "2m")
@tag_fixme_vpp_workers
@@ -202,7 +202,7 @@ class QUICEchoIntMStreamTestCase(QUICEchoIntTestCase):
def test_quic_int_multistream_transfer(self):
"""QUIC internal multi-stream transfer"""
self.server()
- self.client("nclients", "10", "mbytes", "1")
+ self.client("nclients", "10", "bytes", "1m")
class QUICEchoExtTestCase(QUICTestCase):
diff --git a/test/asf/test_tcp.py b/test/asf/test_tcp.py
index 23772d34c76..e9c9e1efb68 100644
--- a/test/asf/test_tcp.py
+++ b/test/asf/test_tcp.py
@@ -89,7 +89,7 @@ class TestTCP(VppAsfTestCase):
self.assertNotIn("failed", error)
error = self.vapi.cli(
- "test echo client mbytes 10 appns 1 "
+ "test echo client bytes 10m appns 1 "
+ "fifo-size 4k test-bytes "
+ "syn-timeout 2 uri "
+ uri
diff --git a/test/asf/test_tls.py b/test/asf/test_tls.py
index 2ce87143339..6676132417c 100644
--- a/test/asf/test_tls.py
+++ b/test/asf/test_tls.py
@@ -142,7 +142,7 @@ class TestTLS(VppAsfTestCase):
self.assertNotIn("failed", error)
error = self.vapi.cli(
- "test echo client mbytes 10 appns 1 "
+ "test echo client bytes 10m appns 1 "
"fifo-size 4k test-bytes "
"tls-engine 1 "
"syn-timeout 2 uri " + uri