db_vnfds = [db_vnfd]
task_register = {}
logging_text = "KDU"
- self.my_ns.k8sclusterhelm3.install = asynctest.CoroutineMock(return_value="k8s_id")
+ self.my_ns.k8sclusterhelm3.generate_kdu_instance_name = asynctest.mock.Mock()
+ self.my_ns.k8sclusterhelm3.generate_kdu_instance_name.return_value = "k8s_id"
+ self.my_ns.k8sclusterhelm3.install = asynctest.CoroutineMock()
self.my_ns.k8sclusterhelm3.synchronize_repos = asynctest.CoroutineMock(return_value=("", ""))
self.my_ns.k8sclusterhelm3.get_services = asynctest.CoroutineMock(return_value=([]))
await self.my_ns.deploy_kdus(logging_text, nsr_id, nslcmop_id, db_vnfrs, db_vnfds, task_register)
"k8scluster-type": "helm-chart-v3",
"kdu-name": "ldap",
"member-vnf-index": "multikdu",
- "namespace": None}
+ "namespace": None,
+ "kdu-deployment-name": None,
+ }
nsr_result = copy.deepcopy(db_nsr["_admin"]["deployed"]["K8s"][0])
nsr_kdu_model_result = nsr_result.pop("kdu-model")