-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Switch multiregion/account testing to SDK V2 compatible pattern #14312
Conversation
71e5a72
to
1915934
Compare
1915934
to
9cce93f
Compare
9cce93f
to
f43c99c
Compare
aws/provider_test.go
Outdated
// effectively singletons for the lifecycle of a resource.Test | ||
var providerNames = []string{"aws", "awseast", "awswest", "awsalternate", "awsus-east-1", "awsalternateaccountalternateregion", "awsalternateaccountsameregion", "awssameaccountalternateregion", "awsthird"} | ||
var factories = make(map[string]terraform.ResourceProviderFactory, len(providerNames)) | ||
var singletons = make(map[string]*schema.Provider, len(providerNames)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't seem to get used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right... i guess somewhere in the refactoring i lost the need for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 removing this 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excited to get this working and setup better. Please update the cross-account and cross-region acceptance testing documentation as well, then I think we can get this in.
- https://github.com/terraform-providers/terraform-provider-aws/blob/master/docs/contributing/running-and-writing-acceptance-tests.md#cross-account-acceptance-tests
- https://github.com/terraform-providers/terraform-provider-aws/blob/master/docs/contributing/running-and-writing-acceptance-tests.md#cross-region-acceptance-tests
aws/provider_test.go
Outdated
// effectively singletons for the lifecycle of a resource.Test | ||
var providerNames = []string{"aws", "awseast", "awswest", "awsalternate", "awsus-east-1", "awsalternateaccountalternateregion", "awsalternateaccountsameregion", "awssameaccountalternateregion", "awsthird"} | ||
var factories = make(map[string]terraform.ResourceProviderFactory, len(providerNames)) | ||
var singletons = make(map[string]*schema.Provider, len(providerNames)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 removing this 👍
f43c99c
to
1cacb60
Compare
baa57e1
to
b4079d4
Compare
Update docs
b4079d4
to
e66a7a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 We'll work on decreasing the various "providers" in future issues.
This has been released in version 3.0.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! |
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! |
Community Note
Relates OR Closes #0000
Release note for CHANGELOG:
Output from acceptance testing: