Add asynchronous Unit test cases 57/7957/5
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 18 Aug 2017 01:03:39 +0000 (09:03 +0800)
committeryunlong ying <ying.yunlong@zte.com.cn>
Tue, 22 Aug 2017 08:14:10 +0000 (08:14 +0000)
Add asynchronous Unit test cases
to verify that the Redis service
for the Redis service node is normal.
As the redis server is still unavalable,
remove the asynchronous unit use
case temporarily .

Change-Id: Id9336b50ecff619873d07052269b88d514b9f8c5
Issue-ID: VFC-98
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/lcm/nf/vnfs/tests/test_vnf_cancel.py
lcm/lcm/nf/vnfs/tests/test_vnf_create.py

index 9bedab7..e4cf7d9 100644 (file)
@@ -97,7 +97,7 @@ class TestNFTerminate(TestCase):
         TermVnf(data, nf_inst_id=self.nf_inst_id, job_id=self.job_id).run()
         self.assert_job_result(self.job_id, 255, "VnfInst(%s) does not exist" % self.nf_inst_id)
     """
-'''
+"""
     @mock.patch.object(restcall, 'call_req')
     @mock.patch.object(api, 'call')
     def test_terminate_vnf_success(self, mock_call, mock_call_req):
@@ -117,4 +117,4 @@ class TestNFTerminate(TestCase):
         JobUtil.add_job_status(self.job_id, 0, "INST_VNF_READY")
         TermVnf(data, nf_inst_id=self.nf_inst_id, job_id=self.job_id).run()
         self.assert_job_result(self.job_id, 100, "Terminate Vnf success.")
-'''
+"""
index 9942183..9edd607 100644 (file)
@@ -179,4 +179,5 @@ class TestNFInstantiate(TestCase):
         data = inst_req_data
         InstVnf(data, nf_inst_id=self.nf_inst_id, job_id=self.job_id).run()
         self.assert_job_result(self.job_id, 100, "Instantiate Vnf success.")
-"""
+
+"""
\ No newline at end of file