-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Import test refactor for elasticache resources #10160
Conversation
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 should be good to go if we remove all the new AWS_DEFAULT_REGION
handing (let's treat that as a separate project) 👍
}, | ||
}) | ||
} | ||
|
||
func TestAccAWSElasticacheReplicationGroup_Uppercase(t *testing.T) { | ||
oldvar := os.Getenv("AWS_DEFAULT_REGION") |
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.
Let's omit these AWS_DEFAULT_REGION
handling changes for now here and below until we have a full plan for fixing the hardcoded EC2-Classic/us-east-1 testing 👍 They should all pass individually locally (or concurrently in TeamCity) and I think we should avoid introducing this style into existing tests if avoidable.
Hello, and thank you for your contribution! This project recently migrated to the standalone Terraform Plugin SDK. While the migration helps speed up future feature requests and bug fixes to the Terraform AWS Provider's interface with Terraform, it has the unfortunate consequence of requiring minor changes to pull requests created using the old SDK. This pull request appears to include the Go import path To resolve this situation without losing any existing work, you may be able to Git rebase your branch against the current master branch (example below); replacing any remaining old import paths with the newer ones. $ git fetch --all
$ git rebase origin/master Another option is to create a new branch from the current master with the same code changes (replacing the import paths), submit a new pull request, and close this existing pull request. We apologize for this inconvenience and appreciate your effort. Thank you for contributing and helping make the Terraform AWS Provider better for everyone. |
95aa171
to
3773ed5
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 with two optional nits
--- PASS: TestAccAWSElasticacheReplicationGroup_clusteringAndCacheNodesCausesError (15.98s)
--- PASS: TestAccAWSElasticacheSubnetGroup_basic (18.13s)
--- PASS: TestAccAWSElasticacheSecurityGroup_basic (22.27s)
--- PASS: TestAccAWSElasticacheSubnetGroup_update (16.73s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableAtRestEncryption (704.51s)
--- PASS: TestAccAWSElasticacheReplicationGroup_basic (793.07s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateMaintenanceWindow (844.62s)
--- PASS: TestAccAWSElasticacheReplicationGroup_redisClusterInVpc2 (886.63s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateParameterGroup (936.73s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateDescription (950.16s)
--- PASS: TestAccAWSElasticacheReplicationGroup_Uppercase (964.36s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableSnapshotting (983.89s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_Basic (1108.91s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableAuthTokenTransitEncryption (1340.12s)
--- PASS: TestAccAWSElasticacheReplicationGroup_vpc (1482.62s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateNodeSize (1877.17s)
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverDisabled (2040.78s)
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters (2369.20s)
--- PASS: TestAccAWSElasticacheReplicationGroup_multiAzInVpc (2431.31s)
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverEnabled (2492.96s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_NumNodeGroups (3306.50s)
@@ -98,24 +75,32 @@ func TestAccAWSElasticacheReplicationGroup_basic(t *testing.T) { | |||
{ | |||
Config: testAccAWSElasticacheReplicationGroupConfig(rName), | |||
Check: resource.ComposeTestCheckFunc( | |||
testAccCheckAWSElasticacheReplicationGroupExists("aws_elasticache_replication_group.bar", &rg), | |||
testAccCheckAWSElasticacheReplicationGroupExists("aws_elasticache_replication_group.test", &rg), |
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.
Nit: I do not want to hold up this PR over it, but these should be using the new resourceName
variable
maintenance_window = "thu:03:00-thu:04:00" | ||
} | ||
`, acctest.RandInt(), acctest.RandInt(), acctest.RandString(10)) | ||
# InvalidParameterValue: Specified node type cache.m3.medium is not available in AZ us-east-1b. |
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.
Nit: Looks like the formatting of this configuration got switched from 2 spaces to tabs
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 #8944
Release note for CHANGELOG:
Output from acceptance testing: