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

support for importing aws_default_route_table resource #13030

Merged
merged 6 commits into from
Apr 29, 2020

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Apr 26, 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 #12912

Release note for CHANGELOG:

add support for importing aws_default_route_table resource and set tags on creation

Output from acceptance testing:

--- PASS: TestAccAWSDefaultRouteTable_disappears_Vpc (20.22s)
--- PASS: TestAccAWSDefaultRouteTable_basic (40.65s)
--- PASS: TestAccAWSDefaultRouteTable_vpc_endpoint (50.58s)
--- PASS: TestAccAWSDefaultRouteTable_swap (70.84s)
--- PASS: TestAccAWSDefaultRouteTable_Route (86.11s)
--- PASS: TestAccAWSDefaultRouteTable_Route_TransitGatewayID (296.34s)

@anGie44 anGie44 requested a review from a team April 26, 2020 22:46
@ghost ghost added size/M 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. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 26, 2020
@anGie44 anGie44 changed the title support for importing aws_default_route_table resource and tag creation support for importing aws_default_route_table resource and set tags on CREATE Apr 26, 2020
@DrFaust92
Copy link
Collaborator

i think this is partially similar to #12858 (from tags perspective)

@ewbankkit
Copy link
Contributor

Verified acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSDefaultRouteTable_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSDefaultRouteTable_ -timeout 120m
=== RUN   TestAccAWSDefaultRouteTable_basic
=== PAUSE TestAccAWSDefaultRouteTable_basic
=== RUN   TestAccAWSDefaultRouteTable_disappears_Vpc
=== PAUSE TestAccAWSDefaultRouteTable_disappears_Vpc
=== RUN   TestAccAWSDefaultRouteTable_Route
=== PAUSE TestAccAWSDefaultRouteTable_Route
=== RUN   TestAccAWSDefaultRouteTable_swap
=== PAUSE TestAccAWSDefaultRouteTable_swap
=== RUN   TestAccAWSDefaultRouteTable_Route_TransitGatewayID
=== PAUSE TestAccAWSDefaultRouteTable_Route_TransitGatewayID
=== RUN   TestAccAWSDefaultRouteTable_vpc_endpoint
=== PAUSE TestAccAWSDefaultRouteTable_vpc_endpoint
=== CONT  TestAccAWSDefaultRouteTable_disappears_Vpc
=== CONT  TestAccAWSDefaultRouteTable_vpc_endpoint
=== CONT  TestAccAWSDefaultRouteTable_Route_TransitGatewayID
=== CONT  TestAccAWSDefaultRouteTable_swap
=== CONT  TestAccAWSDefaultRouteTable_Route
=== CONT  TestAccAWSDefaultRouteTable_basic
--- PASS: TestAccAWSDefaultRouteTable_disappears_Vpc (25.15s)
--- PASS: TestAccAWSDefaultRouteTable_basic (52.36s)
--- PASS: TestAccAWSDefaultRouteTable_vpc_endpoint (56.68s)
--- PASS: TestAccAWSDefaultRouteTable_swap (80.88s)
--- PASS: TestAccAWSDefaultRouteTable_Route (99.38s)
--- PASS: TestAccAWSDefaultRouteTable_Route_TransitGatewayID (315.23s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	315.272s

@anGie44
Copy link
Contributor Author

anGie44 commented Apr 27, 2020

@DrFaust92 thanks for catching that! I'll remove the change from here then and note expected test failures

@anGie44 anGie44 changed the title support for importing aws_default_route_table resource and set tags on CREATE support for importing aws_default_route_table resource Apr 27, 2020
@anGie44
Copy link
Contributor Author

anGie44 commented Apr 27, 2020

Updated acceptance test output:

--- FAIL: TestAccAWSDefaultRouteTable_Route (41.33s)
--- FAIL: TestAccAWSDefaultRouteTable_vpc_endpoint (41.80s)
--- FAIL: TestAccAWSDefaultRouteTable_swap (43.09s)
--- PASS: TestAccAWSDefaultRouteTable_disappears_Vpc (20.78s)
--- PASS: TestAccAWSDefaultRouteTable_basic (44.67s)
--- PASS: TestAccAWSDefaultRouteTable_Route_TransitGatewayID (336.92s)

Note: failures to be fixed with #12858

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 28, 2020
@anGie44
Copy link
Contributor Author

anGie44 commented Apr 28, 2020

After merging with master, acceptance test output:

PASS:  TestAccAWSDefaultRouteTable_disappears_Vpc
PASS:  TestAccAWSDefaultRouteTable_basic
PASS:  TestAccAWSDefaultRouteTable_tags
PASS:  TestAccAWSDefaultRouteTable_vpc_endpoint
PASS:  TestAccAWSDefaultRouteTable_swap
PASS:  TestAccAWSDefaultRouteTable_Route
PASS:  TestAccAWSDefaultRouteTable_Route_TransitGatewayID

@anGie44 anGie44 requested a review from bflad April 28, 2020 21:08
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! 🚀

Output from acceptance testing:

--- PASS: TestAccAWSDefaultRouteTable_disappears_Vpc (8.23s)
--- PASS: TestAccAWSDefaultRouteTable_basic (16.07s)
--- PASS: TestAccAWSDefaultRouteTable_tags (22.78s)
--- PASS: TestAccAWSDefaultRouteTable_swap (29.41s)
--- PASS: TestAccAWSDefaultRouteTable_vpc_endpoint (30.03s)
--- PASS: TestAccAWSDefaultRouteTable_Route (34.26s)
--- PASS: TestAccAWSDefaultRouteTable_Route_TransitGatewayID (328.04s)

@anGie44 anGie44 merged commit 5104174 into master Apr 29, 2020
@anGie44 anGie44 deleted the ap_default_route_table_import_support branch April 29, 2020 14:43
anGie44 added a commit that referenced this pull request Apr 29, 2020
@anGie44 anGie44 added this to the v2.60.0 milestone Apr 29, 2020
@ghost
Copy link

ghost commented May 1, 2020

This has been released in version 2.60.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 May 29, 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 May 29, 2020
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. enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 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
Development

Successfully merging this pull request may close these issues.

Support aws_default_route_table Resource Import
4 participants