Skip to content
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/aws_route53_health_check - suppress diff when expanded ipv6 address is the same #12305

Merged
merged 5 commits into from
Mar 27, 2020

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Mar 7, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #11069

Release note for CHANGELOG:

resource_aws_route53_health_check: do not recreate health check when using compressed ipv6 address.
resource_aws_route53_health_check: add plan time validation to `insufficient_data_health_status`.

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSRoute53HealthCheck_'
--- PASS: TestAccAWSRoute53HealthCheck_basic (72.75s)
--- PASS: TestAccAWSRoute53HealthCheck_IpConfig (43.30s)
--- PASS: TestAccAWSRoute53HealthCheck_Ipv6Config (44.32s)
--- PASS: TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck (54.50s)
--- PASS: TestAccAWSRoute53HealthCheck_withSNI (103.25s)
--- PASS: TestAccAWSRoute53HealthCheck_withChildHealthChecks (50.15s)
--- PASS: TestAccAWSRoute53HealthCheck_withHealthCheckRegions (42.71s)
--- PASS: TestAccAWSRoute53HealthCheck_withSearchString (72.53s)
--- PASS: TestAccAWSRoute53HealthCheck_tags (101.66s)
--- PASS: TestAccAWSRoute53HealthCheck_disappears (35.03s)

@DrFaust92 DrFaust92 requested a review from a team March 7, 2020 15:18
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/S Managed by automation to categorize the size of a PR. service/route53 Issues and PRs that pertain to the route53 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 7, 2020
@ghost ghost added size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Mar 7, 2020
@ewbankkit
Copy link
Contributor

Verified acceptance tests:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSRoute53HealthCheck_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSRoute53HealthCheck_ -timeout 120m
=== RUN   TestAccAWSRoute53HealthCheck_basic
=== PAUSE TestAccAWSRoute53HealthCheck_basic
=== RUN   TestAccAWSRoute53HealthCheck_tags
=== PAUSE TestAccAWSRoute53HealthCheck_tags
=== RUN   TestAccAWSRoute53HealthCheck_withSearchString
=== PAUSE TestAccAWSRoute53HealthCheck_withSearchString
=== RUN   TestAccAWSRoute53HealthCheck_withChildHealthChecks
=== PAUSE TestAccAWSRoute53HealthCheck_withChildHealthChecks
=== RUN   TestAccAWSRoute53HealthCheck_withHealthCheckRegions
=== PAUSE TestAccAWSRoute53HealthCheck_withHealthCheckRegions
=== RUN   TestAccAWSRoute53HealthCheck_IpConfig
=== PAUSE TestAccAWSRoute53HealthCheck_IpConfig
=== RUN   TestAccAWSRoute53HealthCheck_Ipv6Config
=== PAUSE TestAccAWSRoute53HealthCheck_Ipv6Config
=== RUN   TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck
=== PAUSE TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck
=== RUN   TestAccAWSRoute53HealthCheck_withSNI
=== PAUSE TestAccAWSRoute53HealthCheck_withSNI
=== RUN   TestAccAWSRoute53HealthCheck_disappears
=== PAUSE TestAccAWSRoute53HealthCheck_disappears
=== CONT  TestAccAWSRoute53HealthCheck_basic
=== CONT  TestAccAWSRoute53HealthCheck_Ipv6Config
=== CONT  TestAccAWSRoute53HealthCheck_disappears
=== CONT  TestAccAWSRoute53HealthCheck_IpConfig
=== CONT  TestAccAWSRoute53HealthCheck_withHealthCheckRegions
=== CONT  TestAccAWSRoute53HealthCheck_withChildHealthChecks
=== CONT  TestAccAWSRoute53HealthCheck_withSearchString
=== CONT  TestAccAWSRoute53HealthCheck_tags
=== CONT  TestAccAWSRoute53HealthCheck_withSNI
=== CONT  TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck
--- PASS: TestAccAWSRoute53HealthCheck_disappears (17.66s)
--- PASS: TestAccAWSRoute53HealthCheck_withHealthCheckRegions (22.79s)
--- PASS: TestAccAWSRoute53HealthCheck_IpConfig (23.30s)
--- PASS: TestAccAWSRoute53HealthCheck_withChildHealthChecks (23.91s)
--- PASS: TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck (28.14s)
--- PASS: TestAccAWSRoute53HealthCheck_Ipv6Config (36.35s)
--- PASS: TestAccAWSRoute53HealthCheck_basic (36.36s)
--- PASS: TestAccAWSRoute53HealthCheck_withSearchString (37.08s)
--- PASS: TestAccAWSRoute53HealthCheck_withSNI (53.14s)
--- PASS: TestAccAWSRoute53HealthCheck_tags (53.26s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	53.292s

@gdavison gdavison self-assigned this Mar 24, 2020
@gdavison gdavison removed the needs-triage Waiting for first response or review from a maintainer. label Mar 24, 2020
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion about the tests, but otherwise LGTM 🚀

--- PASS: TestAccAWSRoute53HealthCheck_disappears (9.15s)
--- PASS: TestAccAWSRoute53HealthCheck_IpConfig (18.18s)
--- PASS: TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck (18.94s)
--- PASS: TestAccAWSRoute53HealthCheck_basic (22.69s)
--- PASS: TestAccAWSRoute53HealthCheck_withChildHealthChecks (27.64s)
--- PASS: TestAccAWSRoute53HealthCheck_withSearchString (27.71s)
--- PASS: TestAccAWSRoute53HealthCheck_Ipv6Config (29.90s)
--- PASS: TestAccAWSRoute53HealthCheck_withSNI (31.01s)
--- PASS: TestAccAWSRoute53HealthCheck_withHealthCheckRegions (35.22s)
--- PASS: TestAccAWSRoute53HealthCheck_tags (35.68s)

@gdavison gdavison added this to the v2.55.0 milestone Mar 24, 2020
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a test failure in TestAccAWSRoute53HealthCheck_basic now.

Comment on lines 36 to 39
Check: resource.ComposeTestCheckFunc(
testAccCheckRoute53HealthCheckExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "failure_threshold", "5"),
resource.TestCheckResourceAttr(resourceName, "invert_healthcheck", "false"),
),
PlanOnly: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test changes values, so leaving it as a Check would be good.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, didnt mean to change that.

Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

--- PASS: TestAccAWSRoute53HealthCheck_disappears (8.41s)
--- PASS: TestAccAWSRoute53HealthCheck_IpConfig (13.69s)
--- PASS: TestAccAWSRoute53HealthCheck_withHealthCheckRegions (14.79s)
--- PASS: TestAccAWSRoute53HealthCheck_Ipv6Config (19.80s)
--- PASS: TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck (22.49s)
--- PASS: TestAccAWSRoute53HealthCheck_withChildHealthChecks (23.64s)
--- PASS: TestAccAWSRoute53HealthCheck_withSearchString (27.91s)
--- PASS: TestAccAWSRoute53HealthCheck_basic (32.58s)
--- PASS: TestAccAWSRoute53HealthCheck_tags (35.41s)
--- PASS: TestAccAWSRoute53HealthCheck_withSNI (37.42s)

@gdavison gdavison merged commit 8f88441 into hashicorp:master Mar 27, 2020
gdavison added a commit that referenced this pull request Mar 27, 2020
@ghost
Copy link

ghost commented Mar 27, 2020

This has been released in version 2.55.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!

@DrFaust92 DrFaust92 deleted the route53-health-check-ipv6 branch April 7, 2020 14:57
@ghost
Copy link

ghost commented Apr 27, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/route53 Issues and PRs that pertain to the route53 service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
3 participants