diff options
author | 2021-12-20 07:25:45 +0000 | |
---|---|---|
committer | 2021-12-20 07:25:45 +0000 | |
commit | 2bd16f8898e6fd74e64b1500eb5fbc4448517d1a (patch) | |
tree | 6511af60374903774c8e0c2ed581bbcabce89e5b /src/onaptests/steps/onboard/msb_k8s.py | |
parent | fdb23f5d0a2ac49ac35578be855f2b937741136f (diff) | |
parent | 54803e59a08d09bbb34cb686740f41b1e7bc3684 (diff) |
Merge "[TEST] Do not create simulators in "onap" namespace"
Diffstat (limited to 'src/onaptests/steps/onboard/msb_k8s.py')
-rw-r--r-- | src/onaptests/steps/onboard/msb_k8s.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/onaptests/steps/onboard/msb_k8s.py b/src/onaptests/steps/onboard/msb_k8s.py index cad471b..503a886 100644 --- a/src/onaptests/steps/onboard/msb_k8s.py +++ b/src/onaptests/steps/onboard/msb_k8s.py @@ -36,9 +36,9 @@ class CreateDefinitionStep(BaseStep): def execute(self) -> None: """Create definition.""" super().execute() - with open(settings.PNF_DEFINITION_ATRIFACT_FILE_PATH, "rb") as definition_file: - self.definition = Definition.create(rb_name=settings.PNF_RB_NAME, - rb_version=settings.PNF_RB_VERSION) + with open(settings.MSB_K8S_DEFINITION_ATRIFACT_FILE_PATH, "rb") as definition_file: + self.definition = Definition.create(rb_name=settings.MSB_K8S_RB_NAME, + rb_version=settings.MSB_K8S_RB_VERSION) self.definition.upload_artifact(definition_file.read()) @@ -70,10 +70,10 @@ class CreateProfileStep(BaseStep): """Create profile.""" super().execute() definition: Definition = Definition.get_definition_by_name_version(\ - rb_name=settings.PNF_RB_NAME, - rb_version=settings.PNF_RB_VERSION) - with open(settings.PNF_PROFILE_ARTIFACT_FILE_PATH, "rb") as profile_file: - self.profile = definition.create_profile(profile_name=settings.PNF_PROFILE_NAME, - namespace=settings.K8S_NAMESPACE, + rb_name=settings.MSB_K8S_RB_NAME, + rb_version=settings.MSB_K8S_RB_VERSION) + with open(settings.MSB_K8S_PROFILE_ARTIFACT_FILE_PATH, "rb") as profile_file: + self.profile = definition.create_profile(profile_name=settings.MSB_K8S_PROFILE_NAME, + namespace=settings.K8S_ADDITIONAL_RESOURCES_NAMESPACE, kubernetes_version=settings.K8S_VERSION) self.profile.upload_artifact(profile_file.read()) |