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:
Kevin Benton 2017-04-18 15:00:03 -07:00
parent 55be865d9a
commit 1a055fe01e
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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,