]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Do not run website tests when server emits 501 296/head
authorAndrew Gaul <andrew@gaul.org>
Mon, 29 Jul 2019 21:16:38 +0000 (14:16 -0700)
committerAndrew Gaul <andrew@gaul.org>
Mon, 29 Jul 2019 21:16:38 +0000 (14:16 -0700)
Signed-off-by: Andrew Gaul <andrew@gaul.org>
s3tests/functional/test_s3_website.py

index aa837e827ff552819aabd749aa9b41ca6e577adc..f22bd3299832cd554a59e275a684f58831886d05 100644 (file)
@@ -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: