From 217b6b8894d8830a64a26b69ba31056dc8981f5d Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 5 Feb 2024 14:30:12 -0600 Subject: T6018: adjust smoketest for update to FastAPI web framework (cherry picked from commit e1b63b9b1704a55ccbf75e7131651c85dd318107) --- smoketest/scripts/cli/test_service_https.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'smoketest/scripts') diff --git a/smoketest/scripts/cli/test_service_https.py b/smoketest/scripts/cli/test_service_https.py index 8d9b8459e..94eade2d7 100755 --- a/smoketest/scripts/cli/test_service_https.py +++ b/smoketest/scripts/cli/test_service_https.py @@ -19,6 +19,7 @@ import json from requests import request from urllib3.exceptions import InsecureRequestWarning +from time import sleep from base_vyostest_shim import VyOSUnitTestSHIM from base_vyostest_shim import ignore_warning @@ -305,6 +306,7 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): self.cli_set(base_path + ['api', 'keys', 'id', 'key-01', 'key', key]) self.cli_commit() + sleep(2) r = request('POST', url, verify=False, headers=headers, data=payload) # api configured; expect 200 -- cgit v1.2.3