diff options
author | boucherv <valentin.boucher@orange.com> | 2017-06-21 16:37:56 +0200 |
---|---|---|
committer | boucherv <valentin.boucher@orange.com> | 2017-07-03 17:50:36 +0200 |
commit | 642987dcca77cdf1ae551d824ab44272f3406f70 (patch) | |
tree | 20a0b1d146316c0bd858eee1bc1d45cdf35e3788 /functest/opnfv_tests/vnf/ims/clearwater_ims_base.py | |
parent | 3ccd401b18775cf152e883c44cc4937287f4e62d (diff) |
[cloudify_ims] Support Cloudify 4.0
- Delete all shell commands to use cloudify python lib
- Cloudify Manager installation with a packaged image
- SNAPS integration
- Adapt test_vnf unit tests
- Initiate test cloudify_ims unit tests (to be completed)
JIRA: FUNCTEST-838
Change-Id: Ia4b499d4155e6af5d37d6d5cf4310a5a9693c7ce
Signed-off-by: boucherv <valentin.boucher@orange.com>
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'functest/opnfv_tests/vnf/ims/clearwater_ims_base.py')
-rw-r--r-- | functest/opnfv_tests/vnf/ims/clearwater_ims_base.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py b/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py index c1a35be3..25ddca21 100644 --- a/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py +++ b/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py @@ -11,6 +11,7 @@ import logging import os import pkg_resources import shutil +import time import requests @@ -71,7 +72,17 @@ class ClearwaterOnBoardingBase(vnf.VnfOnBoarding): ellis_ip, params['email']) self.logger.info('Create 1st calling number on Ellis') - number_res = self.create_ellis_number(number_url, cookies) + i = 24 + while rq.status_code != 200 and i > 0: + try: + number_res = self.create_ellis_number(number_url, cookies) + break + except: + if i == 1: + raise Exception("Unable to create a number") + self.logger.warn("Unable to create a number. Retry ..") + time.sleep(25) + i = i - 1 output_dict['number'] = number_res if two_numbers: |