swift/test/unit/common/middleware
Clay Gerrard 1fe8e4327b Fix recon tests on SAIO with multiple policies
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
2015-09-18 13:54:52 -07:00
..
__init__.py Initial commit of middleware refactor 2010-08-20 00:42:38 +00:00
helpers.py versioned writes middleware 2015-08-07 14:11:32 -04:00
test_account_quotas.py Fix warning pep8 E128 warning of hacking 0.10 2015-07-30 09:33:41 +02:00
test_acl.py unit tests: Replace "self.assert_" by "self.assertTrue" 2015-07-21 19:23:00 +05:30
test_bulk.py Merge "Replace StringIO with BytesIO for WSGI input" 2015-07-24 06:52:40 +00:00
test_cname_lookup.py Allow multiple storage_domain in cname_lookup. 2014-01-26 10:45:19 +00:00
test_container_sync.py Add Storage Policy Support to Container Sync 2014-06-18 21:09:54 -07:00
test_crossdomain.py Corrected many style violations in the tests. 2013-07-24 10:18:47 -07:00
test_dlo.py versioned writes middleware 2015-08-07 14:11:32 -04:00
test_domain_remap.py add domain_remap to /info 2015-07-07 21:18:19 -07:00
test_except.py unit tests: Replace "self.assert_" by "self.assertTrue" 2015-07-21 19:23:00 +05:30
test_formpost.py Replace StringIO with BytesIO for WSGI input 2015-07-15 16:56:33 +02:00
test_gatekeeper.py Uses None instead of mutables for function param defaults 2014-05-10 11:15:56 +00:00
test_healthcheck.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_keystoneauth.py Make logic of unit tests responsive to the method names 2015-07-15 08:53:46 +09:00
test_list_endpoints.py Fix warning pep8 E128 warning of hacking 0.10 2015-07-30 09:33:41 +02:00
test_memcache.py Use six to fix imports on Python 3 2015-07-24 11:48:28 +02:00
test_name_check.py Convert maximum length to integer in name_check 2014-10-08 09:59:47 +05:30
test_proxy_logging.py Improving statistics sent to Graphite. 2015-08-21 13:45:00 -04:00
test_quotas.py Fix warning pep8 E128 warning of hacking 0.10 2015-07-30 09:33:41 +02:00
test_ratelimit.py unit tests: Replace "self.assert_" by "self.assertTrue" 2015-07-21 19:23:00 +05:30
test_recon.py Fix recon tests on SAIO with multiple policies 2015-09-18 13:54:52 -07:00
test_slo.py unit tests: Replace "self.assert_" by "self.assertTrue" 2015-07-21 19:23:00 +05:30
test_staticweb.py unit tests: Replace "self.assert_" by "self.assertTrue" 2015-07-21 19:23:00 +05:30
test_tempauth.py Replace it.next() with next(it) for py3 compat 2015-06-15 22:10:45 +05:30
test_tempurl.py Add test that a tempurl POST cannot set a DLO manifest header 2015-08-26 16:30:23 +01:00
test_versioned_writes.py Fix 500 in versioned writes with bad Destination 2015-08-12 04:35:20 +00:00
test_xprofile.py Merge "Replace StringIO with BytesIO for WSGI input" 2015-07-24 06:52:40 +00:00