From d0249740266842e4cc4febb3c47243c0b95f8f39 Mon Sep 17 00:00:00 2001 From: "michal.jagiello@t-mobile.pl" Date: Thu, 4 Apr 2024 10:47:55 +0000 Subject: Refactor code a bit to make status test able running on multiple namespaces It's possible to run status on all tests and also exclude some namespaces from check Issue-ID: TEST-404 Change-Id: I33c54624f60b1c4db82a252d97a26e18464ed07f Signed-off-by: Michal Jagiello --- src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/onaptests/steps/simulator/pnf_simulator_cnf') 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 acfa990..4ef92ef 100644 --- a/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py +++ b/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py @@ -86,7 +86,7 @@ class PnfSimulatorCnfRegisterStep(BaseStep): k8s_client: "client.CoreV1Api" = client.CoreV1Api() try: for service in k8s_client.list_namespaced_service( - namespace=settings.K8S_ONAP_NAMESPACE).items: + namespace=settings.K8S_TESTS_NAMESPACE).items: if service.metadata.name == settings.DCAE_VES_COLLECTOR_POD_NAME: proto = "http" if "443" in str(service.spec.ports[0].port): -- cgit 1.2.3-korg