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

r/s3_bucket_replication_configuration: ensure rule can be created without specifying prefix or filter #22026

Merged
merged 2 commits into from
Dec 3, 2021

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Dec 2, 2021

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" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #21961

Output from acceptance testing:

--- PASS: TestAccS3BucketReplicationConfiguration_basic (408.01s)
--- PASS: TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAccessControlTranslation (399.27s)
--- PASS: TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAddAccessControlTranslation (396.53s)
--- PASS: TestAccS3BucketReplicationConfiguration_disappears (112.18s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_andOperator (398.94s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_tagFilter (371.75s)
--- PASS: TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter (373.07s)
--- PASS: TestAccS3BucketReplicationConfiguration_multipleDestinationsNonEmptyFilter (369.12s)
--- PASS: TestAccS3BucketReplicationConfiguration_replicaModifications (371.20s)
--- PASS: TestAccS3BucketReplicationConfiguration_replicationTimeControl (369.44s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2 (368.41s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics (371.19s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2SameRegion (216.58s)
--- PASS: TestAccS3BucketReplicationConfiguration_twoDestination (371.44s)
--- PASS: TestAccS3BucketReplicationConfiguration_withoutPrefix (372.77s)
--- PASS: TestAccS3BucketReplicationConfiguration_withoutStorageClass (375.82s)
--- SKIP: TestAccS3BucketReplicationConfiguration_existingObjectReplication (0.00s)

@github-actions github-actions bot added size/M 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 Dec 2, 2021
@anGie44 anGie44 added the bug Addresses a defect in current functionality. label Dec 2, 2021
@anGie44 anGie44 changed the title r/s3_bucket_replication_configuration: ensure rule can be created with specifying prefix or filter r/s3_bucket_replication_configuration: ensure rule can be created without specifying prefix or filter Dec 2, 2021
@anGie44 anGie44 marked this pull request as ready for review December 2, 2021 23:56
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccS3BucketReplicationConfiguration_' PKG_NAME=internal/service/s3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run=TestAccS3BucketReplicationConfiguration_ -timeout 180m
=== RUN   TestAccS3BucketReplicationConfiguration_basic
=== PAUSE TestAccS3BucketReplicationConfiguration_basic
=== RUN   TestAccS3BucketReplicationConfiguration_disappears
=== PAUSE TestAccS3BucketReplicationConfiguration_disappears
=== RUN   TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter
=== PAUSE TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter
=== RUN   TestAccS3BucketReplicationConfiguration_multipleDestinationsNonEmptyFilter
=== PAUSE TestAccS3BucketReplicationConfiguration_multipleDestinationsNonEmptyFilter
=== RUN   TestAccS3BucketReplicationConfiguration_twoDestination
=== PAUSE TestAccS3BucketReplicationConfiguration_twoDestination
=== RUN   TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAccessControlTranslation
=== PAUSE TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAccessControlTranslation
=== RUN   TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAddAccessControlTranslation
=== PAUSE TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAddAccessControlTranslation
=== RUN   TestAccS3BucketReplicationConfiguration_replicationTimeControl
=== PAUSE TestAccS3BucketReplicationConfiguration_replicationTimeControl
=== RUN   TestAccS3BucketReplicationConfiguration_replicaModifications
=== PAUSE TestAccS3BucketReplicationConfiguration_replicaModifications
=== RUN   TestAccS3BucketReplicationConfiguration_withoutStorageClass
=== PAUSE TestAccS3BucketReplicationConfiguration_withoutStorageClass
=== RUN   TestAccS3BucketReplicationConfiguration_schemaV2
=== PAUSE TestAccS3BucketReplicationConfiguration_schemaV2
=== RUN   TestAccS3BucketReplicationConfiguration_schemaV2SameRegion
=== PAUSE TestAccS3BucketReplicationConfiguration_schemaV2SameRegion
=== RUN   TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics
=== PAUSE TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics
=== RUN   TestAccS3BucketReplicationConfiguration_existingObjectReplication
    bucket_replication_configuration_test.go:700: skipping test: AWS Technical Support request required to allow ExistingObjectReplication
--- SKIP: TestAccS3BucketReplicationConfiguration_existingObjectReplication (0.00s)
=== RUN   TestAccS3BucketReplicationConfiguration_filter_tagFilter
=== PAUSE TestAccS3BucketReplicationConfiguration_filter_tagFilter
=== RUN   TestAccS3BucketReplicationConfiguration_filter_andOperator
=== PAUSE TestAccS3BucketReplicationConfiguration_filter_andOperator
=== RUN   TestAccS3BucketReplicationConfiguration_withoutPrefix
=== PAUSE TestAccS3BucketReplicationConfiguration_withoutPrefix
=== CONT  TestAccS3BucketReplicationConfiguration_basic
=== CONT  TestAccS3BucketReplicationConfiguration_withoutStorageClass
=== CONT  TestAccS3BucketReplicationConfiguration_filter_tagFilter
=== CONT  TestAccS3BucketReplicationConfiguration_withoutPrefix
=== CONT  TestAccS3BucketReplicationConfiguration_filter_andOperator
=== CONT  TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAccessControlTranslation
=== CONT  TestAccS3BucketReplicationConfiguration_replicaModifications
=== CONT  TestAccS3BucketReplicationConfiguration_replicationTimeControl
=== CONT  TestAccS3BucketReplicationConfiguration_schemaV2SameRegion
=== CONT  TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAddAccessControlTranslation
=== CONT  TestAccS3BucketReplicationConfiguration_multipleDestinationsNonEmptyFilter
=== CONT  TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics
=== CONT  TestAccS3BucketReplicationConfiguration_twoDestination
=== CONT  TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter
=== CONT  TestAccS3BucketReplicationConfiguration_schemaV2
=== CONT  TestAccS3BucketReplicationConfiguration_disappears
--- PASS: TestAccS3BucketReplicationConfiguration_disappears (97.82s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2SameRegion (192.94s)
--- PASS: TestAccS3BucketReplicationConfiguration_multipleDestinationsNonEmptyFilter (348.39s)
--- PASS: TestAccS3BucketReplicationConfiguration_withoutPrefix (351.22s)
--- PASS: TestAccS3BucketReplicationConfiguration_replicaModifications (351.55s)
--- PASS: TestAccS3BucketReplicationConfiguration_replicationTimeControl (351.79s)
--- PASS: TestAccS3BucketReplicationConfiguration_withoutStorageClass (353.06s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_tagFilter (353.02s)
--- PASS: TestAccS3BucketReplicationConfiguration_twoDestination (353.43s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2 (353.67s)
--- PASS: TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter (353.70s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics (357.03s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_andOperator (386.30s)
--- PASS: TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAddAccessControlTranslation (386.74s)
--- PASS: TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAccessControlTranslation (387.79s)
--- PASS: TestAccS3BucketReplicationConfiguration_basic (404.79s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/s3	412.111s

@anGie44 anGie44 added this to the v3.69.0 milestone Dec 3, 2021
@anGie44 anGie44 merged commit 83f1d84 into main Dec 3, 2021
@anGie44 anGie44 deleted the b-s3-bucket-replication-config-without-prefix branch December 3, 2021 20:29
github-actions bot pushed a commit that referenced this pull request Dec 3, 2021
@github-actions
Copy link

This functionality has been released in v3.69.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. Thank you!

@github-actions
Copy link

github-actions bot commented Jun 3, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service. size/M 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
Development

Successfully merging this pull request may close these issues.

Prefix is mandatory in aws_s3_bucket_replication_configuration resource
2 participants