mirror of
https://github.com/ceph/s3-tests.git
synced 2024-12-23 03:41:35 +00:00
Do not run website tests when server emits 501
Signed-off-by: Andrew Gaul <andrew@gaul.org>
This commit is contained in:
parent
968778e81b
commit
d6090edb82
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