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

d/aws_route: Refactor acceptance tests in preparation for future fixes/enhancements #14018

Merged

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Jul 1, 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

Refactoring aws_route data source acceptance tests in preparation for future fixes/enhancements.

Output from acceptance testing:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 2 -run=TestAccAWSRouteDataSource_ -timeout 120m
=== RUN   TestAccAWSRouteDataSource_basic
=== PAUSE TestAccAWSRouteDataSource_basic
=== RUN   TestAccAWSRouteDataSource_TransitGatewayID
=== PAUSE TestAccAWSRouteDataSource_TransitGatewayID
=== RUN   TestAccAWSRouteDataSource_IPv6DestinationCidr
=== PAUSE TestAccAWSRouteDataSource_IPv6DestinationCidr
=== CONT  TestAccAWSRouteDataSource_TransitGatewayID
=== CONT  TestAccAWSRouteDataSource_basic
--- PASS: TestAccAWSRouteDataSource_basic (131.62s)
=== CONT  TestAccAWSRouteDataSource_IPv6DestinationCidr
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (54.91s)
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (338.63s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	338.691s

@ewbankkit ewbankkit requested a review from a team July 1, 2020 17:57
@ghost ghost added size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jul 1, 2020
@ewbankkit ewbankkit force-pushed the t-additional-aws_route-data-source-tests branch from 2c28dca to 47ca6e7 Compare August 8, 2020 22:15
@ewbankkit
Copy link
Contributor Author

Rebased to fix merge conflicts.
Re-ran acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 2 -run=TestAccAWSRouteDataSource_ -timeout 120m
=== RUN   TestAccAWSRouteDataSource_basic
=== PAUSE TestAccAWSRouteDataSource_basic
=== RUN   TestAccAWSRouteDataSource_TransitGatewayID
=== PAUSE TestAccAWSRouteDataSource_TransitGatewayID
=== RUN   TestAccAWSRouteDataSource_IPv6DestinationCidr
=== PAUSE TestAccAWSRouteDataSource_IPv6DestinationCidr
=== CONT  TestAccAWSRouteDataSource_basic
=== CONT  TestAccAWSRouteDataSource_IPv6DestinationCidr
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (31.03s)
=== CONT  TestAccAWSRouteDataSource_TransitGatewayID
--- PASS: TestAccAWSRouteDataSource_basic (137.72s)
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (336.63s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	367.721s

@ewbankkit ewbankkit force-pushed the t-additional-aws_route-data-source-tests branch from 47ca6e7 to ed22f5c Compare August 22, 2020 23:06
@ewbankkit
Copy link
Contributor Author

Rebased and re-ran acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_' ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 2 -run=TestAccAWSRouteDataSource_ -timeout 120m
=== RUN   TestAccAWSRouteDataSource_basic
=== PAUSE TestAccAWSRouteDataSource_basic
=== RUN   TestAccAWSRouteDataSource_TransitGatewayID
=== PAUSE TestAccAWSRouteDataSource_TransitGatewayID
=== RUN   TestAccAWSRouteDataSource_IPv6DestinationCidr
=== PAUSE TestAccAWSRouteDataSource_IPv6DestinationCidr
=== CONT  TestAccAWSRouteDataSource_TransitGatewayID
=== CONT  TestAccAWSRouteDataSource_IPv6DestinationCidr
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (27.48s)
=== CONT  TestAccAWSRouteDataSource_basic
--- PASS: TestAccAWSRouteDataSource_basic (68.23s)
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (352.38s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	352.426s

@ewbankkit

This comment has been minimized.

@ewbankkit ewbankkit force-pushed the t-additional-aws_route-data-source-tests branch from ed22f5c to b7589c3 Compare September 4, 2020 17:24
@ewbankkit
Copy link
Contributor Author

Rebased and fixed merge conflicts.
Re-ran acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_' ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 2 -run=TestAccAWSRouteDataSource_ -timeout 120m
=== RUN   TestAccAWSRouteDataSource_basic
=== PAUSE TestAccAWSRouteDataSource_basic
=== RUN   TestAccAWSRouteDataSource_TransitGatewayID
=== PAUSE TestAccAWSRouteDataSource_TransitGatewayID
=== RUN   TestAccAWSRouteDataSource_IPv6DestinationCidr
=== PAUSE TestAccAWSRouteDataSource_IPv6DestinationCidr
=== RUN   TestAccAWSRouteDataSource_LocalGatewayID
=== PAUSE TestAccAWSRouteDataSource_LocalGatewayID
=== CONT  TestAccAWSRouteDataSource_basic
=== CONT  TestAccAWSRouteDataSource_LocalGatewayID
    data_source_aws_outposts_outposts_test.go:66: skipping since no Outposts Outpost found
=== CONT  TestAccAWSRouteDataSource_IPv6DestinationCidr
=== CONT  TestAccAWSRouteDataSource_LocalGatewayID
--- SKIP: TestAccAWSRouteDataSource_LocalGatewayID (2.23s)
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (27.32s)
=== CONT  TestAccAWSRouteDataSource_TransitGatewayID
--- PASS: TestAccAWSRouteDataSource_basic (119.98s)
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (276.96s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	306.551s

@ewbankkit ewbankkit force-pushed the t-additional-aws_route-data-source-tests branch from b7589c3 to 490bab8 Compare September 22, 2020 21:45
@ewbankkit
Copy link
Contributor Author

Rebased and fixed merge conflicts.
Re-ran acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_' ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 2 -run=TestAccAWSRouteDataSource_ -timeout 120m
=== RUN   TestAccAWSRouteDataSource_basic
=== PAUSE TestAccAWSRouteDataSource_basic
=== RUN   TestAccAWSRouteDataSource_TransitGatewayID
=== PAUSE TestAccAWSRouteDataSource_TransitGatewayID
=== RUN   TestAccAWSRouteDataSource_IPv6DestinationCidr
=== PAUSE TestAccAWSRouteDataSource_IPv6DestinationCidr
=== RUN   TestAccAWSRouteDataSource_LocalGatewayID
=== PAUSE TestAccAWSRouteDataSource_LocalGatewayID
=== CONT  TestAccAWSRouteDataSource_basic
=== CONT  TestAccAWSRouteDataSource_LocalGatewayID
    data_source_aws_outposts_outposts_test.go:66: skipping since no Outposts found
--- SKIP: TestAccAWSRouteDataSource_LocalGatewayID (1.76s)
=== CONT  TestAccAWSRouteDataSource_IPv6DestinationCidr
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (27.25s)
=== CONT  TestAccAWSRouteDataSource_TransitGatewayID
--- PASS: TestAccAWSRouteDataSource_basic (101.36s)
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (372.35s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	401.404s

@ewbankkit ewbankkit force-pushed the t-additional-aws_route-data-source-tests branch from 46b6540 to 3df991a Compare September 23, 2020 13:54
@ewbankkit ewbankkit force-pushed the t-additional-aws_route-data-source-tests branch from 3df991a to 98733a3 Compare October 5, 2020 18:05
@ewbankkit
Copy link
Contributor Author

Rebased and fixed merge conflicts.
Re-ran acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_' ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 2 -run=TestAccAWSRouteDataSource_ -timeout 120m
=== RUN   TestAccAWSRouteDataSource_basic
=== PAUSE TestAccAWSRouteDataSource_basic
=== RUN   TestAccAWSRouteDataSource_TransitGatewayID
=== PAUSE TestAccAWSRouteDataSource_TransitGatewayID
=== RUN   TestAccAWSRouteDataSource_IPv6DestinationCidr
=== PAUSE TestAccAWSRouteDataSource_IPv6DestinationCidr
=== RUN   TestAccAWSRouteDataSource_LocalGatewayID
=== PAUSE TestAccAWSRouteDataSource_LocalGatewayID
=== CONT  TestAccAWSRouteDataSource_basic
=== CONT  TestAccAWSRouteDataSource_LocalGatewayID
    data_source_aws_outposts_outposts_test.go:66: skipping since no Outposts found
--- SKIP: TestAccAWSRouteDataSource_LocalGatewayID (1.87s)
=== CONT  TestAccAWSRouteDataSource_IPv6DestinationCidr
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (27.59s)
=== CONT  TestAccAWSRouteDataSource_TransitGatewayID
--- PASS: TestAccAWSRouteDataSource_basic (69.69s)
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (373.00s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	402.510s

@ewbankkit ewbankkit added the technical-debt Addresses areas of the codebase that need refactoring or redesign. label Jan 4, 2021
@ewbankkit ewbankkit force-pushed the t-additional-aws_route-data-source-tests branch from 98733a3 to c648c9d Compare January 4, 2021 20:55
@ewbankkit ewbankkit requested a review from a team as a code owner January 4, 2021 20:55
@ewbankkit ewbankkit force-pushed the t-additional-aws_route-data-source-tests branch from c648c9d to fbedf96 Compare January 5, 2021 22:55
Base automatically changed from master to main January 23, 2021 00:58
@ewbankkit ewbankkit added the service/ec2 Issues and PRs that pertain to the ec2 service. label Feb 10, 2021
@YakDriver YakDriver self-assigned this Feb 11, 2021
Acceptance test output:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSRouteDataSource_basic -timeout 120m
=== RUN   TestAccAWSRouteDataSource_basic
=== PAUSE TestAccAWSRouteDataSource_basic
=== CONT  TestAccAWSRouteDataSource_basic
--- PASS: TestAccAWSRouteDataSource_basic (141.12s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	141.166s

d/aws_route_table: Rework 'TestAccAWSRouteDataSource_TransitGatewayID'.

Acceptance test output:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_TransitGatewayID'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSRouteDataSource_TransitGatewayID -timeout 120m
=== RUN   TestAccAWSRouteDataSource_TransitGatewayID
=== PAUSE TestAccAWSRouteDataSource_TransitGatewayID
=== CONT  TestAccAWSRouteDataSource_TransitGatewayID
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (296.93s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	296.976s

d/aws_route_table: Add 'TestAccAWSRouteDataSource_IPv6DestinationCidr'.

Acceptance test output:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSRouteDataSource_IPv6DestinationCidr'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSRouteDataSource_IPv6DestinationCidr -timeout 120m
=== RUN   TestAccAWSRouteDataSource_IPv6DestinationCidr
=== PAUSE TestAccAWSRouteDataSource_IPv6DestinationCidr
=== CONT  TestAccAWSRouteDataSource_IPv6DestinationCidr
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (43.81s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	43.869s

Fix Acceptance Test Linting / terrafmt error.
@YakDriver YakDriver force-pushed the t-additional-aws_route-data-source-tests branch from fbedf96 to d590aea Compare February 11, 2021 18:33
@YakDriver YakDriver added this to the v3.28.0 milestone Feb 11, 2021
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

Looks great 🎉

GovCloud:

--- SKIP: TestAccAWSRouteDataSource_LocalGatewayID (1.84s)
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (27.36s)
--- PASS: TestAccAWSRouteDataSource_basic (131.31s)
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (352.35s)

us-west-2:

--- SKIP: TestAccAWSRouteDataSource_LocalGatewayID (1.35s)
--- PASS: TestAccAWSRouteDataSource_IPv6DestinationCidr (24.13s)
--- PASS: TestAccAWSRouteDataSource_TransitGatewayID (296.29s)
--- PASS: TestAccAWSRouteDataSource_basic (312.04s)

@YakDriver YakDriver merged commit d6fc9c7 into hashicorp:main Feb 11, 2021
@ewbankkit ewbankkit deleted the t-additional-aws_route-data-source-tests branch February 11, 2021 19:01
@ghost
Copy link

ghost commented Feb 12, 2021

This has been released in version 3.28.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 Mar 14, 2021

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 as resolved and limited conversation to collaborators Mar 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service. size/L Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign. 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.

2 participants