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

New resource for Route53 Traffic Policy and Traffic Policy Instance, datasource for Route53 Traffic Policy #23602

Merged
merged 42 commits into from
Mar 22, 2022

Conversation

coderGo93
Copy link
Contributor

@coderGo93 coderGo93 commented Mar 10, 2022

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 #11256.

Output from acceptance testing:

Resource Route 53 Traffic Policy

$ make testacc TESTARGS='-run=TestAccTrafficPolicy_' PKG=route53      [16:55:52]
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 20  -run=TestAccTrafficPolicy_ -timeout 180m
=== RUN   TestAccTrafficPolicy_basic
=== PAUSE TestAccTrafficPolicy_basic
=== RUN   TestAccTrafficPolicy_disappears
=== PAUSE TestAccTrafficPolicy_disappears
=== RUN   TestAccTrafficPolicy_complete
=== PAUSE TestAccTrafficPolicy_complete
=== CONT  TestAccTrafficPolicy_basic
=== CONT  TestAccTrafficPolicy_complete
=== CONT  TestAccTrafficPolicy_disappears
--- PASS: TestAccTrafficPolicy_disappears (14.30s)
--- PASS: TestAccTrafficPolicy_basic (19.19s)
--- PASS: TestAccTrafficPolicy_complete (30.70s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/route53    33.095s

Datasource Route 53 Traffic Policy Document

$ make testacc TESTARGS='-run=TestAccDataSourceTrafficPolicyDocument_' PKG=route53          [10:28:42]
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 20  -run=TestAccDataSourceTrafficPolicyDocument_ -timeout 180m
=== RUN   TestAccDataSourceTrafficPolicyDocument_basic
=== PAUSE TestAccDataSourceTrafficPolicyDocument_basic
=== RUN   TestAccDataSourceTrafficPolicyDocument_complete
=== PAUSE TestAccDataSourceTrafficPolicyDocument_complete
=== CONT  TestAccDataSourceTrafficPolicyDocument_basic
=== CONT  TestAccDataSourceTrafficPolicyDocument_complete
--- PASS: TestAccDataSourceTrafficPolicyDocument_basic (12.97s)
--- PASS: TestAccDataSourceTrafficPolicyDocument_complete (13.36s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/route53    16.056s

Resource Route 53 Traffic Policy Instance

$ make testacc TESTARGS='-run=TestAccTrafficPolicyInstance_' PKG=route53                    [17:04:52]
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 20  -run=TestAccTrafficPolicyInstance_ -timeout 180m
=== RUN   TestAccTrafficPolicyInstance_basic
=== PAUSE TestAccTrafficPolicyInstance_basic
=== RUN   TestAccTrafficPolicyInstance_disappears
=== PAUSE TestAccTrafficPolicyInstance_disappears
=== RUN   TestAccTrafficPolicyInstance_complete
=== PAUSE TestAccTrafficPolicyInstance_complete
=== CONT  TestAccTrafficPolicyInstance_basic
=== CONT  TestAccTrafficPolicyInstance_complete
=== CONT  TestAccTrafficPolicyInstance_disappears
--- PASS: TestAccTrafficPolicyInstance_disappears (116.59s)
--- PASS: TestAccTrafficPolicyInstance_basic (128.91s)
--- PASS: TestAccTrafficPolicyInstance_complete (211.61s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/route53    214.002s


@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. 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 10, 2022
@ewbankkit ewbankkit added new-data-source Introduces a new data source. new-resource Introduces a new resource. labels Mar 10, 2022
@ewbankkit
Copy link
Contributor

ewbankkit commented Mar 10, 2022

Supersedes #14331.
Supersedes #14352.

@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Mar 15, 2022
Acceptance test output:

% make testacc TESTS=TestAccTrafficPolicy_basic PKG=route53
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 20 -run='TestAccTrafficPolicy_basic'  -timeout 180m
=== RUN   TestAccTrafficPolicy_basic
=== PAUSE TestAccTrafficPolicy_basic
=== CONT  TestAccTrafficPolicy_basic
--- PASS: TestAccTrafficPolicy_basic (19.28s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/route53	26.600s
Acceptance test output:

% make testacc TESTS=TestAccTrafficPolicy_ PKG=route53
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 20 -run='TestAccTrafficPolicy_'  -timeout 180m
=== RUN   TestAccTrafficPolicy_basic
=== PAUSE TestAccTrafficPolicy_basic
=== RUN   TestAccTrafficPolicy_disappears
=== PAUSE TestAccTrafficPolicy_disappears
=== RUN   TestAccTrafficPolicy_update
=== PAUSE TestAccTrafficPolicy_update
=== CONT  TestAccTrafficPolicy_basic
=== CONT  TestAccTrafficPolicy_update
=== CONT  TestAccTrafficPolicy_disappears
--- PASS: TestAccTrafficPolicy_disappears (13.66s)
--- PASS: TestAccTrafficPolicy_basic (18.33s)
--- PASS: TestAccTrafficPolicy_update (29.13s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/route53	33.269s
Acceptance test output:

% make testacc TESTS=TestAccRoute53TrafficPolicyInstance_ PKG=route53
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 20 -run='TestAccRoute53TrafficPolicyInstance_'  -timeout 180m
=== RUN   TestAccRoute53TrafficPolicyInstance_basic
=== PAUSE TestAccRoute53TrafficPolicyInstance_basic
=== RUN   TestAccRoute53TrafficPolicyInstance_disappears
=== PAUSE TestAccRoute53TrafficPolicyInstance_disappears
=== RUN   TestAccRoute53TrafficPolicyInstance_update
=== PAUSE TestAccRoute53TrafficPolicyInstance_update
=== CONT  TestAccRoute53TrafficPolicyInstance_basic
=== CONT  TestAccRoute53TrafficPolicyInstance_update
=== CONT  TestAccRoute53TrafficPolicyInstance_disappears
--- PASS: TestAccRoute53TrafficPolicyInstance_basic (134.02s)
--- PASS: TestAccRoute53TrafficPolicyInstance_disappears (139.24s)
--- PASS: TestAccRoute53TrafficPolicyInstance_update (199.29s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/route53	206.030s
@github-actions github-actions bot added generators Relates to code generators. sweeper Pertains to changes to or issues with the sweeper. labels Mar 22, 2022
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

Commercial
% make testacc TESTS=TestAccRoute53TrafficPolicy PKG=route53 ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 3 -run='TestAccRoute53TrafficPolicy'  -timeout 180m
=== RUN   TestAccRoute53TrafficPolicyDocumentDataSource_basic
=== PAUSE TestAccRoute53TrafficPolicyDocumentDataSource_basic
=== RUN   TestAccRoute53TrafficPolicyDocumentDataSource_complete
=== PAUSE TestAccRoute53TrafficPolicyDocumentDataSource_complete
=== RUN   TestAccRoute53TrafficPolicyInstance_basic
=== PAUSE TestAccRoute53TrafficPolicyInstance_basic
=== RUN   TestAccRoute53TrafficPolicyInstance_disappears
=== PAUSE TestAccRoute53TrafficPolicyInstance_disappears
=== RUN   TestAccRoute53TrafficPolicyInstance_update
=== PAUSE TestAccRoute53TrafficPolicyInstance_update
=== RUN   TestAccRoute53TrafficPolicy_basic
=== PAUSE TestAccRoute53TrafficPolicy_basic
=== RUN   TestAccRoute53TrafficPolicy_disappears
=== PAUSE TestAccRoute53TrafficPolicy_disappears
=== RUN   TestAccRoute53TrafficPolicy_update
=== PAUSE TestAccRoute53TrafficPolicy_update
=== CONT  TestAccRoute53TrafficPolicyDocumentDataSource_basic
=== CONT  TestAccRoute53TrafficPolicyInstance_update
=== CONT  TestAccRoute53TrafficPolicy_disappears
--- PASS: TestAccRoute53TrafficPolicyDocumentDataSource_basic (13.92s)
=== CONT  TestAccRoute53TrafficPolicy_update
--- PASS: TestAccRoute53TrafficPolicy_disappears (15.53s)
=== CONT  TestAccRoute53TrafficPolicyInstance_basic
--- PASS: TestAccRoute53TrafficPolicy_update (30.47s)
=== CONT  TestAccRoute53TrafficPolicyInstance_disappears
--- PASS: TestAccRoute53TrafficPolicyInstance_basic (139.79s)
=== CONT  TestAccRoute53TrafficPolicy_basic
--- PASS: TestAccRoute53TrafficPolicy_basic (18.04s)
=== CONT  TestAccRoute53TrafficPolicyDocumentDataSource_complete
--- PASS: TestAccRoute53TrafficPolicyDocumentDataSource_complete (11.99s)
--- PASS: TestAccRoute53TrafficPolicyInstance_disappears (158.03s)
--- PASS: TestAccRoute53TrafficPolicyInstance_update (205.30s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/route53	210.736s
GovCloud
% make testacc TESTS=TestAccRoute53TrafficPolicy PKG=route53 ACCTEST_PARALLELISM=3           
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/route53/... -v -count 1 -parallel 3 -run='TestAccRoute53TrafficPolicy'  -timeout 180m
=== RUN   TestAccRoute53TrafficPolicyDocumentDataSource_basic
=== PAUSE TestAccRoute53TrafficPolicyDocumentDataSource_basic
=== RUN   TestAccRoute53TrafficPolicyDocumentDataSource_complete
=== PAUSE TestAccRoute53TrafficPolicyDocumentDataSource_complete
=== RUN   TestAccRoute53TrafficPolicyInstance_basic
=== PAUSE TestAccRoute53TrafficPolicyInstance_basic
=== RUN   TestAccRoute53TrafficPolicyInstance_disappears
=== PAUSE TestAccRoute53TrafficPolicyInstance_disappears
=== RUN   TestAccRoute53TrafficPolicyInstance_update
=== PAUSE TestAccRoute53TrafficPolicyInstance_update
=== RUN   TestAccRoute53TrafficPolicy_basic
=== PAUSE TestAccRoute53TrafficPolicy_basic
=== RUN   TestAccRoute53TrafficPolicy_disappears
=== PAUSE TestAccRoute53TrafficPolicy_disappears
=== RUN   TestAccRoute53TrafficPolicy_update
=== PAUSE TestAccRoute53TrafficPolicy_update
=== CONT  TestAccRoute53TrafficPolicyDocumentDataSource_basic
=== CONT  TestAccRoute53TrafficPolicyInstance_update
=== CONT  TestAccRoute53TrafficPolicy_disappears
=== CONT  TestAccRoute53TrafficPolicyInstance_update
    traffic_policy_instance_test.go:23: Route 53 Traffic Policies are not supported in aws-us-gov partition
--- SKIP: TestAccRoute53TrafficPolicyInstance_update (1.13s)
=== CONT  TestAccRoute53TrafficPolicy_update
=== CONT  TestAccRoute53TrafficPolicy_disappears
    traffic_policy_instance_test.go:23: Route 53 Traffic Policies are not supported in aws-us-gov partition
=== CONT  TestAccRoute53TrafficPolicy_update
    traffic_policy_instance_test.go:23: Route 53 Traffic Policies are not supported in aws-us-gov partition
--- SKIP: TestAccRoute53TrafficPolicy_update (0.00s)
=== CONT  TestAccRoute53TrafficPolicy_basic
--- SKIP: TestAccRoute53TrafficPolicy_disappears (1.13s)
=== CONT  TestAccRoute53TrafficPolicyInstance_basic
=== CONT  TestAccRoute53TrafficPolicy_basic
    traffic_policy_instance_test.go:23: Route 53 Traffic Policies are not supported in aws-us-gov partition
--- SKIP: TestAccRoute53TrafficPolicy_basic (0.00s)
=== CONT  TestAccRoute53TrafficPolicyInstance_disappears
    traffic_policy_instance_test.go:23: Route 53 Traffic Policies are not supported in aws-us-gov partition
--- SKIP: TestAccRoute53TrafficPolicyInstance_disappears (0.00s)
=== CONT  TestAccRoute53TrafficPolicyDocumentDataSource_complete
=== CONT  TestAccRoute53TrafficPolicyInstance_basic
    traffic_policy_instance_test.go:23: Route 53 Traffic Policies are not supported in aws-us-gov partition
--- SKIP: TestAccRoute53TrafficPolicyInstance_basic (0.00s)
--- PASS: TestAccRoute53TrafficPolicyDocumentDataSource_basic (10.86s)
--- PASS: TestAccRoute53TrafficPolicyDocumentDataSource_complete (10.04s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/route53	14.856s

@ewbankkit
Copy link
Contributor

@coderGo93 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit removed their assignment Mar 22, 2022
@ewbankkit ewbankkit merged commit 4083f34 into hashicorp:main Mar 22, 2022
@github-actions github-actions bot added this to the v4.7.0 milestone Mar 22, 2022
@github-actions
Copy link

This functionality has been released in v4.7.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!

@github-actions
Copy link

github-actions bot commented May 5, 2022

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-data-source Introduces a new data source. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/route53 Issues and PRs that pertain to the route53 service. size/XL Managed by automation to categorize the size of a PR. sweeper Pertains to changes to or issues with the sweeper. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: support Route53 Traffic Policies
3 participants