swift/test/unit/common
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
..
middleware Fix recon tests on SAIO with multiple policies 2015-09-18 13:54:52 -07:00
ring Fix warning pep8 E128 warning of hacking 0.10 2015-07-30 09:33:41 +02:00
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
corrupted_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
malformed_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
test_base_storage_server.py Clean up a couple deprecation warnings 2015-02-24 10:12:16 -08:00
test_bufferedhttp.py Fix tempauth acl checks when simplejson has no speedups 2015-04-21 14:13:25 +01:00
test_constraints.py versioned writes middleware 2015-08-07 14:11:32 -04:00
test_container_sync_realms.py Fix unit tests failing in some cases 2014-10-09 22:04:53 +05:30
test_daemon.py Merge "Get StringIO and cStringIO from six.moves" 2015-07-24 06:52:36 +00:00
test_db_replicator.py Allows to configure the rsync modules where the replicators will send data 2015-09-07 08:00:18 +02:00
test_db.py Merge "cPickle is deprecated in py3, replacing it from six.moves" 2015-07-28 12:33:24 +00:00
test_direct_client.py Merge "Get StringIO and cStringIO from six.moves" 2015-07-24 06:52:36 +00:00
test_exceptions.py Remove swiftclient dep on direct_client 2013-12-24 03:11:43 -08:00
test_internal_client.py Fix dispersion-reports error message 2015-08-26 11:32:06 +09:00
test_manager.py test/unit: Replace python print operator with print function (pep H233, py33) 2015-07-28 21:03:05 +05:30
test_memcached.py unit tests: Replace "self.assert_" by "self.assertTrue" 2015-07-21 19:23:00 +05:30
test_request_helpers.py Allow sending object metadata after data 2015-04-14 00:52:17 -07:00
test_splice.py unit tests: Replace "self.assert_" by "self.assertTrue" 2015-07-21 19:23:00 +05:30
test_storage_policy.py Use six to fix imports on Python 3 2015-07-24 11:48:28 +02:00
test_swob.py Merge "Replace StringIO with BytesIO for WSGI input" 2015-07-24 06:52:40 +00:00
test_utils.py Allows to configure the rsync modules where the replicators will send data 2015-09-07 08:00:18 +02:00
test_wsgi.py pep8: replace deprecated calls to assert_() 2015-08-19 12:05:01 -07:00