swift/swift/common
Peter Portante 07fcf50c3a Rework use of constraints to ease testing
Prior to this patch both mainline code and testing modules imported
and used constraints directly into their own namespace, or relied on
the namespace of other modules that were not the constraints
module. This meant that if a unit test wanted to change a constraint
for its operation, it had to know how that module was using the
constraint, instead of referencing the constraint module itself.

This patch unifies the use of constraints so that all constraints are
referenced via the constraints module. In turn, this allows a test to
leverage the re-loadable nature of the constraints in the constraints
module.

It addition, a number of functional tests where using the default
values for constraints, instead of the configured value discovered in
a test.conf or in an existing swift.conf. This patch removes those
direct references in favor of the load_constraint() method from the
test/functional/tests.py module.

Change-Id: Ia5313d653c667dd9ca800786de59b59334c34eaa
2014-04-02 23:48:01 -04:00
..
middleware Rework use of constraints to ease testing 2014-04-02 23:48:01 -04:00
ring Merge "Write out ring.gz's in a safer fashion" 2014-03-27 21:23:50 +00:00
__init__.py Start using Hacking 2013-07-15 11:41:58 +02:00
bufferedhttp.py Merge "Stop reading from object server when client disconnects." 2013-10-07 22:30:13 +00:00
constraints.py Rework use of constraints to ease testing 2014-04-02 23:48:01 -04:00
container_sync_realms.py New container sync configuration option 2014-01-10 23:48:00 +00:00
daemon.py Revert "Refactor common/utils methods to common/ondisk" 2013-10-07 17:18:09 -04:00
db.py Fixed DB test cases on PyPy 2013-12-02 14:24:22 -06:00
db_replicator.py Only fetch a timestamp when needed 2014-04-02 08:32:02 -04:00
direct_client.py Remove swiftclient dep on direct_client 2013-12-24 03:11:43 -08:00
exceptions.py Remove swiftclient dep on direct_client 2013-12-24 03:11:43 -08:00
http.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
internal_client.py Merge "Speed up failing InternalClient requests" 2014-03-07 21:27:34 +00:00
manager.py make probetests work with conf.d configs 2014-03-12 12:04:45 -07:00
memcached.py bare excepts, as is proper 2013-11-26 14:39:30 -08:00
request_helpers.py Check object segment MD5s 2014-03-13 12:56:01 -07:00
swob.py Allow pre-1970 dates in If-[Un]Modified-Since 2014-03-14 17:55:42 -07:00
utils.py Move like unit tests together; add comments 2014-03-27 15:58:13 -04:00
wsgi.py don't repatch mimetools again. and again. again. 2014-03-26 11:10:49 -07:00