behave_tests: increase nfvbench_test_api timeout 32/72632/1
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>
Wed, 26 May 2021 16:07:31 +0000 (18:07 +0200)
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>
Wed, 2 Jun 2021 16:27:31 +0000 (18:27 +0200)
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>
behave_tests/features/steps/steps.py

index b20a9cc..f4dda58 100644 (file)
@@ -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))