Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_object_read_unreadable #480

Open
shirady opened this issue Dec 4, 2022 · 0 comments
Open

test_object_read_unreadable #480

shirady opened this issue Dec 4, 2022 · 0 comments

Comments

@shirady
Copy link

shirady commented Dec 4, 2022

Hi,
about test test_object_read_unreadable(full name: s3tests_boto3.functional.test_s3:test_object_read_unreadable).
As I understand in this test we try to get an object which does not exist in the bucket.
The PR was about the encoding utf-8 in the name of the key and the issue that was opened was about head-object (and not get-object).

according to the documentation:

If the object you request does not exist, the error Amazon S3 returns depends on whether you also have the s3:ListBucket permission. If you have the s3:ListBucket permission on the bucket, Amazon S3 will return an HTTP status code 404 ("no such key") error.

-       ` eq(status, 400)`
+       ` eq(status, 404)`

-       `eq(e.response['Error']['Message'], 'Couldn\'t parse the specified URI.')`
+       `eq(e.response['Error']['Message'], 'The specified key does not exist.')`

In case the above is true, please let me know. I can create a PR with the fix.
In case not, please specify the details so I can test in AWS s3 console (it uses boto3 also).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant