From: Andrew Gaul Date: Mon, 29 Jul 2019 21:16:38 +0000 (-0700) Subject: Do not run website tests when server emits 501 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d6090edb82f656784042e07ef08faa9cdff2c076;p=s3-tests.git Do not run website tests when server emits 501 Signed-off-by: Andrew Gaul --- diff --git a/s3tests/functional/test_s3_website.py b/s3tests/functional/test_s3_website.py index aa837e82..f22bd329 100644 --- a/s3tests/functional/test_s3_website.py +++ b/s3tests/functional/test_s3_website.py @@ -59,6 +59,8 @@ def check_can_test_website(): 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 + elif e.status == 501 and e.error_code == 'NotImplemented': + CAN_WEBSITE = False else: raise RuntimeError("Unknown response in checking if WebsiteConf is supported", e) finally: