CNF TestSuite now uses cnf-default namespace 17/74617/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 29 Sep 2024 12:03:17 +0000 (14:03 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 29 Sep 2024 12:03:17 +0000 (14:03 +0200)
Change-Id: Ia595665cc8f84a2aabd141ead7bb343758cb3d18
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest_kubernetes/cnf_conformance/conformance.py

index 41ce05c..d1e4bcf 100644 (file)
@@ -64,7 +64,7 @@ class CNFConformance(testcase.TestCase):
         if os.path.exists(os.path.join(self.src_dir, "results")):
             shutil.rmtree(os.path.join(self.src_dir, "results"))
         api_response = self.corev1.list_namespace()
-        for namespace in ["cnf-testsuite", "default", "litmus"]:
+        for namespace in ["cnf-testsuite", "cnf-default", "litmus"]:
             for item in api_response.items:
                 if item.metadata.name == namespace:
                     self.corev1.patch_namespace(
@@ -161,7 +161,7 @@ class CNFConformance(testcase.TestCase):
             output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
             self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8"))
         try:
-            for namespace in ["cnf-testsuite", "litmus"]:
+            for namespace in ["cnf-testsuite", "cnf-default", "litmus"]:
                 self.corev1.delete_namespace(namespace)
                 self.__logger.debug("delete_namespace: %s", namespace)
         except client.rest.ApiException: