cloudify_ims: fix error on account creation 55/30255/1
authorboucherv <valentin.boucher@orange.com>
Fri, 10 Mar 2017 14:01:24 +0000 (15:01 +0100)
committerboucherv <valentin.boucher@orange.com>
Fri, 10 Mar 2017 14:01:24 +0000 (15:01 +0100)
Change-Id: I43550b2062c69d7b4eb144057a90806f92328739
Signed-off-by: boucherv <valentin.boucher@orange.com>
functest/opnfv_tests/vnf/ims/cloudify_ims.py

index e2401d0..2ced92e 100644 (file)
@@ -280,6 +280,9 @@ class ImsVnf(vnf_base.VnfOnBoardingBase):
             url = ellis_url + "session"
             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'])
 
         url = ellis_url + "accounts/" + params['email'] + "/numbers"
         if cookies != "":