-
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
fix: Allow ROOT as a Repository Creation Template prefix #38685
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 TESTARGS='-run=TestAccECRRepositoryCreationTemplate' PKG=ecr ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/ecr/... -v -count 1 -parallel 4 -run=TestAccECRRepositoryCreationTemplate -timeout 360m
=== RUN TestAccECRRepositoryCreationTemplateDataSource_basic
=== PAUSE TestAccECRRepositoryCreationTemplateDataSource_basic
=== RUN TestAccECRRepositoryCreationTemplateDataSource_root
--- PASS: TestAccECRRepositoryCreationTemplateDataSource_root (9.28s)
=== RUN TestAccECRRepositoryCreationTemplate_basic
=== PAUSE TestAccECRRepositoryCreationTemplate_basic
=== RUN TestAccECRRepositoryCreationTemplate_disappears
=== PAUSE TestAccECRRepositoryCreationTemplate_disappears
=== RUN TestAccECRRepositoryCreationTemplate_failWhenAlreadyExists
=== PAUSE TestAccECRRepositoryCreationTemplate_failWhenAlreadyExists
=== RUN TestAccECRRepositoryCreationTemplate_ignoreEquivalentLifecycle
=== PAUSE TestAccECRRepositoryCreationTemplate_ignoreEquivalentLifecycle
=== RUN TestAccECRRepositoryCreationTemplate_repository
=== PAUSE TestAccECRRepositoryCreationTemplate_repository
=== RUN TestAccECRRepositoryCreationTemplate_root
--- PASS: TestAccECRRepositoryCreationTemplate_root (9.06s)
=== CONT TestAccECRRepositoryCreationTemplateDataSource_basic
=== CONT TestAccECRRepositoryCreationTemplate_failWhenAlreadyExists
=== CONT TestAccECRRepositoryCreationTemplate_repository
=== CONT TestAccECRRepositoryCreationTemplate_ignoreEquivalentLifecycle
--- PASS: TestAccECRRepositoryCreationTemplate_failWhenAlreadyExists (5.63s)
=== CONT TestAccECRRepositoryCreationTemplate_disappears
--- PASS: TestAccECRRepositoryCreationTemplateDataSource_basic (9.42s)
=== CONT TestAccECRRepositoryCreationTemplate_basic
--- PASS: TestAccECRRepositoryCreationTemplate_ignoreEquivalentLifecycle (11.90s)
--- PASS: TestAccECRRepositoryCreationTemplate_disappears (8.84s)
--- PASS: TestAccECRRepositoryCreationTemplate_repository (17.82s)
--- PASS: TestAccECRRepositoryCreationTemplate_basic (10.44s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecr 42.870s
@bodgit Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.62.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 fixes the
aws_ecr_repository_creation_template
resource and data source so they acceptROOT
as a valid value. I think this was missed as I originally copied the validator from the pull-through cache code without adding this additional special case.Tests added, explicitly not using
ParallelTest
so the resource and data source tests don’t fight over the one template that can exist.Relations
Closes #38650
References
Output from Acceptance Testing