From: boucherv Date: Fri, 31 Mar 2017 08:33:05 +0000 (+0200) Subject: [Clearwater Test] Fix bug in error message X-Git-Tag: opnfv-5.0.RC1~505^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=f2eaa39ca28093baa7f004e7febcc648106e5cd7;p=functest.git [Clearwater Test] Fix bug in error message Change-Id: I5d1a3f44915821fcf778c4bcecb32d2aaf475262 Signed-off-by: boucherv --- diff --git a/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py b/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py index f21ce3f9a..2fc5449cf 100644 --- a/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py +++ b/functest/opnfv_tests/vnf/ims/clearwater_ims_base.py @@ -46,8 +46,7 @@ class ClearwaterOnBoardingBase(vnf_base.VnfOnBoardingBase): rq = requests.post(account_url, data=params) output_dict['login'] = params if rq.status_code != 201 and rq.status_code != 409: - raise Exception("Unable to create an account for number" - " provision: %s" % rq.json()['reason']) + raise Exception("Unable to create an account for number provision") self.logger.info('Account is created on Ellis: %s', params) session_url = 'http://{0}/session'.format(ellis_ip)