summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_service_https.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-02-05 14:30:12 -0600
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-05 21:34:19 +0000
commit217b6b8894d8830a64a26b69ba31056dc8981f5d (patch)
treeb3cf214ff47234ba87737f98469e10511c00d9b1 /smoketest/scripts/cli/test_service_https.py
parent22a15d828e1d0052d6690860367ba294d2481a04 (diff)
downloadvyos-1x-217b6b8894d8830a64a26b69ba31056dc8981f5d.tar.gz
vyos-1x-217b6b8894d8830a64a26b69ba31056dc8981f5d.zip
T6018: adjust smoketest for update to FastAPI web framework
(cherry picked from commit e1b63b9b1704a55ccbf75e7131651c85dd318107)
Diffstat (limited to 'smoketest/scripts/cli/test_service_https.py')
-rwxr-xr-xsmoketest/scripts/cli/test_service_https.py2
1 files changed, 2 insertions, 0 deletions
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