-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_s3_bucket_object: Allow empty object #7544
Conversation
… the natural configuration for website_redirect, since those objects do not require any content.
@stefansundin Acceptance tests always appreciated 😄 . |
Output from acceptance testing:
Let me know if I should change anything else! |
I think this one is ready to be merged. :) |
@bflad @ewbankkit I think this one is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delayed review, LGTM. 🚀
--- PASS: TestAccAWSS3BucketObject_acl (68.12s)
--- PASS: TestAccAWSS3BucketObject_content (28.25s)
--- PASS: TestAccAWSS3BucketObject_contentBase64 (27.65s)
--- PASS: TestAccAWSS3BucketObject_empty (29.19s)
--- PASS: TestAccAWSS3BucketObject_kms (52.87s)
--- PASS: TestAccAWSS3BucketObject_source (27.28s)
--- PASS: TestAccAWSS3BucketObject_sse (27.85s)
--- PASS: TestAccAWSS3BucketObject_storageClass (104.25s)
--- PASS: TestAccAWSS3BucketObject_tags (84.20s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingSlash (87.44s)
--- PASS: TestAccAWSS3BucketObject_updates (48.88s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioning (49.12s)
--- PASS: TestAccAWSS3BucketObject_withContentCharacteristics (29.28s)
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Changes proposed in this pull request:
I haven't written a test for this since I am not sure it requires one.I have compiled and tested it live, with bothcontent = ""
and withoutsource
,content
, andcontent_base64
altogether.I recently wanted to be able to create empty S3 objects, to use them with
website_redirect
. There is no point in putting any data in those objects.Currently I am using:
An empty object like this can also be created with the awscli:
Let me know if you think a new test is necessary, and I will write one.Thank you!