X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fsamples%2Ftests.py;h=f834e7ca6b43ffb74ad5c9a9bea1fc59d2c84805;hb=76aa6cb99671fe222837b45e2564c6244da63262;hp=9c57d84e21dc5791c7a5f367ae0177190f10bdff;hpb=cc348c69ebfeb5697d1861191f9449dfffc1c4bc;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/samples/tests.py b/lcm/lcm/samples/tests.py index 9c57d84e..f834e7ca 100644 --- a/lcm/lcm/samples/tests.py +++ b/lcm/lcm/samples/tests.py @@ -46,21 +46,17 @@ inst_res_data = { }, "artifacts": [ { - "artifact_name": "cirros.img", + "artifact_name": "sw_image", + "deploy_path": "", "type": "tosca.artifacts.nfv.SwImage", - "properties": { - "operating_system": "unbant", - "sw_image": "/swimages/xenial-snat.qcow2", - "name": "cirros.img", - "checksum": "5000", - "min_ram": "1 GB", - "disk_format": "qcow2", - "version": "1.0", - "container_format": "bare", - "min_disk": "10 GB", - "size": "10 GB" - }, - "file": "/swimages/xenial-snat.qcow2" + "repository": "", + "file": "ubuntu_16.04" + }, + ], + "inject_files": [ + { + "source_path": "artifacts/keys/authorized_keys", + "dest_path": "/home/ubuntu/.ssh/authorized_keys" } ], "image_file": "cirros.img", @@ -76,6 +72,8 @@ inst_res_data = { "cp_vNat" ], "properties": { + "user_data": "just test user data", + "meta_data": "just test meta data", "configurable_properties": { "test": { "additional_vnfc_configurable_properties": { @@ -204,9 +202,18 @@ inst_res_data = { ], "cps": [ { + "properties": { "name": "vNat_big_subnet_port", - "ip_address": "10.43.38.253", + "protocol_data": [ + { + "address_data": { + "l3_address_data": { + "fixed_ip_address": ["10.43.38.253"] + }, + }, + } + ], "vnic_type": "normal", "role": "root", "virtual_network_interface_requirements": [ @@ -321,7 +328,7 @@ c5_data_get_flavor = [{ c6_data_list_image = { "images": [ { - "name": "cirros.img", + "name": "ubuntu_16.04", "id": "678" } ]