summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-02-12 21:52:59 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-02-13 11:24:14 +0100
commitcbdf90c3aa4ec6f011bc6ca6e6485ea7f841d689 (patch)
treef6a77b650066209a7e7ad24edb78bfb2c384ed01
parent91f85bff55c3ead549f000c53456ede2ebee1b1b (diff)
Increase timeout to reach vnf API
It increases the timeout in cloudify-based and clearwater-based testcases to allow running them in parallel (functest-virtual) [1]. [1] https://build.opnfv.org/ci/job/functest-latest-gate/54/ Change-Id: Ic637cb46a1380a683cb1e2b633cb97ac3be6affa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 38cba4aa2c2cdfd17ea1aa0c29ee14ed7b2bf035)
-rw-r--r--functest/core/cloudify.py2
-rw-r--r--functest/opnfv_tests/vnf/ims/clearwater.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/functest/core/cloudify.py b/functest/core/cloudify.py
index ac8e26743..73620241a 100644
--- a/functest/core/cloudify.py
+++ b/functest/core/cloudify.py
@@ -73,7 +73,7 @@ class Cloudify(singlevm.SingleVm2):
self.__logger.info("Attemps running status of the Manager")
secret_key = "foo"
secret_value = "bar"
- for loop in range(10):
+ for loop in range(20):
try:
self.__logger.debug(
"status %s", self.cfy_client.manager.get_status())
diff --git a/functest/opnfv_tests/vnf/ims/clearwater.py b/functest/opnfv_tests/vnf/ims/clearwater.py
index cc4d4be04..605ba8a2a 100644
--- a/functest/opnfv_tests/vnf/ims/clearwater.py
+++ b/functest/opnfv_tests/vnf/ims/clearwater.py
@@ -83,7 +83,7 @@ class ClearwaterTesting(object):
return output_dict
def _create_ellis_account(self, account_url, params):
- i = 50
+ i = 80
for iloop in range(i):
try:
req = requests.post(account_url, data=params)
@@ -98,7 +98,7 @@ class ClearwaterTesting(object):
except Exception: # pylint: disable=broad-except
self.logger.info(
"try %s: cannot create ellis account", iloop + 1)
- time.sleep(25)
+ time.sleep(30)
raise Exception(
"Unable to create an account {}".format(
params.get('full_name')))