X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FLCM.git;a=blobdiff_plain;f=osm_lcm%2Ftests%2Ftest_db_descriptors.py;h=dbb3e1d3db2152d000e2c9feb48ae9aeb185ad42;hp=2e001c0f877ef6c4f5bae5885bb662e7895c7012;hb=refs%2Fchanges%2F87%2F11987%2F7;hpb=07f4e4cc95d17c613f5557e65781b8d4599ed20f diff --git a/osm_lcm/tests/test_db_descriptors.py b/osm_lcm/tests/test_db_descriptors.py index 2e001c0..dbb3e1d 100644 --- a/osm_lcm/tests/test_db_descriptors.py +++ b/osm_lcm/tests/test_db_descriptors.py @@ -349,6 +349,81 @@ db_nslcmops_text = """ operationState: FAILED startTime: 1566823354.414689 statusEnteredTime: 1566824534.5112448 + +- _id: 1bd4b60a-e15d-49e5-b75e-2b3224f15dda + id: 1bd4b60a-e15d-49e5-b75e-2b3224f15dda + operationState: COMPLETED + queuePosition: 0 + stage: '' + errorMessage: '' + detailedStatus: + statusEnteredTime: 1652349205.9499352 + nsInstanceId: 52f0b3ac-1574-481f-a48f-528fc02912f7 + lcmOperationType: update + startTime: 1652349205.7415159 + isAutomaticInvocation: false + operationParams: + updateType: OPERATE_VNF + operateVnfData: + vnfInstanceId: a6df8aa0-1271-4dfc-85a5-e0484fea303f + changeStateTo: start + additionalParam: + run-day1: false + vdu-id: mgmtVM + count-index: 0 + lcmOperationType: update + nsInstanceId: 52f0b3ac-1574-481f-a48f-528fc02912f7 + isCancelPending: false + links: + self: "/osm/nslcm/v1/ns_lcm_op_occs/1bd4b60a-e15d-49e5-b75e-2b3224f15dda" + nsInstance: "/osm/nslcm/v1/ns_instances/52f0b3ac-1574-481f-a48f-528fc02912f7" + _admin: + created: 1652349205.7415788 + modified: 1652349205.9499364 + projects_read: + - e38990e1-6724-4292-ab6f-2ecc109f9af4 + projects_write: + - e38990e1-6724-4292-ab6f-2ecc109f9af4 + worker: fbf6b5aa99e2 + detailed-status: Done + +- _id: 6eace44b-2ef4-4de5-b15f-63f2e8898bfb + id: 6eace44b-2ef4-4de5-b15f-63f2e8898bfb + operationState: Error + queuePosition: 0 + stage: '' + errorMessage: '' + detailedStatus: + statusEnteredTime: 1652349205.9499352 + nsInstanceId: 52f0b3ac-1574-481f-a48f-528fc02912f7 + lcmOperationType: update + startTime: 1652349205.7415159 + isAutomaticInvocation: false + operationParams: + updateType: OPERATE_VNF + operateVnfData: + vnfInstanceId: a6df8aa0-1271-4dfc-85a5-e0484fea303f + changeStateTo: stop + additionalParam: + run-day1: false + vdu-id: mgmtVM + count-index: 0 + lcmOperationType: update + nsInstanceId: 52f0b3ac-1574-481f-a48f-528fc02912f7 + isCancelPending: false + links: + self: "/osm/nslcm/v1/ns_lcm_op_occs/1bd4b60a-e15d-49e5-b75e-2b3224f15dda" + nsInstance: "/osm/nslcm/v1/ns_instances/52f0b3ac-1574-481f-a48f-528fc02912f7" + _admin: + created: 1652349205.7415788 + modified: 1652349205.9499364 + projects_read: + - e38990e1-6724-4292-ab6f-2ecc109f9af4 + projects_write: + - e38990e1-6724-4292-ab6f-2ecc109f9af4 + worker: fbf6b5aa99e2 + detailed-status: Done + """ db_nsrs_text = """ @@ -2310,6 +2385,63 @@ db_vnfrs_text = """ vim-account-id: 74337dcb-ef54-41e7-bd2d-8c0d7fcd326f vnfd-id: d96b1cdf-5ad6-49f7-bf65-907ada989293 vnfd-ref: native-kdu_knf + +- _id: a6df8aa0-1271-4dfc-85a5-e0484fea303f + id: a6df8aa0-1271-4dfc-85a5-e0484fea303f + nsr-id-ref: 52f0b3ac-1574-481f-a48f-528fc02912f7 + member-vnf-index-ref: '1' + additionalParamsForVnf: + created-time: 1652105830.965044 + vnfd-ref: ha_proxy_charm-vnf + vnfd-id: 8b42078a-9d42-4def-8b5d-7dd0f041d078 + vim-account-id: dff4014e-bb5e-441a-a28d-6dd5d86c7175 + vca-id: + vdur: + - _id: 392e010d-3a39-4516-acc0-76993c19691f + alt-image-ids: + - '1' + - '2' + - '3' + cloud-init: 8b42078a-9d42-4def-8b5d-7dd0f041d078:file:cloud-config.txt + count-index: 0 + id: 392e010d-3a39-4516-acc0-76993c19691f + internal-connection-point: + - connection-point-id: mgmtVM-eth0-int + id: mgmtVM-eth0-int + name: mgmtVM-eth0-int + - connection-point-id: dataVM-xe0-int + id: dataVM-xe0-int + name: dataVM-xe0-int + ip-address: 10.45.28.134 + ns-flavor-id: '0' + ns-image-id: '0' + ssh-access-required: true + vdu-id-ref: mgmtVM + vdu-name: mgmtVM + vim_info: + vim:05357241-1a01-416f-9e02-af20f65f51cd: + vim_id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a + vim_status: ACTIVE + vim_name: test_ns_ch-1-mgmtVM-0 + status: ACTIVE + vim-id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a + name: test_ns_ch-1-mgmtVM-0 + vim_details: + vim_id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a + vim_status: DONE + vim_message: + ip-address: 10.45.28.134 + _admin: + created: 1652105830.9652078 + modified: 1652105830.9652078 + projects_read: + - e38990e1-6724-4292-ab6f-2ecc109f9af4 + projects_write: + - e38990e1-6724-4292-ab6f-2ecc109f9af4 + nsState: INSTANTIATED + vdu: + status: DONE + vim-id: 1f8c18e3-b3aa-484c-a211-e88d6654f24a """ db_nslcmops_scale_text = """ @@ -2417,4 +2549,10 @@ test_ids = { "vnf": "88d90b0c-faff-4b9f-bccd-017f33985984", "removeVnf": "a639fac7-e0bb-4225-8ecb-c1f8efcc125f", }, + "TEST-OP-VNF": { + "ns": "f48163a6-c807-47bc-9682-f72caef5af85", + "nslcmops": "1bd4b60a-e15d-49e5-b75e-2b3224f15dda", + "nslcmops1": "6eace44b-2ef4-4de5-b15f-63f2e8898bfb", + "vnfrs": "a6df8aa0-1271-4dfc-85a5-e0484fea303f", + }, }