From: biancunkang Date: Fri, 17 Aug 2018 02:00:57 +0000 (+0800) Subject: Change in test X-Git-Tag: 1.2.0~67 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=f86f58f35bc3aa3668a11139559097c6101396cc;p=vfc%2Fnfvo%2Flcm.git Change in test For coverage Change-Id: I9c6a01f187e1a1ce6ab50ba7c34b8cbf0aeb3c51 Issue-ID: VFC-1015 Signed-off-by: biancunkang --- diff --git a/lcm/v2/tests.py b/lcm/v2/tests.py index 82b53e7d..e988b98f 100644 --- a/lcm/v2/tests.py +++ b/lcm/v2/tests.py @@ -119,7 +119,7 @@ class VnfGrantViewTest(unittest.TestCase): "operation": "INSTANTIATE", "isAutomaticInvocation": True, "instantiationLevelId": "5", - "addResources": [ + "removeResources": [ { "id": "1", "type": "COMPUTE", @@ -183,6 +183,7 @@ class VnfGrantViewTest(unittest.TestCase): "type": "COMPUTE", "vduId": "2", "resourceTemplateId": "3", + "vdu": "1" } ], "additionalParams": {"vnfmid": "3"}, @@ -197,10 +198,24 @@ class VnfGrantViewTest(unittest.TestCase): } vnfdModel = { "volume_storages": [], - "vdus": [], + "vdus": [{ + "vdu_id": "1", + "properties": { + "name": "1" + }, + "local_storages": "2", + "virtual_compute": { + "virtual_cpu": { + "num_virtual_cpu": "111" + }, + "virtual_memory": { + "virtual_mem_size": "3 B" + } + }, + }], "image_files": [], "routers": [], - "local_storages": [], + "local_storages": [{"local_storage_id": "1"}], "vnf_exposed": { "external_cps": [], "forward_cps": []