]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
website: RGW does not have custom 404 message descriptions per s3 error codes yet.
authorRobin H. Johnson <robbat2@gentoo.org>
Fri, 29 Jan 2016 05:31:15 +0000 (05:31 +0000)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Wed, 20 Apr 2016 23:08:57 +0000 (16:08 -0700)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
s3tests/functional/test_s3_website.py

index a70e4261488acf60373473414444fbf99be49b0e..574dbd1515de0c79a4786a675bbeabf464ef4779 100644 (file)
@@ -790,10 +790,9 @@ def test_website_xredirect_nonwebsite():
     res = _website_request(bucket.name, '/page')
     body = res.read()
     print(body)
-    # RGW returns "302 Found" per RFC2616
-    # S3 returns 302 Moved Temporarily per RFC1945
-    #_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)
+    # TODO: RGW does not have custom error messages for different 404s yet
+    #expected_content = _website_expected_default_html(Code='NoSuchWebsiteConfiguration', BucketName=bucket.name, Message='The specified bucket does not have a website configuration')
     print(expected_content)
     _website_expected_error_response(res, bucket.name, 404, 'Not Found', 'NoSuchWebsiteConfiguration', content=expected_content, body=body)