[TEST] Catch k8s connection exceptions 01/121301/2
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Tue, 11 May 2021 09:38:25 +0000 (09:38 +0000)
committerMorgan Richomme <morgan.richomme@orange.com>
Wed, 12 May 2021 15:53:39 +0000 (15:53 +0000)
commit64223615e17cdd019c8613b93a4440ae9cac47b3
treeb73893d7c62fd239c7145b8bc92eee73a212bbc5
parent44c4437d52355a4ba371f80ce68a12a7967b2cb4
[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
(cherry picked from commit 0e02e3c314f6787cfbddee6f32b9776225ddec16)
src/onaptests/steps/onboard/cds.py
src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py