From d6090edb82f656784042e07ef08faa9cdff2c076 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 29 Jul 2019 14:16:38 -0700 Subject: [PATCH] Do not run website tests when server emits 501 Signed-off-by: Andrew Gaul --- s3tests/functional/test_s3_website.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/s3tests/functional/test_s3_website.py b/s3tests/functional/test_s3_website.py index aa837e8..f22bd32 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: