mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-22 09:29:43 +00:00
Merge pull request #296 from gaul/can-test-website-501
Do not run website tests when server emits 501 Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
4a053e1640
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ def check_can_test_website():
|
||||||
elif e.status == 403 and e.reason == 'SignatureDoesNotMatch' and e.error_code == 'Forbidden':
|
elif e.status == 403 and e.reason == 'SignatureDoesNotMatch' and e.error_code == 'Forbidden':
|
||||||
# This is older versions that do not support the website code
|
# This is older versions that do not support the website code
|
||||||
CAN_WEBSITE = False
|
CAN_WEBSITE = False
|
||||||
|
elif e.status == 501 and e.error_code == 'NotImplemented':
|
||||||
|
CAN_WEBSITE = False
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Unknown response in checking if WebsiteConf is supported", e)
|
raise RuntimeError("Unknown response in checking if WebsiteConf is supported", e)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue