aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2021-05-12 15:54:38 +0000
committerGerrit Code Review <gerrit@onap.org>2021-05-12 15:54:38 +0000
commit5fcdca4bc21d12d869f55cde3a99b56d269e8bb5 (patch)
tree835334d78f549dc9010d5a9b33c23adf144219db
parentffb3846eac55aac7a50805f18c116ffcfdf2b0bd (diff)
parent7d0ab367982acd0a681381d9fdda8051319f085c (diff)
Merge "[TEST] Catch ConnectionError exception during pnf simulator startup" into guilin
-rw-r--r--src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py b/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py
index c1d76b0..035d731 100644
--- a/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py
+++ b/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py
@@ -110,7 +110,7 @@ class PnfSimulatorCnfRegisterStep(BaseStep):
response.raise_for_status()
registered_successfully = True
self._logger.info(f"PNF registered with {settings.SERVICE_INSTANCE_NAME} source name")
- except requests.HTTPError as http_error:
+ except (requests.ConnectionError, requests.HTTPError) as http_error:
self._logger.debug(f"Can't connect with PNF simulator: {str(http_error)}")
registration_number = registration_number + 1
time.sleep(settings.PNF_WAIT_TIME)