fix cp create bugs
[vfc/gvnfm/vnflcm.git] / lcm / lcm / nf / tests / test_scale_vnf_to_level.py
index 173f539..bb5b5da 100644 (file)
@@ -91,7 +91,8 @@ class TestNfScaleToLevel(TestCase):
     def test_scale_out_vnf_success(self, mock_call, mock_call_req):
         self.nf_inst_id = '6789'
         res_cache = {"volume": {}, "flavor": {}, "port": {}}
-        res_cache["port"]["ext_cp"] = "port1"
+        res_cache["volume"]["test"] = "test"
+        # res_cache["port"]["ext_cp"] = "port1"
         NfInstModel(nfinstid=self.nf_inst_id,
                     nf_name='VNF1',
                     nf_desc="VNF DESC",
@@ -174,6 +175,7 @@ class TestNfScaleToLevel(TestCase):
         ]
         mock_call.side_effect = [
             const.c1_data_get_tenant_id,
+            const.c6_data_create_port,
             const.c7_data_create_flavor,
             const.c8_data_list_image,
             const.c9_data_create_vm,