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

add validation for route53 healthcheck request_interval #9158

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

nao23
Copy link

@nao23 nao23 commented Jun 27, 2019

This patch proposes:

  • add validation for request_interval of route53 healthcheck resource

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSRoute53HealthCheck_basic'

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAWSRoute53HealthCheck_basic -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAWSRoute53HealthCheck_basic
=== PAUSE TestAccAWSRoute53HealthCheck_basic
=== CONT  TestAccAWSRoute53HealthCheck_basic
--- PASS: TestAccAWSRoute53HealthCheck_basic (57.26s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	57.319s

@nao23 nao23 requested a review from a team June 27, 2019 06:46
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/route53 Issues and PRs that pertain to the route53 service. labels Jun 27, 2019
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 27, 2019
@bflad bflad added this to the v2.17.0 milestone Jun 27, 2019
@bflad bflad self-assigned this Jun 27, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks good, @nao23, thanks! 🚀 The Route 53 API documentation here is a little ambiguous with the acceptable values here:

Valid Range: Minimum value of 10. Maximum value of 30.

But with actually trying a value between the minimum and maximum, an error is returned referencing these two values so validation.IntInSlice() is in fact correct here. 👍

--- FAIL: TestAccAWSRoute53HealthCheck_basic (5.07s)
    testing.go:568: Step 0 error: errors during apply:

        Error: InvalidInput: Invalid XML ; cvc-enumeration-valid: Value '29' is not facet-valid with respect to enumeration '[10, 30]'. It must be a value from the enumeration.

Output from acceptance testing:

--- PASS: TestAccAWSRoute53HealthCheck_withHealthCheckRegions (12.97s)
--- PASS: TestAccAWSRoute53HealthCheck_CloudWatchAlarmCheck (13.35s)
--- PASS: TestAccAWSRoute53HealthCheck_IpConfig (14.97s)
--- PASS: TestAccAWSRoute53HealthCheck_basic (19.24s)
--- PASS: TestAccAWSRoute53HealthCheck_withSearchString (21.05s)
--- PASS: TestAccAWSRoute53HealthCheck_withSNI (23.85s)
--- PASS: TestAccAWSRoute53HealthCheck_withChildHealthChecks (25.64s)

@bflad bflad merged commit dbd9661 into hashicorp:master Jun 27, 2019
bflad added a commit that referenced this pull request Jun 27, 2019
@bflad
Copy link
Contributor

bflad commented Jun 28, 2019

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

@ghost
Copy link

ghost commented Nov 3, 2019

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 Nov 3, 2019
@nao23 nao23 deleted the validation-for-route53-healthcheck branch September 25, 2023 07:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/route53 Issues and PRs that pertain to the route53 service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants