-
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
Actually fetch the tags of a service #38067
Actually fetch the tags of a service #38067
Conversation
Community NoteVoting for Prioritization
For Submitters
|
The acceptance test only checked the existence of the `tags` attribute, but not the actual contents -- so the missing `Include: ["TAGS"]` for the `DescribeServices` call wasn't detected. Fix that by explicitly checking for the number of tags (1) and the one we expect.
7231900
to
2e3c1a1
Compare
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=TestAccECSServiceDataSource_\|TestAccECSService_disappears' PKG=ecs
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/ecs/... -v -count 1 -parallel 20 -run=TestAccECSServiceDataSource_\|TestAccECSService_disappears -timeout 360m
=== RUN TestAccECSServiceDataSource_basic
=== PAUSE TestAccECSServiceDataSource_basic
=== RUN TestAccECSService_disappears
=== PAUSE TestAccECSService_disappears
=== CONT TestAccECSServiceDataSource_basic
=== CONT TestAccECSService_disappears
--- PASS: TestAccECSServiceDataSource_basic (59.87s)
--- PASS: TestAccECSService_disappears (180.61s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecs 185.259s
@ankon Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.56.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. |
The acceptance test only checked the existence of the
tags
attribute, but not the actual contents -- so the missingInclude: ["TAGS"]
for theDescribeServices
call wasn't detected.Fix that by explicitly checking for the number of tags (1) and the one we expect.
Relations
Relates #18593 (Code related to the ISO regions cloned from cluster_data_source, I have no means of checking whether this is actually true or not.)
Closes #34124.
References
https://pkg.go.dev/github.com/aws/aws-sdk-go@v1.54.6/service/ecs#DescribeServicesInput
Output from Acceptance Testing