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

Consider resource provider when locating expected state in ImportState acceptance test case #522

Merged
merged 1 commit into from
Aug 26, 2020
Merged

Consider resource provider when locating expected state in ImportState acceptance test case #522

merged 1 commit into from
Aug 26, 2020

Conversation

ewbankkit
Copy link
Contributor

Closes #521.

The AWS provider has not quite upgraded to v2.0.0 of the SDK yet so I haven't been able to test the fix against my failing acceptance test case although the same fix against v1.14.0 succeeded.

I see no suitable unit tests to add a test case to.

@ewbankkit
Copy link
Contributor Author

Now that the AWS Provider is using v2.0.1 of the Plugin SDK I have verified that this change does fix the previously failing test case:

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

@paddycarver paddycarver merged commit e7e4baf into hashicorp:master Aug 26, 2020
paddycarver added a commit that referenced this pull request Aug 26, 2020
When trying to find the resource state when verifying imports, take the
resource's provider into consideration.

This is a backport of #522.
@ewbankkit ewbankkit deleted the b-import-test-with-multiple-providers branch August 26, 2020 10:09
paddycarver added a commit that referenced this pull request Sep 4, 2020
When trying to find the resource state when verifying imports, take the
resource's provider into consideration.

This is a backport of #522.
@ghost
Copy link

ghost commented Oct 13, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImportState acceptance test step fails with multiple providers
2 participants