http_static: make max-age configurable

Type: improvement

Change-Id: I629add6e3f4219d56610c3785013f69dbe847844
Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:
Adrian Villin
2024-08-08 08:56:34 +02:00
committed by Florin Coras
parent 3601b322a0
commit 86fa943725
7 changed files with 191 additions and 17 deletions

View File

@@ -63,11 +63,13 @@ class TestHttpStaticVapi(VppAsfTestCase):
"exec",
"HttpStatic",
"curl",
"-v",
f"10.10.1.2/{self.temp.name[5:]}",
],
capture_output=True,
)
self.assertIn(b"Hello world", process.stdout)
self.assertIn(b"max-age=600", process.stderr)
self.temp2.seek(0)
process = subprocess.run(