From: fujinhua Date: Tue, 14 Aug 2018 09:00:45 +0000 (+0800) Subject: Fix unit test error for ns heal X-Git-Tag: 1.2.0~76^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F60505%2F1;p=vfc%2Fnfvo%2Flcm.git Fix unit test error for ns heal Fix OperationalError: no such table: NFVO_JOB problem Change-Id: I2bae1430cb17c63ccab9325a50510682b8f7b780 Issue-ID: VFC-1009 Signed-off-by: fujinhua --- diff --git a/lcm/ns/tests/test_ns_heal.py b/lcm/ns/tests/test_ns_heal.py index 8d2f93a6..de810503 100644 --- a/lcm/ns/tests/test_ns_heal.py +++ b/lcm/ns/tests/test_ns_heal.py @@ -23,6 +23,7 @@ from lcm.pub.utils.jobutil import JobUtil, JOB_TYPE from lcm.ns.const import NS_INST_STATUS from lcm.pub.exceptions import NSLCMException from lcm.ns.ns_heal import NSHealService +from lcm.ns.vnfs.heal_vnfs import NFHealService class TestHealNsViews(TestCase): @@ -96,7 +97,7 @@ class TestHealNsViews(TestCase): response = self.client.delete("/api/nslcm/v1/ns/%s" % self.ns_inst_id) self.assertEqual(status.HTTP_204_NO_CONTENT, response.status_code) - @mock.patch.object(NSHealService, 'start') + @mock.patch.object(NFHealService, 'start') @mock.patch.object(NSHealService, 'wait_job_finish') @mock.patch.object(NSHealService, 'update_job') def test_ns_manual_scale_thread(self, mock_start, mock_wait, mock_update):