[TEST] Catch k8s connection exceptions 47/121247/1
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Tue, 11 May 2021 09:38:25 +0000 (09:38 +0000)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Tue, 11 May 2021 09:38:25 +0000 (09:38 +0000)
commit0e02e3c314f6787cfbddee6f32b9776225ddec16
treee87b3d6b187992baf1b98c1632e9afb495da6662
parent227f55ed67caec8e67a037bc3e901caf54617c4c
[TEST] Catch k8s connection exceptions

In two steps: ExposeCDSBlueprintprocessorNodePortStep and PnfSimulatorCnfRegisterStep we uses kubernetes Python library to
prepare environment or check the status of pod instantiation. If connection with k8s api gateway can't be established an
exception is raised and no test report is created.
Add try...except block to catch connection error and finish test gently

Issue-ID: TEST-336
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I1993bec4c886d77645e1a60e0f3d169abeb4e8bd
src/onaptests/steps/onboard/cds.py
src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py