swift/swift/common/middleware
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
..
__init__.py Initial commit of middleware refactor 2010-08-20 00:42:38 +00:00
account_quotas.py Fix account quota mw for handling a bad source path 2014-02-19 13:32:32 +01:00
acl.py Fix invalid account acl generating 500 response. 2014-02-19 18:32:53 +00:00
bulk.py Rework use of constraints to ease testing 2014-04-02 23:48:01 -04:00
catch_errors.py add bare except to catch errors 2013-11-26 14:03:30 -05:00
cname_lookup.py Allow multiple storage_domain in cname_lookup. 2014-01-26 10:45:19 +00:00
container_quotas.py Handle COPY verb in container quota middleware 2014-02-04 12:30:20 +01:00
container_sync.py New container sync configuration option 2014-01-10 23:48:00 +00:00
crossdomain.py Fix misspellings in swift 2014-02-20 16:15:48 +08:00
dlo.py Rework use of constraints to ease testing 2014-04-02 23:48:01 -04:00
domain_remap.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
formpost.py Added discoverable capabilities. 2013-11-22 15:54:13 -06:00
gatekeeper.py Block X-Backend* in gatekeeper 2014-03-20 18:53:54 -07:00
healthcheck.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
keystoneauth.py Merge "Added discoverable capabilities." 2013-11-28 00:11:35 +00:00
list_endpoints.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
memcache.py Fix for memcache middleware configuration 2013-11-26 18:03:33 +00:00
name_check.py Add documentation for GateKeeper 2014-01-23 15:04:23 -05:00
proxy_logging.py Rework use of constraints to ease testing 2014-04-02 23:48:01 -04:00
ratelimit.py Add a way to ratelimit all writes to an account 2014-01-29 14:08:19 -08:00
recon.py Fix recon docs 2014-02-10 14:31:14 +00:00
slo.py Range requests not working with sub_SLOs 2014-04-01 08:37:15 -07:00
staticweb.py Improve StaticWeb 404 on web-listings/index 2014-02-18 11:46:31 +00:00
tempauth.py Fix invalid account acl generating 500 response. 2014-02-19 18:32:53 +00:00
tempurl.py Use constant time comparison in tempURL 2014-01-16 13:40:53 +01:00