1fe8e4327b
Recon middleware used to only look on rings that exist on disk when it was started, so if a test didn't create a ring in the temp swift_dir it can expect the middleware to not report it. However, after we started looking at policies to determine rings [1] - we need to be more careful to patch policies to match up with the test requirements. On development environments with only the legacy default polices the existing recon tests were passing by accident - but not in my environment. This change will patch policies for the TestCase so that tests will pass for me. Individual test methods that have more specific policy requirements for the test can continue to @patch_policies just for those tests but in general the existing test_methods all seem to expect legacy policies - so we just make the default for the TestCase legacy_only. Change-Id: I778a0a59091ca8870e1cab985f3ec426eb045ab7 |
||
---|---|---|
.. | ||
middleware | ||
ring | ||
__init__.py | ||
corrupted_example.db | ||
malformed_example.db | ||
test_base_storage_server.py | ||
test_bufferedhttp.py | ||
test_constraints.py | ||
test_container_sync_realms.py | ||
test_daemon.py | ||
test_db_replicator.py | ||
test_db.py | ||
test_direct_client.py | ||
test_exceptions.py | ||
test_internal_client.py | ||
test_manager.py | ||
test_memcached.py | ||
test_request_helpers.py | ||
test_splice.py | ||
test_storage_policy.py | ||
test_swob.py | ||
test_utils.py | ||
test_wsgi.py |