NSX|V3: Add unit tests mocks to avoid loggin errors

Change-Id: Iaeb882032fbc3da9cf5b8eade410fd1e8f0484ec
This commit is contained in:
Adit Sarfaty 2019-02-25 11:59:50 +02:00
parent 56db730573
commit 1ab59eaca1

View File

@ -211,6 +211,9 @@ class NsxV3PluginTestCaseMixin(test_plugin.NeutronDbPluginV2TestCase,
'neutron_lib.rpc.Connection.consume_in_threads', 'neutron_lib.rpc.Connection.consume_in_threads',
return_value=[]).start() return_value=[]).start()
mock.patch.object(nsx_plugin.NsxV3Plugin,
'_cleanup_duplicates').start()
def setUp(self, plugin=PLUGIN_NAME, def setUp(self, plugin=PLUGIN_NAME,
ext_mgr=None, ext_mgr=None,
service_plugins=None, **kwargs): service_plugins=None, **kwargs):