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_appmesh_route: Handle zero max_retries #23035

Merged

Conversation

hatstand
Copy link
Contributor

@hatstand hatstand commented Feb 8, 2022

Similarly to #13479 setting max_retries to 0 in the route retry policy fails with:

- missing required field, UpdateRouteInput.Spec.GrpcRoute.RetryPolicy.MaxRetries

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

Relates #13479

Output from acceptance testing:

$ make testacc TESTS=TestAccAppMesh_serial/Route PKG=appmesh

--- PASS: TestAccAppMesh_serial/Route (1027.26s)
        --- PASS: TestAccAppMesh_serial/Route/tcpRouteTimeout (69.14s)
        --- PASS: TestAccAppMesh_serial/Route/tags (96.04s)
        --- PASS: TestAccAppMesh_serial/Route/grpcRoute (121.94s)
        --- PASS: TestAccAppMesh_serial/Route/grpcRouteEmptyMatch (41.44s)
        --- PASS: TestAccAppMesh_serial/Route/httpHeader (69.17s)
        --- PASS: TestAccAppMesh_serial/Route/httpRoute (95.86s)
        --- PASS: TestAccAppMesh_serial/Route/routePriority (68.72s)
        --- PASS: TestAccAppMesh_serial/Route/tcpRoute (95.01s)
        --- PASS: TestAccAppMesh_serial/Route/grpcRouteTimeout (67.99s)
        --- PASS: TestAccAppMesh_serial/Route/http2Route (68.04s)
        --- PASS: TestAccAppMesh_serial/Route/http2RouteTimeout (70.74s)
        --- PASS: TestAccAppMesh_serial/Route/httpRetryPolicy (95.05s)
        --- PASS: TestAccAppMesh_serial/Route/httpRouteTimeout (68.11s)

@github-actions github-actions bot added size/L Managed by automation to categorize the size of a PR. service/appmesh Issues and PRs that pertain to the appmesh service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. labels Feb 8, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @hatstand 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Feb 14, 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 🚀.

% make testacc TESTS=TestAccAppMesh_serial/Route PKG=appmesh
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/appmesh/... -v -count 1 -parallel 20 -run='TestAccAppMesh_serial/Route'  -timeout 180m
=== RUN   TestAccAppMesh_serial
=== RUN   TestAccAppMesh_serial/Route
=== RUN   TestAccAppMesh_serial/Route/httpRetryPolicy
=== RUN   TestAccAppMesh_serial/Route/httpRoute
=== RUN   TestAccAppMesh_serial/Route/tcpRoute
=== RUN   TestAccAppMesh_serial/Route/tags
=== RUN   TestAccAppMesh_serial/Route/grpcRouteEmptyMatch
=== RUN   TestAccAppMesh_serial/Route/grpcRouteTimeout
=== RUN   TestAccAppMesh_serial/Route/http2RouteTimeout
=== RUN   TestAccAppMesh_serial/Route/httpHeader
=== RUN   TestAccAppMesh_serial/Route/tcpRouteTimeout
=== RUN   TestAccAppMesh_serial/Route/grpcRoute
=== RUN   TestAccAppMesh_serial/Route/http2Route
=== RUN   TestAccAppMesh_serial/Route/httpRouteTimeout
=== RUN   TestAccAppMesh_serial/Route/routePriority
=== RUN   TestAccAppMesh_serial/VirtualRouter
=== RUN   TestAccAppMesh_serial/VirtualRouter/basic
=== RUN   TestAccAppMesh_serial/VirtualRouter/tags
=== RUN   TestAccAppMesh_serial/GatewayRoute
=== RUN   TestAccAppMesh_serial/GatewayRoute/basic
=== RUN   TestAccAppMesh_serial/GatewayRoute/disappears
=== RUN   TestAccAppMesh_serial/GatewayRoute/grpcRoute
=== RUN   TestAccAppMesh_serial/GatewayRoute/httpRoute
=== RUN   TestAccAppMesh_serial/GatewayRoute/http2Route
=== RUN   TestAccAppMesh_serial/GatewayRoute/tags
--- PASS: TestAccAppMesh_serial (1184.27s)
    --- PASS: TestAccAppMesh_serial/Route (791.18s)
        --- PASS: TestAccAppMesh_serial/Route/httpRetryPolicy (70.36s)
        --- PASS: TestAccAppMesh_serial/Route/httpRoute (74.92s)
        --- PASS: TestAccAppMesh_serial/Route/tcpRoute (85.37s)
        --- PASS: TestAccAppMesh_serial/Route/tags (73.40s)
        --- PASS: TestAccAppMesh_serial/Route/grpcRouteEmptyMatch (28.76s)
        --- PASS: TestAccAppMesh_serial/Route/grpcRouteTimeout (51.98s)
        --- PASS: TestAccAppMesh_serial/Route/http2RouteTimeout (51.33s)
        --- PASS: TestAccAppMesh_serial/Route/httpHeader (50.78s)
        --- PASS: TestAccAppMesh_serial/Route/tcpRouteTimeout (50.75s)
        --- PASS: TestAccAppMesh_serial/Route/grpcRoute (92.87s)
        --- PASS: TestAccAppMesh_serial/Route/http2Route (52.74s)
        --- PASS: TestAccAppMesh_serial/Route/httpRouteTimeout (53.57s)
        --- PASS: TestAccAppMesh_serial/Route/routePriority (54.35s)
    --- PASS: TestAccAppMesh_serial/VirtualRouter (111.38s)
        --- PASS: TestAccAppMesh_serial/VirtualRouter/basic (45.57s)
        --- PASS: TestAccAppMesh_serial/VirtualRouter/tags (65.81s)
    --- PASS: TestAccAppMesh_serial/GatewayRoute (281.71s)
        --- PASS: TestAccAppMesh_serial/GatewayRoute/basic (30.29s)
        --- PASS: TestAccAppMesh_serial/GatewayRoute/disappears (24.63s)
        --- PASS: TestAccAppMesh_serial/GatewayRoute/grpcRoute (53.50s)
        --- PASS: TestAccAppMesh_serial/GatewayRoute/httpRoute (52.49s)
        --- PASS: TestAccAppMesh_serial/GatewayRoute/http2Route (50.22s)
        --- PASS: TestAccAppMesh_serial/GatewayRoute/tags (70.58s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/appmesh	1192.450s

@ewbankkit
Copy link
Contributor

@hatstand Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit c917214 into hashicorp:main Feb 14, 2022
@github-actions github-actions bot added this to the v4.1.0 milestone Feb 14, 2022
@github-actions
Copy link

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

@hatstand hatstand deleted the fix-app_mesh_route-max_retries-zero branch February 23, 2022 11:18
@github-actions
Copy link

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 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/appmesh Issues and PRs that pertain to the appmesh service. size/L 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
Development

Successfully merging this pull request may close these issues.

None yet

2 participants