[cloudify_ims] fix signaling test error 43/30943/1
authorboucherv <valentin.boucher@orange.com>
Sun, 19 Mar 2017 11:44:17 +0000 (12:44 +0100)
committerMorgan Richomme <morgan.richomme@orange.com>
Sun, 19 Mar 2017 13:34:31 +0000 (13:34 +0000)
Change-Id: I6d6cf36c2a82df1ff9943cc3084b38967033bb94
Signed-off-by: boucherv <valentin.boucher@orange.com>
(cherry picked from commit 5b8aa73c0ae774649998c62d9d38d4c7bd09bb84)

functest/opnfv_tests/vnf/ims/cloudify_ims.py

index 2ced92e..354bf88 100644 (file)
@@ -261,6 +261,9 @@ class ImsVnf(vnf_base.VnfOnBoardingBase):
         dns_ip = dep_outputs.json()['outputs']['dns_ip']
         ellis_ip = dep_outputs.json()['outputs']['ellis_ip']
 
+        self.logger.debug("DNS ip : %s" % dns_ip)
+        self.logger.debug("ELLIS ip : %s" % ellis_ip)
+
         ellis_url = "http://" + ellis_ip + "/"
         url = ellis_url + "accounts"
 
@@ -270,7 +273,7 @@ class ImsVnf(vnf_base.VnfOnBoardingBase):
                   "signup_code": "secret"}
 
         rq = requests.post(url, data=params)
-        i = 20
+        i = 30
         while rq.status_code != 201 and i > 0:
             rq = requests.post(url, data=params)
             i = i - 1
@@ -281,8 +284,7 @@ class ImsVnf(vnf_base.VnfOnBoardingBase):
             rq = requests.post(url, data=params)
             cookies = rq.cookies
         else:
-            self.step_failure("Unable to create an account for number" +
-                              " provision: %s" % rq.json()['reason'])
+            self.step_failure("Unable to create an account")
 
         url = ellis_url + "accounts/" + params['email'] + "/numbers"
         if cookies != "":