FAILED="failed", TERMINATING="terminating", SCALING="scaling", OPERATING="operating",
UPDATING="updating", HEALING="healing")
+# inst_req_data
inst_req_data = {
"flavourId": "flavour_1",
"instantiationLevelId": "instantiationLevel_1",
}
],
"localizationLanguage": "en_US",
- "additionalParams": {}
+ "additionalParams": {"inputs": {"key1":"test1","key2":"test2"},
+ "extVirtualLinks": [{
+ "vlInstanceId": '55',
+ "resourceId": '55_network',
+ "resourceSubnetId": '55_subnet',
+ "cpdId": 'cpId1',
+ "vim": {
+ "vimid": '55_vimid'
+ }
+ }]}
}
+
+# vnfd_rawdata
vnfd_rawdata = {
"rawData": {
"instance": {
}
}
-
+# vnfd_model_dict
vnfd_model_dict = {
'metadata': {
'vendor': u'zte',
],
"nfv_compute": {
"num_cpus": 4,
- "mem_size": "1024MB",
+ "mem_size": "1 GB",
"cpu_frequency": "1GHz",
"flavor_extra_specs": {
"hw: cpu_policy": "shared",
],
}
-c1_data_get_tenant_id = { # get_tenant_id
+# get_tenant_id
+c1_data_get_tenant_id = {
"tenants": [
{
"id": "1",
}
]
}
+
+# create_volume
c2_data_create_volume = {
"id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
"name": "volume1",
"type": None,
"size": 40
}
-c3_data_get_volume = { # get_volume
+
+# get_volume
+c3_data_get_volume = {
"status": "available",
"name": "wangsong",
"attachments": [
"id": "4bd3e9eb-cd8b-456a-8589-910836a0ab31",
"size": 40
}
-c4_data_create_network = { # create_network
+
+# create_network
+c4_data_create_network = {
"returnCode": 0,
"vimId": "11111",
"vimName": "11111",
"physicalNetwork": "ctrl",
"routerExternal": False
}
+
+# create_subnet
c5_data_create_subnet = {
"returnCode": 0,
"vimId": "11111",
],
"hostRoutes": []
}
+
+# create_ports
c6_data_create_port = {
"returnCode": 0,
"vimId": "11111",
"vnicType": "normal",
"securityGroups": ""
}
+
+# create_flavor
c7_data_create_flavor ={
"returnCode": 0,
"vimId": "11111",
"extraSpecs": "testtt"
}
+# list_image
c8_data_list_image = {
"vimid": "",
"vimname": "",
- "imageList": [
+ "images": [
{
"status": "active",
"id": "5e2757c1-f846-4727-915c-9a872553ed75",
}
]
}
+
+# create_vm
c9_data_create_vm = {
"returnCode": 1,
"id": "3c9eebdbbfd345658269340b9ea6fb73",
"serverGroup": "fdvfdv",
"status": "ACTIVE"
}
+
+# get_vm
c10_data_get_vm = {
"returnCode": 1,
"id": "3c9eebdbbfd345658269340b9ea6fb73",