neutron/neutron/tests
Kevin Benton d98ca64240 Call config_parse in base test setup
Some of the tests (e.g. NeutronDbPluginV2AsMixinTestCase) do not call
config_parse so if the database engine is not already been setup by another
test before the config object is reset on teardown, the database connection
will fail since the database config is then empty.

This patch adds a new setup_config method called during the base test case
setUp method which calls config_parse by default to load the default config.
Tests that couldn't use the default config were then modified to override the
setup_config method.

Some other unit tests were slightly adjusted to pass using the default config.

Closes-Bug: #1346673
Change-Id: I3724200fa932115c0a8c264640b1a9dbe431a1cc
2014-07-27 13:31:12 -07:00
..
etc Revert "Disable debug messages when running unit tests" 2014-05-07 14:54:35 +02:00
functional Merge "Add a gate-specific tox env for functional tests" 2014-07-19 02:48:16 +00:00
unit Call config_parse in base test setup 2014-07-27 13:31:12 -07:00
var Allow combined certificate/key files for SSL 2014-04-13 09:22:23 +00:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
base.py Call config_parse in base test setup 2014-07-27 13:31:12 -07:00
fake_notifier.py Pass serializer to oslo.messaging Notifier 2014-06-20 14:58:28 +02:00
post_mortem_debug.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
tools.py Replace mox in unit tests with mock 2013-11-18 22:17:14 +09:00