-
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
secretsmanager/secret: Fix equivalent policy diffs #22217
Conversation
New acceptance test run after a set of fixes:
% make testacc TESTS=TestAccSecretsManagerSecretPolicy PKG=secretsmanager
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/secretsmanager/... -v -count 1 -parallel 20 -run='TestAccSecretsManagerSecretPolicy' -timeout 180m
--- PASS: TestAccSecretsManagerSecretPolicy_disappears (23.08s)
--- PASS: TestAccSecretsManagerSecretPolicy_basic (39.35s)
--- PASS: TestAccSecretsManagerSecretPolicy_blockPublicPolicy (51.90s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/secretsmanager 53.423s
% make testacc TESTS=TestAccSecretsManagerSecret_ PKG=secretsmanager
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/secretsmanager/... -v -count 1 -parallel 20 -run='TestAccSecretsManagerSecret_' -timeout 180m
--- PASS: TestAccSecretsManagerSecret_basic (14.98s)
--- PASS: TestAccSecretsManagerSecret_withNamePrefix (14.98s)
--- PASS: TestAccSecretsManagerSecret_basicReplica (18.39s)
--- PASS: TestAccSecretsManagerSecret_RecoveryWindowInDays_recreate (22.60s)
--- PASS: TestAccSecretsManagerSecret_description (23.77s)
--- PASS: TestAccSecretsManagerSecret_kmsKeyID (27.33s)
--- PASS: TestAccSecretsManagerSecret_tags (40.14s)
--- PASS: TestAccSecretsManagerSecret_policy (44.49s)
--- PASS: TestAccSecretsManagerSecret_rotationLambdaARN (49.58s)
--- PASS: TestAccSecretsManagerSecret_rotationRules (58.30s)
--- PASS: TestAccSecretsManagerSecret_overwriteReplica (60.48s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/secretsmanager 61.761s GovCloud (note that GovCloud only has 2 regions): % make testacc TESTS=TestAccSecretsManagerSecretPolicy_ PKG=secretsmanager
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/secretsmanager/... -v -count 1 -parallel 20 -run='TestAccSecretsManagerSecretPolicy_' -timeout 180m
--- PASS: TestAccSecretsManagerSecretPolicy_disappears (31.20s)
--- PASS: TestAccSecretsManagerSecretPolicy_basic (52.15s)
--- PASS: TestAccSecretsManagerSecretPolicy_blockPublicPolicy (77.08s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/secretsmanager 78.360s
% make testacc TESTS=TestAccSecretsManagerSecret_ PKG=secretsmanager
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/secretsmanager/... -v -count 1 -parallel 20 -run='TestAccSecretsManagerSecret_' -timeout 180m
acctest.go:624: wanted 3 regions, partition (aws-us-gov) only has 2 regions
--- SKIP: TestAccSecretsManagerSecret_overwriteReplica (2.98s)
--- PASS: TestAccSecretsManagerSecret_basicReplica (23.87s)
--- PASS: TestAccSecretsManagerSecret_basic (24.18s)
--- PASS: TestAccSecretsManagerSecret_withNamePrefix (24.33s)
--- PASS: TestAccSecretsManagerSecret_RecoveryWindowInDays_recreate (36.84s)
--- PASS: TestAccSecretsManagerSecret_description (39.62s)
--- PASS: TestAccSecretsManagerSecret_kmsKeyID (48.30s)
--- PASS: TestAccSecretsManagerSecret_rotationRules (66.95s)
--- PASS: TestAccSecretsManagerSecret_policy (70.26s)
--- PASS: TestAccSecretsManagerSecret_tags (73.36s)
--- PASS: TestAccSecretsManagerSecret_rotationLambdaARN (83.36s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/secretsmanager 88.085s |
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccSecretsManagerSecretPolicy_\|TestAccSecretsManagerSecret_' PKG=secretsmanager
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/secretsmanager/... -v -count 1 -parallel 20 -run=TestAccSecretsManagerSecretPolicy_\|TestAccSecretsManagerSecret_ -timeout 180m
=== RUN TestAccSecretsManagerSecretPolicy_basic
=== PAUSE TestAccSecretsManagerSecretPolicy_basic
=== RUN TestAccSecretsManagerSecretPolicy_blockPublicPolicy
=== PAUSE TestAccSecretsManagerSecretPolicy_blockPublicPolicy
=== RUN TestAccSecretsManagerSecretPolicy_disappears
=== PAUSE TestAccSecretsManagerSecretPolicy_disappears
=== RUN TestAccSecretsManagerSecret_basic
=== PAUSE TestAccSecretsManagerSecret_basic
=== RUN TestAccSecretsManagerSecret_withNamePrefix
=== PAUSE TestAccSecretsManagerSecret_withNamePrefix
=== RUN TestAccSecretsManagerSecret_description
=== PAUSE TestAccSecretsManagerSecret_description
=== RUN TestAccSecretsManagerSecret_basicReplica
=== PAUSE TestAccSecretsManagerSecret_basicReplica
=== RUN TestAccSecretsManagerSecret_overwriteReplica
=== PAUSE TestAccSecretsManagerSecret_overwriteReplica
=== RUN TestAccSecretsManagerSecret_kmsKeyID
=== PAUSE TestAccSecretsManagerSecret_kmsKeyID
=== RUN TestAccSecretsManagerSecret_RecoveryWindowInDays_recreate
=== PAUSE TestAccSecretsManagerSecret_RecoveryWindowInDays_recreate
=== RUN TestAccSecretsManagerSecret_rotationLambdaARN
=== PAUSE TestAccSecretsManagerSecret_rotationLambdaARN
=== RUN TestAccSecretsManagerSecret_rotationRules
=== PAUSE TestAccSecretsManagerSecret_rotationRules
=== RUN TestAccSecretsManagerSecret_tags
=== PAUSE TestAccSecretsManagerSecret_tags
=== RUN TestAccSecretsManagerSecret_policy
=== PAUSE TestAccSecretsManagerSecret_policy
=== CONT TestAccSecretsManagerSecretPolicy_basic
=== CONT TestAccSecretsManagerSecret_kmsKeyID
=== CONT TestAccSecretsManagerSecret_tags
=== CONT TestAccSecretsManagerSecret_withNamePrefix
=== CONT TestAccSecretsManagerSecret_overwriteReplica
=== CONT TestAccSecretsManagerSecret_basicReplica
=== CONT TestAccSecretsManagerSecret_rotationLambdaARN
=== CONT TestAccSecretsManagerSecret_description
=== CONT TestAccSecretsManagerSecretPolicy_disappears
=== CONT TestAccSecretsManagerSecret_rotationRules
=== CONT TestAccSecretsManagerSecret_basic
=== CONT TestAccSecretsManagerSecretPolicy_blockPublicPolicy
=== CONT TestAccSecretsManagerSecret_policy
=== CONT TestAccSecretsManagerSecret_RecoveryWindowInDays_recreate
--- PASS: TestAccSecretsManagerSecret_withNamePrefix (36.24s)
--- PASS: TestAccSecretsManagerSecret_basic (36.47s)
--- PASS: TestAccSecretsManagerSecret_basicReplica (39.87s)
--- PASS: TestAccSecretsManagerSecret_RecoveryWindowInDays_recreate (52.62s)
--- PASS: TestAccSecretsManagerSecretPolicy_disappears (56.85s)
--- PASS: TestAccSecretsManagerSecret_description (57.89s)
--- PASS: TestAccSecretsManagerSecret_kmsKeyID (67.88s)
--- PASS: TestAccSecretsManagerSecretPolicy_basic (74.09s)
--- PASS: TestAccSecretsManagerSecret_rotationRules (84.29s)
--- PASS: TestAccSecretsManagerSecret_policy (86.31s)
--- PASS: TestAccSecretsManagerSecret_tags (90.39s)
--- PASS: TestAccSecretsManagerSecret_rotationLambdaARN (91.87s)
--- PASS: TestAccSecretsManagerSecretPolicy_blockPublicPolicy (92.12s)
--- PASS: TestAccSecretsManagerSecret_overwriteReplica (99.04s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/secretsmanager 103.925s
This functionality has been released in v3.70.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! |
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. |
Community Note
Relates #21968
Closes #21611
Closes #20781
Closes #18461
Relates #22004
Output from acceptance testing (
us-west-2
):Output from acceptance testing (GovCloud):