aboutsummaryrefslogtreecommitdiffstats
path: root/behave_tests
diff options
context:
space:
mode:
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>2021-05-26 18:07:31 +0200
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>2021-06-02 18:27:31 +0200
commit9f4a4239133dbe952b88fe5f9999ee4b8764b56f (patch)
treeb25a00753f42f5f298f36a0b34ce9a985e23e3de /behave_tests
parent3bcb0c131c4acf52f2e978a61664c0fdca9c6bcf (diff)
behave_tests: increase nfvbench_test_api timeout
In some cases, the 50 seconds timeout to wait for nfvbench HTTP server to be ready is too short. (Convoluted but real example: when the DNS servers are not properly configured and nfvbench tries to reach the OpenStack APIs while it does not need them because we just want to do a loopback test without loop VM) The new timeout is 120 seconds. Change-Id: I4932eff7c9a100370e7ceaaa2a467efbbceb5993 Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
Diffstat (limited to 'behave_tests')
-rw-r--r--behave_tests/features/steps/steps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/behave_tests/features/steps/steps.py b/behave_tests/features/steps/steps.py
index b20a9cc..f4dda58 100644
--- a/behave_tests/features/steps/steps.py
+++ b/behave_tests/features/steps/steps.py
@@ -284,7 +284,7 @@ def push_result_database(context):
"""Utils methods."""
-@retry(AssertionError, tries=10, delay=5.0, logger=None)
+@retry(AssertionError, tries=24, delay=5.0, logger=None)
def test_nfvbench_api(context):
try:
r = requests.get("http://{ip}:{port}/status".format(ip=context.host_ip, port=context.port))