def setUp(self, plugin=None, ext_mgr=None): # NOTE(salv-orlando): The plugin keyword argument is ignored, # as this class will always invoke super with self._plugin_name. # These keyword parameters ensure setUp methods always have the # same signature. setup_metaplugin_conf() ext_mgr = ext_mgr or test_l3_plugin.L3TestExtensionManager() super(MetaPluginV2DBTestCase, self).setUp(plugin=self._plugin_name, ext_mgr=ext_mgr)
def setUp(self): def mocked_oneconvergence_init(self): def side_effect(*args, **kwargs): return {'id': str(uuid.uuid4())} self.nvsdlib = mock.Mock() self.nvsdlib.create_network.side_effect = side_effect ext_mgr = test_l3_plugin.L3TestExtensionManager() with mock.patch.object(nvsd_plugin.OneConvergencePluginV2, 'oneconvergence_init', new=mocked_oneconvergence_init): super(TestOneConvergenceL3NatTestCase, self).setUp(plugin=self._plugin_name, ext_mgr=ext_mgr)
def setUp(self): setup_metaplugin_conf() ext_mgr = test_l3_plugin.L3TestExtensionManager() test_config['extension_manager'] = ext_mgr super(MetaPluginV2DBTestCase, self).setUp(self._plugin_name)