placement/nova/tests
Dan Smith 208fd5560f Add a DatabasePoisonFixture
This is the beginning of a poison fixture for tests that don't use
the database. If they do, we interrupt them deep in oslo_db, log a
warning, and return a MagicMock. This keeps them from breaking
global database state, but doesn't actually poison them. This should
be followed-up with a patch to raise an exception, and fix the rest
of the tests that depend on the broken behavior.

Since some tests claim to not be DB test, but use the fixture
themselves anyway, this adds a USES_DB_SELF flag to help gate
the application of the poison.

Change-Id: If071a12a33aad86e918a9f441a246a930e921c8d
2016-03-23 06:55:06 -07:00
..
functional Merge "Update time is not updated when metadata of aggregate is updated" 2016-03-04 14:10:57 +00:00
unit Merge "Generate better validation error message when using name regexes" 2016-03-10 12:29:40 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fixtures.py Add a DatabasePoisonFixture 2016-03-23 06:55:06 -07:00
uuidsentinel.py Add uuidsentinel test module 2015-12-14 11:28:55 +01:00