Feature 10916 Remove VNF Instance from NS - NS Update
[osm/LCM.git] / osm_lcm / tests / test_db_descriptors.py
index 457ea30..2e001c0 100644 (file)
@@ -316,6 +316,39 @@ db_nslcmops_text = """
     operationState: COMPLETED
     startTime: 1575034637.0445576
     statusEnteredTime: 1575034663.8484545
+
+-   _admin:
+        created: 1566823354.4148262
+        modified: 1566823354.4148262
+        projects_read:
+        - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
+        projects_write:
+        - 25b5aebf-3da1-49ed-99de-1d2b4a86d6e4
+        worker: 86434c2948e2
+        operations:
+        -   member_vnf_index: '1'
+            primitive: touch
+            primitive_params: /home/ubuntu/last-touch-1
+            operationState: COMPLETED
+            detailed-status: Done
+    _id: a639fac7-e0bb-4225-8ecb-c1f8efcc125f
+    detailed-status: done
+    id: a639fac7-e0bb-4225-8ecb-c1f8efcc125f
+    isAutomaticInvocation: false
+    isCancelPending: false
+    lcmOperationType: update
+    links:
+        nsInstance: /osm/nslcm/v1/ns_instances/f48163a6-c807-47bc-9682-f72caef5af85
+        self: /osm/nslcm/v1/ns_lcm_op_occs/a639fac7-e0bb-4225-8ecb-c1f8efcc125f
+    nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
+    operationParams:
+      lcmOperationType: update
+      nsInstanceId: f48163a6-c807-47bc-9682-f72caef5af85
+      removeVnfInstanceId: 88d90b0c-faff-4b9f-bccd-017f33985984
+      updateType: REMOVE_VNF
+    operationState: FAILED
+    startTime: 1566823354.414689
+    statusEnteredTime: 1566824534.5112448
 """
 
 db_nsrs_text = """
@@ -2340,6 +2373,22 @@ db_nslcmops_scale_text = """
     detailed-status: done
 """
 
+ro_update_action_text = """
+action_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d
+details: progress 1/1
+nsr_id: 31dbfa80-80a8-4f2a-a557-626904df3402
+status: DONE
+tasks:
+- action: DELETE
+  action_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d
+  item: vdu
+  nsr_id: 31dbfa80-80a8-4f2a-a557-626904df3402
+  status: FINISHED
+  target_record: vnfrs:5bbe7015-ae98-4e09-9316-76f3bf218353:vdur.0.vim_info.vim:2a3dc443-415b-4865-8420-f804b993c5a3
+  target_record_id: vnfrs:5bbe7015-ae98-4e09-9316-76f3bf218353:vdur.e03e2281-c70e-44ef-ac3b-052b81efd31d
+  task_id: e62fc036-6e6f-4a6f-885e-bc12e2fbe75d:0
+"""
+
 test_ids = {
     # contains the ids of ns and operations of every test
     "TEST-A": {
@@ -2363,4 +2412,9 @@ test_ids = {
         "instantiate": "4013bbd2-b151-40ee-bcef-7e24ce5432f6",
         "terminate": None,
     },
+    "TEST-UPDATE": {
+        "ns": "f48163a6-c807-47bc-9682-f72caef5af85",
+        "vnf": "88d90b0c-faff-4b9f-bccd-017f33985984",
+        "removeVnf": "a639fac7-e0bb-4225-8ecb-c1f8efcc125f",
+    },
 }