Make pnf-simulator helm chart configurable 58/136258/2
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Wed, 18 Oct 2023 13:44:19 +0000 (15:44 +0200)
committerMicha? Jagie??o <michal.jagiello@t-mobile.pl>
Thu, 19 Oct 2023 15:21:04 +0000 (15:21 +0000)
PNF simulator couldn't be configured on demand (e.g. image couldn't be changed)
That version allows override values and run customized version of pnf-simulator

Issue-ID: TEST-404
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: Ic18bdaeaa782b61478579056d5ba1a893087d85c

src/onaptests/configuration/cds_resource_resolution_settings.py
src/onaptests/configuration/pnf_macro_settings.py
src/onaptests/steps/instantiate/msb_k8s.py
src/onaptests/templates/artifacts/pnf-simulator.tar.gz

index 0ab6ebc..b972d0c 100644 (file)
@@ -21,6 +21,7 @@ MSB_K8S_RB_VERSION = "v1"
 MSB_K8S_PROFILE_ARTIFACT_FILE_PATH = Path(get_resource_location(
                                           "templates/artifacts/profile.tar.gz"))
 MSB_K8S_PROFILE_NAME = f"cds-ms-prof-{str(uuid4())}"
+MSB_K8S_OVERRIDE_VALUES = None
 K8S_VERSION = "1.0"
 K8S_CONFIG = get_resource_location("templates/artifacts/config")
 K8S_ADDITIONAL_RESOURCES_NAMESPACE = "onap-tests"
index d332763..379eaf7 100644 (file)
@@ -38,6 +38,7 @@ MSB_K8S_RB_VERSION = "v1"
 MSB_K8S_PROFILE_ARTIFACT_FILE_PATH = Path(get_resource_location(
     "templates/artifacts/profile.tar.gz"))
 MSB_K8S_PROFILE_NAME = f"pnf-cnf-profile-{str(uuid4())}"
+MSB_K8S_OVERRIDE_VALUES = None
 K8S_VERSION = "1.0"
 K8S_CONFIG = get_resource_location("templates/artifacts/config")
 K8S_ADDITIONAL_RESOURCES_NAMESPACE = "onap-tests"
index 9189282..29bc84a 100644 (file)
@@ -36,7 +36,8 @@ class CreateInstanceStep(BaseStep):
         self.instance = Instance.create(cloud_region_id=settings.CLOUD_REGION_ID,
                                         profile_name=settings.MSB_K8S_PROFILE_NAME,
                                         rb_name=settings.MSB_K8S_RB_NAME,
-                                        rb_version=settings.MSB_K8S_RB_VERSION)
+                                        rb_version=settings.MSB_K8S_RB_VERSION,
+                                        override_values=settings.MSB_K8S_OVERRIDE_VALUES)
 
     @BaseStep.store_state(cleanup=True)
     def cleanup(self) -> None:
index b715b1c..024f732 100644 (file)
Binary files a/src/onaptests/templates/artifacts/pnf-simulator.tar.gz and b/src/onaptests/templates/artifacts/pnf-simulator.tar.gz differ