X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Ftests%2Ftest_ns.py;h=3befd6bd4e2875cc371a5ef770e0d2a1b174f887;hb=refs%2Ftags%2Fv7.0.1;hp=5af30ffda6b95bbbacdabbbd0bbecb65a03e0618;hpb=744303e157182880777f169259ea7cd4431af1d7;p=osm%2FLCM.git diff --git a/osm_lcm/tests/test_ns.py b/osm_lcm/tests/test_ns.py index 5af30ff..3befd6b 100644 --- a/osm_lcm/tests/test_ns.py +++ b/osm_lcm/tests/test_ns.py @@ -12,7 +12,7 @@ # under the License. # # For those usages not covered by the Apache License, Version 2.0 please -# contact: esousa@whitestack.com or alfonso.tiernosepulveda@telefonica.com +# contact: alfonso.tiernosepulveda@telefonica.com ## @@ -475,11 +475,13 @@ class TestMyNS(asynctest.TestCase): db_nsr = self.db.get_list("nsrs")[1] db_vnfr = self.db.get_list("vnfrs")[2] db_vnfrs = {"multikdu": db_vnfr} + db_vnfd = self.db.get_list("vnfds")[1] + db_vnfds = {db_vnfd["_id"]: db_vnfd} nsr_id = db_nsr["_id"] # nslcmop_id = self.db.get_list("nslcmops")[1]["_id"] logging_text = "KDU" self.my_ns.k8sclusterhelm.install = asynctest.CoroutineMock(return_value="k8s_id") - await self.my_ns.deploy_kdus(logging_text, nsr_id, db_nsr, db_vnfrs) + await self.my_ns.deploy_kdus(logging_text, nsr_id, db_nsr, db_vnfrs, db_vnfds) db_nsr = self.db.get_list("nsrs")[1] self.assertIn("K8s", db_nsr["_admin"]["deployed"], "K8s entry not created at '_admin.deployed'") self.assertIsInstance(db_nsr["_admin"]["deployed"]["K8s"], list, "K8s entry is not of type list")