Create flavor refer to new datamodel
[vfc/gvnfm/vnflcm.git] / lcm / lcm / nf / tests / test_vnf_cancel.py
index 6e431e0..ef0c7cf 100644 (file)
@@ -161,7 +161,8 @@ class TestNFTerminate(TestCase):
                 "tenant": 'tenantname_1'
             }), '200']
         t2_lcm_notify_result = [0, json.JSONEncoder().encode(''), '200']
-        mock_call_req.side_effect = [t1_apply_grant_result, t2_lcm_notify_result]
+        t3_delete_flavor = [0, json.JSONEncoder().encode({"vim_id": "vimid_1"}), '200']
+        mock_call_req.side_effect = [t1_apply_grant_result, t2_lcm_notify_result, t3_delete_flavor]
         mock_call.return_value = None
         data = {
             "terminationType": "FORCEFUL",