Allow test_l3_agent unit test to run individually
When the test_l3_agent.TestL3AgentEventHandler test case is run after test discovery it passes because discovery imports files that registers all the config options. For the test case to run individually we need to explicitly register the config options used in the test. Change-Id: Ic31503ad7be8601ff843dbdc8edf5856ce8b0e39 Closes-bug: #1313812
This commit is contained in:
parent
48647fd42f
commit
2a51109aec
@ -1200,6 +1200,8 @@ class TestL3AgentEventHandler(base.BaseTestCase):
|
||||
def setUp(self):
|
||||
super(TestL3AgentEventHandler, self).setUp()
|
||||
cfg.CONF.register_opts(l3_agent.L3NATAgent.OPTS)
|
||||
agent_config.register_interface_driver_opts_helper(cfg.CONF)
|
||||
agent_config.register_use_namespaces_opts_helper(cfg.CONF)
|
||||
cfg.CONF.set_override(
|
||||
'interface_driver', 'neutron.agent.linux.interface.NullDriver'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user