Fix error log output in unittest of nfvo_plugin
In the following normal unittest, test passes, but an error log is output.
* tacker.tests.unit.nfvo.test_nfvo_plugin.TestNfvoPlugin.test_delete_vim
This is due to the failure to get MistralClient.
In this patch, the process is mocked to prevent the occurrence of errors.
Closes-bug:
@@ -318,6 +318,11 @@ class TestNfvoPlugin(db_base.SqlTestCase):
mock.patch('tacker.db.common_services.common_services_db_plugin.'
'CommonServicesPluginDb.create_event'
).start()
+ mock.patch('tacker.nfvo.nfvo_plugin.NfvoPlugin.get_auth_dict'
+ ).start()
+ mock.patch('tacker.nfvo.workflows.vim_monitor.vim_monitor_utils.'
+ 'delete_vim_monitor'
+ ).start()
self._cos_db_plugin =\
common_services_db_plugin.CommonServicesPluginDb()
self.nfvo_plugin.delete_vim(self.context, vim_id)
