mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 11:51:06 +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':
|
||||
# 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:
|
||||
|
|
Loading…
Reference in a new issue