open annotation
[vfc/gvnfm/vnflcm.git] / lcm / lcm / nf / tests / test_scale_vnf.py
index 4361403..e5583fe 100644 (file)
@@ -91,9 +91,9 @@ class TestNfScale(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["volume"]["volume_storage1"] = "vol1"
+        res_cache["volume"]["test"] = "test"
         # res_cache["flavor"]["vdu1Id"] = "flavor1"
-        res_cache["port"]["ext_cp"] = "port1"
+        res_cache["port"]["ext_cp"] = "port1"
         NfInstModel(nfinstid=self.nf_inst_id,
                     nf_name='VNF1',
                     nf_desc="VNF DESC",
@@ -176,6 +176,7 @@ class TestNfScale(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,
@@ -193,6 +194,7 @@ class TestNfScale(TestCase):
         ).run()
 
         NfInstModel.objects.filter(nfinstid=self.nf_inst_id).delete()
+        # print([{job.progress: job.descp} for job in  JobStatusModel.objects.filter( jobid=self.job_id)])
         self.assert_job_result(
             self.job_id,
             100,