forked from TrueCloudLab/s3-tests
website: RGW does not have custom 404 message descriptions per s3 error codes yet.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
17f98b00ba
commit
6ce34d3c6a
1 changed files with 3 additions and 4 deletions
|
@ -790,10 +790,9 @@ def test_website_xredirect_nonwebsite():
|
||||||
res = _website_request(bucket.name, '/page')
|
res = _website_request(bucket.name, '/page')
|
||||||
body = res.read()
|
body = res.read()
|
||||||
print(body)
|
print(body)
|
||||||
# RGW returns "302 Found" per RFC2616
|
expected_content = _website_expected_default_html(Code='NoSuchWebsiteConfiguration', BucketName=bucket.name)
|
||||||
# S3 returns 302 Moved Temporarily per RFC1945
|
# TODO: RGW does not have custom error messages for different 404s yet
|
||||||
#_website_expected_redirect_response(res, 302, ['Found', 'Moved Temporarily'], new_url)
|
#expected_content = _website_expected_default_html(Code='NoSuchWebsiteConfiguration', BucketName=bucket.name, Message='The specified bucket does not have a website configuration')
|
||||||
expected_content = _website_expected_default_html(Code='NoSuchWebsiteConfiguration', BucketName=bucket.name, Message='The specified bucket does not have a website configuration')
|
|
||||||
print(expected_content)
|
print(expected_content)
|
||||||
_website_expected_error_response(res, bucket.name, 404, 'Not Found', 'NoSuchWebsiteConfiguration', content=expected_content, body=body)
|
_website_expected_error_response(res, bucket.name, 404, 'Not Found', 'NoSuchWebsiteConfiguration', content=expected_content, body=body)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue