-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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/dynamodb_tag: change equality check in propagation waiter #39491
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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 PKG=dynamodb TESTS=TestAccDynamoDBTag_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.1 test ./internal/service/dynamodb/... -v -count 1 -parallel 20 -run='TestAccDynamoDBTag_' -timeout 360m
--- PASS: TestAccDynamoDBTag_disappears (29.42s)
--- PASS: TestAccDynamoDBTag_basic (31.94s)
--- PASS: TestAccDynamoDBTag_value (50.12s)
--- PASS: TestAccDynamoDBTag_multipleTags (71.76s)
--- PASS: TestAccDynamoDBTag_ResourceARN_tableReplica (197.23s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/dynamodb 204.015s
% make testacc PKG=dynamodb TESTS="TestAccDynamoDBTable_Replica_tagsUpdate|TestAccDynamoDBTableReplica_basic|TestAccDynamoDBTableReplica_tableClass|TestAccDynamoDBTableReplica_tags"
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.1 test ./internal/service/dynamodb/... -v -count 1 -parallel 20 -run='TestAccDynamoDBTable_Replica_tagsUpdate|TestAccDynamoDBTableReplica_basic|TestAccDynamoDBTableRepl
ica_tableClass|TestAccDynamoDBTableReplica_tags' -timeout 360m
--- PASS: TestAccDynamoDBTableReplica_basic (259.24s)
--- PASS: TestAccDynamoDBTableReplica_tags (311.55s)
--- PASS: TestAccDynamoDBTableReplica_tableClass (372.02s)
--- PASS: TestAccDynamoDBTable_Replica_tagsUpdate (431.19s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/dynamodb 436.395s
@@ -22,7 +22,7 @@ func {{ .WaitTagsPropagatedFunc }}(ctx context.Context, conn {{ .ClientType }}, | |||
output = output.IgnoreConfig(inContext.IgnoreConfig) | |||
} | |||
|
|||
return output.Equal(tags), nil | |||
return output.{{ .WaitFuncComparator }}(tags), nil |
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.
Nice 👍
Just needs a changelog. |
internal/generate/tags/templates/v2/wait_tags_propagated_body.gtpl
Outdated
Show resolved
Hide resolved
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 PKG=dynamodb TESTS=TestAccDynamoDBTag_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.1 test ./internal/service/dynamodb/... -v -count 1 -parallel 20 -run='TestAccDynamoDBTag_' -timeout 360m
--- PASS: TestAccDynamoDBTag_disappears (29.61s)
--- PASS: TestAccDynamoDBTag_basic (32.12s)
--- PASS: TestAccDynamoDBTag_value (43.81s)
--- PASS: TestAccDynamoDBTag_multipleTags (78.89s)
--- PASS: TestAccDynamoDBTag_ResourceARN_tableReplica (185.82s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/dynamodb 191.120s
% make testacc PKG=dynamodb TESTS=TestAccDynamoDBTable_tags
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.1 test ./internal/service/dynamodb/... -v -count 1 -parallel 20 -run='TestAccDynamoDBTable_tags' -timeout 360m
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_emptyResourceTag (67.35s)
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_nullNonOverlappingResourceTag (68.77s)
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_nullOverlappingResourceTag (68.82s)
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_emptyProviderOnlyTag (69.06s)
--- PASS: TestAccDynamoDBTable_tags_ComputedTag_OnCreate (69.22s)
--- PASS: TestAccDynamoDBTable_tags_null (74.51s)
--- PASS: TestAccDynamoDBTable_tags_EmptyMap (76.45s)
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_updateToResourceOnly (83.99s)
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_updateToProviderOnly (86.20s)
--- PASS: TestAccDynamoDBTable_tags_AddOnUpdate (87.75s)
--- PASS: TestAccDynamoDBTable_tags_ComputedTag_OnUpdate_Replace (91.05s)
--- PASS: TestAccDynamoDBTable_tags_EmptyTag_OnUpdate_Replace (93.37s)
--- PASS: TestAccDynamoDBTable_tags_ComputedTag_OnUpdate_Add (93.65s)
--- PASS: TestAccDynamoDBTable_tags_EmptyTag_OnCreate (97.06s)
--- PASS: TestAccDynamoDBTable_tags_EmptyTag_OnUpdate_Add (110.56s)
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_nonOverlapping (118.47s)
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_overlapping (120.41s)
--- PASS: TestAccDynamoDBTable_tags (131.51s)
--- PASS: TestAccDynamoDBTable_tags_DefaultTags_providerOnly (137.57s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/dynamodb 144.437s
This functionality has been released in v5.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! |
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. |
Description
When multiple tag resources are added the wait function for tag propagation will continuously return
false
until timeout is reached.Relations
Relates #39326
References
Output from Acceptance Testing