[Urgent] fix unit test failure casused by IPAM driver
1. What is the problem After recent updates now Neutron uses pluggable IPAM driver backend by default, while in the unit tests for network functionality in the Tricircle, unpluggable IPAM driver backend is assumed to be used. So this default backend change causes most of the unit tests fail. 2. What is the solution to the problem In the setup of unit tests, set "ipam_driver" option as empty string to use unpluggable IPAM driver backend. 3. What the features need to be implemented to the Tricircle to realize the solution No new feature introduced. Change-Id: Ifa85d4e209ac0fa04c21db316eee6ebc41981dab
This commit is contained in:
parent
5f7606f461
commit
2340d5754f
|
@ -844,6 +844,9 @@ class PluginTest(unittest.TestCase,
|
|||
cfg.CONF.register_opts(q_config.core_opts)
|
||||
plugin_path = 'tricircle.tests.unit.network.test_plugin.FakePlugin'
|
||||
cfg.CONF.set_override('core_plugin', plugin_path)
|
||||
cfg.CONF.set_override('ipam_driver', '')
|
||||
# set ipam_driver as empty string to use IpamNonPluggableBackend, which
|
||||
# is enough for test purpose
|
||||
self.context = context.Context()
|
||||
self.save_method = manager.NeutronManager._get_default_service_plugins
|
||||
manager.NeutronManager._get_default_service_plugins = mock.Mock()
|
||||
|
|
Loading…
Reference in New Issue