diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-08-14 17:00:45 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-08-14 17:00:45 +0800 |
commit | 6ffffb99bbdfdb463db2dbfc8eaf9d9509b8a036 (patch) | |
tree | 45d33315ab6045a733535339d0eaef2334f95c2c | |
parent | 971e40a924ba1f564e2f2b990eb5b87c904790aa (diff) |
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 <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/ns/tests/test_ns_heal.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |