]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commit
Improve proxy error support: "Bad Request" case 79/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Wed, 7 Oct 2015 19:31:31 +0000 (12:31 -0700)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Fri, 18 Dec 2015 19:50:11 +0000 (11:50 -0800)
commitd98d7956c10d1a356e7856a92755d2c31141f57a
tree146ffbba2508502538c7146cd1a51f8832be4030
parenta85b279bdca91cf5ef1c952b23f68ee314c6e952
Improve proxy error support: "Bad Request" case

If you are run the S3 testsuite against a reverse proxy (eg haproxy)
rather than RGW directly, some of the tests will return errors from the
proxy, rather than haproxy itself.

Some proxies differ from RGW in the exact case of 'Bad Request', so do
the match in a case-insensitive manner. Haproxy for example returns 'Bad
request'.

This removes the need for some of the prior fails_on_dho test tags, as
the failure was due to haproxy.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
s3tests/functional/test_headers.py
s3tests/functional/test_s3.py