-
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
d/aws_route53_zone: Filter on tags is containment, not exact equality #11953
Conversation
The updated test case without the corresponding fix gives: $ make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsRoute53Zone_tags'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsRoute53Zone_tags -timeout 120m
=== RUN TestAccDataSourceAwsRoute53Zone_tags
=== PAUSE TestAccDataSourceAwsRoute53Zone_tags
=== CONT TestAccDataSourceAwsRoute53Zone_tags
--- FAIL: TestAccDataSourceAwsRoute53Zone_tags (78.85s)
testing.go:640: Step 0 error: errors during apply:
Error: no matching Route53Zone found
on /tmp/tf-test064323633/main.tf line 22:
(source code not available)
testing.go:701: Error destroying resource! WARNING: Dangling resources
may exist. The full state and error is shown below.
Error: errors during refresh: no matching Route53Zone found
State: <nil>
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 78.928s
FAIL
GNUmakefile:24: recipe for target 'testacc' failed
make: *** [testacc] Error 1 |
I think this should be good to go once the merge conflicts are sorted. 👍 |
e837a54
to
0349620
Compare
Rebased to remove merge conflicts. % make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsRoute53Zone_tags'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsRoute53Zone_tags -timeout 120m
=== RUN TestAccDataSourceAwsRoute53Zone_tags
=== PAUSE TestAccDataSourceAwsRoute53Zone_tags
=== CONT TestAccDataSourceAwsRoute53Zone_tags
--- PASS: TestAccDataSourceAwsRoute53Zone_tags (120.91s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 122.219s |
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.
Looks great, thanks for this fix (and nice enhancement to keyvaluetags to help other resources with this problem in the future), @ewbankkit 🚀
Output from acceptance testing:
--- PASS: TestAccDataSourceAwsRoute53Zone_name (53.44s)
--- PASS: TestAccDataSourceAwsRoute53Zone_id (53.47s)
--- PASS: TestAccDataSourceAwsRoute53Zone_vpc (92.55s)
--- PASS: TestAccDataSourceAwsRoute53Zone_tags (93.48s)
--- PASS: TestAccDataSourceAwsRoute53Zone_serviceDiscovery (102.37s)
This has been released in version 2.49.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 for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #11950.
Release note for CHANGELOG:
Output from acceptance testing: