summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbiancunkang <bian.cunkang@zte.com.cn>2018-08-17 10:00:57 +0800
committerbiancunkang <bian.cunkang@zte.com.cn>2018-08-17 10:00:57 +0800
commitf86f58f35bc3aa3668a11139559097c6101396cc (patch)
treeb3c30a9d4c57cc6e2074518d28397cb2143368ed
parent97b65518164835e0e3cfde02c2e03da2ce3c9f22 (diff)
Change in test
For coverage Change-Id: I9c6a01f187e1a1ce6ab50ba7c34b8cbf0aeb3c51 Issue-ID: VFC-1015 Signed-off-by: biancunkang <bian.cunkang@zte.com.cn>
-rw-r--r--lcm/v2/tests.py21
1 files changed, 18 insertions, 3 deletions
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": []