diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-10-13 09:28:45 +0000 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-11-08 17:19:34 +0000 |
commit | 3eb2f52a40c0f420ada67c03fc58307237d764fa (patch) | |
tree | 37c6d7a4ad1ae85bf4e89ef6300a8632ed89b20b /src/onaptests/steps/instantiate/k8s_profile_create.py | |
parent | aad04fa2a7e1c9d71f273d26da25436e5c6b779c (diff) |
[INTEGRATION] Use the newest onapsdk (9.0.0)
Issue-ID: INT-1994
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I3b6e04f5c89265f16674a66317faddee4c9597ab
(cherry picked from commit 062f7ed7f73ed61dc3990c3a23403fd544ae6261)
Diffstat (limited to 'src/onaptests/steps/instantiate/k8s_profile_create.py')
-rw-r--r-- | src/onaptests/steps/instantiate/k8s_profile_create.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/onaptests/steps/instantiate/k8s_profile_create.py b/src/onaptests/steps/instantiate/k8s_profile_create.py index fab61a4..d09d924 100644 --- a/src/onaptests/steps/instantiate/k8s_profile_create.py +++ b/src/onaptests/steps/instantiate/k8s_profile_create.py @@ -6,7 +6,7 @@ from onapsdk.aai.business import Customer, ServiceInstance, ServiceSubscription from onapsdk.configuration import settings from onapsdk.exceptions import APIError, ResourceNotFound from onapsdk.msb.k8s import Definition -from onapsdk.so.instantiation import VnfParameter +from onapsdk.so.instantiation import InstantiationParameter import onaptests.utils.exceptions as onap_test_exceptions from ..base import BaseStep @@ -83,14 +83,14 @@ class K8SProfileStep(BaseStep): return self._service_instance_name return self.parent.service_instance_name - def get_vnf_parameters(self, vnf_name: str) -> Iterable[VnfParameter]: + def get_vnf_parameters(self, vnf_name: str) -> Iterable[InstantiationParameter]: """Get VNF parameters from YAML template. Args: vnf_name (str): VNF name to get parameters for. Yields: - Iterator[Iterable[VnfParameter]]: VNF parameter + Iterator[Iterable[InstantiationParameter]]: VNF parameter """ @@ -99,7 +99,7 @@ class K8SProfileStep(BaseStep): for vnf in self.yaml_template[self.service_name]["vnfs"]: if vnf["vnf_name"] == vnf_name: for vnf_parameter in vnf["vnf_parameters"]: - yield VnfParameter( + yield InstantiationParameter( name=vnf_parameter["name"], value=vnf_parameter["value"] ) |