-
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
fix: Remove extra closing bracket in Tags annotation for aws_ecr_repository data source #38272
fix: Remove extra closing bracket in Tags annotation for aws_ecr_repository data source #38272
Conversation
Community NoteVoting for Prioritization
For Submitters
|
598b7a4
to
8bba129
Compare
…sitory data source
8bba129
to
79f185f
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=TestAccECRRepositoryDataSource_' PKG=ecr
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/ecr/... -v -count 1 -parallel 20 -run=TestAccECRRepositoryDataSource_ -timeout 360m
=== RUN TestAccECRRepositoryDataSource_basic
=== PAUSE TestAccECRRepositoryDataSource_basic
=== RUN TestAccECRRepositoryDataSource_encryption
=== PAUSE TestAccECRRepositoryDataSource_encryption
=== RUN TestAccECRRepositoryDataSource_nonExistent
=== PAUSE TestAccECRRepositoryDataSource_nonExistent
=== CONT TestAccECRRepositoryDataSource_basic
=== CONT TestAccECRRepositoryDataSource_nonExistent
=== CONT TestAccECRRepositoryDataSource_encryption
--- PASS: TestAccECRRepositoryDataSource_nonExistent (2.88s)
--- PASS: TestAccECRRepositoryDataSource_basic (11.90s)
--- PASS: TestAccECRRepositoryDataSource_encryption (13.77s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecr 18.609s
@acwwat Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.58.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
This PR is to fix the issue where
tags
are not set/loaded by theaws_ecr_repository
data source because of an extra)
in the@Tags
annotation comment that caused bad code generation.The original test case is also not catching the issue since it's comparing the
tags
map attribute between the resource and data source directly. It seems to be related to how theTestCheckResourceAttrPair()
function works, so instead I've changed it to compare the map lengths instead for more proper validation (short of comparing the two tags direcrtly).Relations
Closes #38155
References
n/a
Output from Acceptance Testing