X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=smo-install%2Ftest%2Fpythonsdk%2Fsrc%2Forantests%2Fsmo%2Fonap.py;h=879a3fdfd96d811c68ebbe85aefde03924482a4a;hb=7b4b4007db003d28ee347e3d373e8ac605581cb5;hp=a4941307b6cc3bfb3209632485809209bac841b4;hpb=a8414e7e44dea72da6f4f235e14f7fef59b4e266;p=it%2Fdep.git diff --git a/smo-install/test/pythonsdk/src/orantests/smo/onap.py b/smo-install/test/pythonsdk/src/orantests/smo/onap.py index a4941307..879a3fdf 100644 --- a/smo-install/test/pythonsdk/src/orantests/smo/onap.py +++ b/smo-install/test/pythonsdk/src/orantests/smo/onap.py @@ -27,7 +27,7 @@ import logging import logging.config -from subprocess import check_output,run +from subprocess import check_output, run from onapsdk.configuration import settings logging.config.dictConfig(settings.LOG_CONFIG) @@ -40,7 +40,7 @@ class Onap(): def is_onap_up(cls) -> bool: """Verify if ONAP platform is up or not.""" cmd = "kubectl get pods --field-selector 'status.phase=Failed' -n onap -o name | xargs kubectl delete -n onap" - run(cmd, shell=True) + run(cmd, shell=True, check=False) cmd = "kubectl get pods --field-selector status.phase!=Running -n onap | wc -l" result = check_output(cmd, shell=True).decode('utf-8') logger.info("Number of Onap pods not in Running state (expected <= 8): %s", result)