Stop extension warnings in UTs
Gets rid of these log lines dumped to output when executing a test with ostestr. ... Did not find expected name "Test_portsecurity" in neutron/tests/unit/extensions/test_portsecurity.py Did not find expected name "Test_providernet" in neutron/tests/unit/extensions/test_providernet.py Did not find expected name "Test_quotasv2" in neutron/tests/unit/extensions/test_quotasv2.py ... TrivialFix Change-Id: I6a7326e1ef4097455303b963526fe1d638a2c59c
This commit is contained in:
parent
55be865d9a
commit
1a055fe01e
@ -11,9 +11,6 @@ bind_host = 0.0.0.0
|
||||
# Port the bind the API server to
|
||||
bind_port = 9696
|
||||
|
||||
# Path to the extensions
|
||||
api_extensions_path = neutron/tests/unit/extensions
|
||||
|
||||
# Paste configuration file
|
||||
api_paste_config = api-paste.ini.test
|
||||
|
||||
|
@ -106,6 +106,8 @@ class ExtensionPathTest(base.BaseTestCase):
|
||||
super(ExtensionPathTest, self).setUp()
|
||||
|
||||
def test_get_extensions_path_with_plugins(self):
|
||||
cfg.CONF.set_override('api_extensions_path',
|
||||
'neutron/tests/unit/extensions')
|
||||
path = extensions.get_extensions_path(
|
||||
{lib_const.CORE: FakePluginWithExtension()})
|
||||
self.assertEqual(path,
|
||||
|
Loading…
Reference in New Issue
Block a user