]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
website: include Forbidden in 403 test per https://github.com/dreamhost/s3-tests...
authorRobin H. Johnson <robbat2@gentoo.org>
Sat, 30 Jan 2016 17:14:15 +0000 (17:14 +0000)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Wed, 20 Apr 2016 23:08:57 +0000 (16:08 -0700)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
s3tests/functional/test_s3_website.py

index 574dbd1515de0c79a4786a675bbeabf464ef4779..f55c4785ad4627f0632db92aec483e9ae371d3ab 100644 (file)
@@ -54,7 +54,7 @@ def check_can_test_website():
             elif e.status == 405 and e.reason == 'Method Not Allowed' and e.error_code == 'MethodNotAllowed':
                 # rgw_enable_static_website is false
                 CAN_WEBSITE = False
-            elif e.status == 403 and e.reason == 'SignatureDoesNotMatch':
+            elif e.status == 403 and e.reason == 'SignatureDoesNotMatch' and e.error_code == 'Forbidden':
                 # This is older versions that do not support the website code
                 CAN_WEBSITE = False
             else: