From: Robin H. Johnson Date: Sat, 30 Jan 2016 17:14:15 +0000 (+0000) Subject: website: include Forbidden in 403 test per https://github.com/dreamhost/s3-tests... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f028e1e926bddac3396e7316f3c483a4f4ea161d;p=s3-tests.git website: include Forbidden in 403 test per https://github.com/dreamhost/s3-tests/commit/802c8a3ee985a90e35b21ffab5f670c2eeecf8a9#commitcomment-15776266. Signed-off-by: Robin H. Johnson --- diff --git a/s3tests/functional/test_s3_website.py b/s3tests/functional/test_s3_website.py index 574dbd15..f55c4785 100644 --- a/s3tests/functional/test_s3_website.py +++ b/s3tests/functional/test_s3_website.py @@ -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: