summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcm/lcm/nf/biz/terminate_vnf.py2
-rw-r--r--lcm/lcm/nf/tests/test_terminate_vnf.py11
2 files changed, 10 insertions, 3 deletions
diff --git a/lcm/lcm/nf/biz/terminate_vnf.py b/lcm/lcm/nf/biz/terminate_vnf.py
index 98edf1ed..1fc0506c 100644
--- a/lcm/lcm/nf/biz/terminate_vnf.py
+++ b/lcm/lcm/nf/biz/terminate_vnf.py
@@ -74,7 +74,7 @@ class TerminateVnf(Thread):
'vnfInstanceId': self.nf_inst_id,
'vnfDescriptorId': '',
'lifecycleOperation': 'Terminate',
- 'jobId': self.job_id,
+ 'vnfLcmOpOccId': self.job_id,
'addResource': [],
'removeResource': [],
'placementConstraint': [],
diff --git a/lcm/lcm/nf/tests/test_terminate_vnf.py b/lcm/lcm/nf/tests/test_terminate_vnf.py
index 2179df97..23b246d7 100644
--- a/lcm/lcm/nf/tests/test_terminate_vnf.py
+++ b/lcm/lcm/nf/tests/test_terminate_vnf.py
@@ -133,8 +133,15 @@ class TestNFTerminate(TestCase):
create_time=now_time())
t1_apply_grant_result = [0, json.JSONEncoder().encode(
{
- "vimid": 'vimid_1',
- "tenant": 'tenantname_1'
+ "id": "1",
+ "vnfInstanceId": "1",
+ "vnfLcmOpOccId": "2",
+ "vimConnections": [
+ {
+ "id": "1",
+ "vimId": "1"
+ }
+ ]
}), '200']
t2_lcm_notify_result = [0, json.JSONEncoder().encode(''), '200']
t3_delete_flavor = [0, json.JSONEncoder().encode({"vim_id": "vimid_1"}), '200']