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

aws_s3_bucket_object : detect empty values at plan time #9591

Merged
merged 1 commit into from
Aug 7, 2019

Conversation

vedsmand
Copy link
Contributor

@vedsmand vedsmand commented Aug 1, 2019

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Closes #9503

Release note for CHANGELOG:

added plan time validation for aws_s3_bucket_object on name and key properties

Output from acceptance testing:

--- PASS: TestAccAWSS3BucketObject_noNameNoKey (10.32s)
--- PASS: TestAccAWSS3BucketObject_contentBase64 (31.61s)
--- PASS: TestAccAWSS3BucketObject_source (31.76s)
--- PASS: TestAccAWSS3BucketObject_empty (32.56s)
--- PASS: TestAccAWSS3BucketObject_content (33.94s)
--- PASS: TestAccAWSS3BucketObject_sse (34.00s)
--- PASS: TestAccAWSS3BucketObject_withContentCharacteristics (35.71s)
--- PASS: TestAccAWSS3BucketObject_updates (49.25s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioning (52.65s)
--- PASS: TestAccAWSS3BucketObject_kms (53.75s)
--- PASS: TestAccAWSS3BucketObject_metadata (65.61s)
--- PASS: TestAccAWSS3BucketObject_acl (66.41s)
--- PASS: TestAccAWSS3BucketObject_tags (83.14s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingSlash (83.52s)
--- PASS: TestAccAWSS3BucketObject_storageClass (101.14s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       101.243s
...

@ghost ghost added size/S Managed by automation to categorize the size of a PR. service/s3 Issues and PRs that pertain to the s3 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Aug 1, 2019
@vedsmand vedsmand changed the title s3_object : detect empty values at plan time aws_s3_bucket_object : detect empty values at plan time Aug 1, 2019
@vedsmand vedsmand marked this pull request as ready for review August 2, 2019 07:22
@vedsmand vedsmand requested a review from a team August 2, 2019 07:22
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 2, 2019
@bflad bflad added this to the v2.23.0 milestone Aug 6, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, @vedsmand, thanks so much for adding the testing as well 🚀

--- PASS: TestAccAWSS3BucketObject_noNameNoKey (2.58s)
--- PASS: TestAccAWSS3BucketObject_withContentCharacteristics (14.73s)
--- PASS: TestAccAWSS3BucketObject_source (14.76s)
--- PASS: TestAccAWSS3BucketObject_sse (14.81s)
--- PASS: TestAccAWSS3BucketObject_empty (14.89s)
--- PASS: TestAccAWSS3BucketObject_contentBase64 (14.96s)
--- PASS: TestAccAWSS3BucketObject_content (15.07s)
--- PASS: TestAccAWSS3BucketObject_updates (21.34s)
--- PASS: TestAccAWSS3BucketObject_updatesWithVersioning (21.67s)
--- PASS: TestAccAWSS3BucketObject_metadata (27.53s)
--- PASS: TestAccAWSS3BucketObject_acl (27.58s)
--- PASS: TestAccAWSS3BucketObject_tagsLeadingSlash (32.67s)
--- PASS: TestAccAWSS3BucketObject_kms (33.61s)
--- PASS: TestAccAWSS3BucketObject_tags (34.66s)
--- PASS: TestAccAWSS3BucketObject_storageClass (38.07s)

@bflad bflad merged commit 7bc771f into hashicorp:master Aug 7, 2019
bflad added a commit that referenced this pull request Aug 7, 2019
@ghost
Copy link

ghost commented Aug 7, 2019

This has been released in version 2.23.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Nov 2, 2019

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!

@ghost ghost locked and limited conversation to collaborators Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service. size/S Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
2 participants