summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/tests/const.py
diff options
context:
space:
mode:
authorhongyuzhao <zhao.hongyu@zte.com.cn>2019-07-22 17:34:47 +0800
committermaopeng zhang <zhang.maopeng1@zte.com.cn>2019-07-22 10:33:23 +0000
commit81b84ce1988d96da4e46d9d51e94ef936d67f19e (patch)
tree0ccd2ae05dafef085bed532dbf34ac240a3df7f3 /lcm/lcm/nf/tests/const.py
parented5205d1510fd2179d117585495c3000d87ffed6 (diff)
improve code coverage rate (scale vnf to level) after vfclcm upgraded from python2 to python
Change-Id: I5a6141591bdc639c2508a38af206bc5c45f8d309 Issue-ID: VFC-1429 Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'lcm/lcm/nf/tests/const.py')
-rw-r--r--lcm/lcm/nf/tests/const.py33
1 files changed, 26 insertions, 7 deletions
diff --git a/lcm/lcm/nf/tests/const.py b/lcm/lcm/nf/tests/const.py
index c9509513..8a50fa1a 100644
--- a/lcm/lcm/nf/tests/const.py
+++ b/lcm/lcm/nf/tests/const.py
@@ -1166,7 +1166,22 @@ multiple_vnf_lcm_op = [{
# }
# }
vnfd_for_scale = {
- "volume_storages": [],
+ "volume_storages": [
+ {
+ "volume_storage_id": "test",
+ "properties": {
+ "location_info": {
+ "vimid": "vim_1",
+ "tenant": "chinamobile",
+ "availability_zone": "test",
+ },
+ "volume_name": "test",
+ "custom_volume_type": "test",
+ "size_of_storage": "\"10 GB\"",
+ },
+ "image_file": "test",
+ },
+ ],
"vnf": {
"type": "tosca.nodes.nfv.VNF",
"requirements": {
@@ -1202,7 +1217,16 @@ vnfd_for_scale = {
{
"description": "",
"virtual_storages": [
-
+ {
+ "virtual_storage_id": "test",
+ "type_of_storage": "ephemeral",
+ "size_of_storage": "10 GB",
+ }
+ ],
+ "volume_storages": [
+ {
+ "volume_storage_id": "test",
+ }
],
"vdu_id": "sunshine",
"artifacts": [
@@ -1222,11 +1246,6 @@ vnfd_for_scale = {
"virtual_memory": {
"virtual_mem_size": "4096 MB"
},
- "virtual_local_storage": [
- {
- "size_of_storage": "40 GB"
- }
- ]
},
"vls": [