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

terraform import aws_dx_lag and aws_dx_connection #2992

Merged
merged 1 commit into from
Feb 15, 2018

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Jan 14, 2018

Fixes #2991

Acceptance tests at present:

make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsDxLag_import'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -run=TestAccAwsDxLag_import -timeout 120m
=== RUN   TestAccAwsDxLag_importBasic
--- FAIL: TestAccAwsDxLag_importBasic (27.22s)
	testing.go:513: Step 1 error: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected.
		
		(map[string]string) {
		}
		
		
		(map[string]string) (len=5) {
		 (string) (len=21) "connections_bandwidth": (string) (len=5) "1Gbps",
		 (string) (len=13) "force_destroy": (string) (len=4) "true",
		 (string) (len=8) "location": (string) (len=5) "EqSe2",
		 (string) (len=4) "name": (string) (len=15) "tf-dx-lag-9ke1v",
		 (string) (len=21) "number_of_connections": (string) (len=1) "2"
		}
		
FAIL
exit status 1
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	27.228s
GNUmakefile:18: recipe for target 'testacc' failed
make: *** [testacc] Error 1
make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsDxConnection_import'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -run=TestAccAwsDxConnection_import -timeout 120m
=== RUN   TestAccAwsDxConnection_importBasic
--- FAIL: TestAccAwsDxConnection_importBasic (26.03s)
	testing.go:513: Step 1 error: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected.
		
		(map[string]string) {
		}
		
		
		(map[string]string) (len=3) {
		 (string) (len=9) "bandwidth": (string) (len=5) "1Gbps",
		 (string) (len=8) "location": (string) (len=5) "EqSe2",
		 (string) (len=4) "name": (string) (len=11) "tf-dx-en2vq"
		}
		
FAIL
exit status 1
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	26.037s
GNUmakefile:18: recipe for target 'testacc' failed
make: *** [testacc] Error 1

I do NOT expect these to pass until #2989 is merged.

@ewbankkit
Copy link
Contributor Author

After merging with #2989:

make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsDxLag_import'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -run=TestAccAwsDxLag_import -timeout 120m
=== RUN   TestAccAwsDxLag_importBasic
--- PASS: TestAccAwsDxLag_importBasic (29.50s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	29.506s
make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsDxConnection_import'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -run=TestAccAwsDxConnection_import -timeout 120m
=== RUN   TestAccAwsDxConnection_importBasic
--- PASS: TestAccAwsDxConnection_importBasic (37.61s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	37.617s

@Ninir Ninir added the enhancement Requests to existing resources that expand the functionality or scope. label Jan 15, 2018
@radeksimko radeksimko added the service/directconnect Issues and PRs that pertain to the directconnect service. label Jan 16, 2018
@radeksimko
Copy link
Member

@ewbankkit do you mind rebasing your branch? Then I'm happy to review this. 😉

@radeksimko radeksimko added the waiting-response Maintainers are waiting on response from community or contributor. label Feb 13, 2018
@ghost ghost added the size/M Managed by automation to categorize the size of a PR. label Feb 13, 2018
@ewbankkit
Copy link
Contributor Author

Rebased.
Re-ran acceptance tests:

make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsDxLag_import'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -run=TestAccAwsDxLag_import -timeout 120m
=== RUN   TestAccAwsDxLag_importBasic
--- PASS: TestAccAwsDxLag_importBasic (34.26s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	44.578s
make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsDxConnection_import'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -run=TestAccAwsDxConnection_import -timeout 120m
=== RUN   TestAccAwsDxConnection_importBasic
--- PASS: TestAccAwsDxConnection_importBasic (31.31s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	31.903s

@radeksimko radeksimko removed the waiting-response Maintainers are waiting on response from community or contributor. label Feb 14, 2018
@radeksimko radeksimko self-requested a review February 15, 2018 06:17
@radeksimko radeksimko self-assigned this Feb 15, 2018
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. 👍

@radeksimko radeksimko merged commit 99241b8 into hashicorp:master Feb 15, 2018
@radeksimko radeksimko added this to the v1.10.0 milestone Feb 15, 2018
@ewbankkit ewbankkit deleted the issue-2991 branch February 15, 2018 14:30
@bflad
Copy link
Contributor

bflad commented Feb 27, 2018

This has been released in version 1.10.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 7, 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 Apr 7, 2020
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/directconnect Issues and PRs that pertain to the directconnect service. size/M Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to import Direct Connection resources
4 participants