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

service/elasticache: use waiter and finder function pattern #17177

Merged
merged 10 commits into from
Jan 21, 2021

Conversation

gdavison
Copy link
Contributor

@gdavison gdavison commented Jan 19, 2021

Refactors aws_elasticache_cluster, aws_elasticache_replication_group, data.aws_elasticache_cluster, and data.aws_elasticache_replication_group to use waiter and finder functions.

Relates #14959

Release note for CHANGELOG:

NONE

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSElasticacheCluster_\|TestAccAWSElasticacheReplicationGroup_\|TestAccAWSDataElasticacheCluster_\|TestAccDataSourceAwsElasticacheReplicationGroup_'

--- PASS: TestAccAWSElasticacheReplicationGroup_clusteringAndCacheNodesCausesError (66.55s)
--- PASS: TestAccAWSElasticacheCluster_Memcached_FinalSnapshot (71.95s)
--- PASS: TestAccAWSElasticacheCluster_NumCacheNodes_Redis (74.25s)
--- PASS: TestAccAWSDataElasticacheCluster_basic (737.15s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableSnapshotting (986.85s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateDescription (987.69s)
--- PASS: TestAccAWSElasticacheReplicationGroup_useCmkKmsKeyId (1090.98s)
--- PASS: TestAccAWSElasticacheCluster_NumCacheNodes_IncreaseWithPreferredAvailabilityZones (1229.45s)
--- PASS: TestAccAWSElasticacheCluster_NodeTypeResize_Memcached (1311.80s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableAuthTokenTransitEncryption (1396.08s)
--- PASS: TestAccAWSElasticacheReplicationGroup_redisClusterInVpc2 (1420.73s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateParameterGroup (1485.93s)
--- PASS: TestAccAWSElasticacheCluster_EngineVersion_Redis (1425.75s)
--- PASS: TestAccAWSElasticacheCluster_ReplicationGroupID_SingleReplica (1500.06s)
--- PASS: TestAccAWSElasticacheCluster_NodeTypeResize_Redis (1516.86s)
--- PASS: TestAccAWSElasticacheCluster_ReplicationGroupID_MultipleReplica (1522.45s)
--- PASS: TestAccAWSElasticacheCluster_ReplicationGroupID_AvailabilityZone (1589.59s)
--- PASS: TestAccAWSElasticacheCluster_EngineVersion_Memcached (1528.96s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableAtRestEncryption (1644.84s)
--- PASS: TestAccAWSElasticacheCluster_AZMode_Redis (662.08s)
--- PASS: TestAccAWSElasticacheCluster_AZMode_Memcached (648.89s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateMaintenanceWindow (1987.14s)
--- PASS: TestAccDataSourceAwsElasticacheReplicationGroup_NonExistent (10.49s)
--- PASS: TestAccAWSElasticacheCluster_multiAZInVpc (783.12s)
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters (2109.38s)
--- PASS: TestAccAWSElasticacheCluster_vpc (647.27s)
--- PASS: TestAccAWSElasticacheCluster_Port_Redis_Default (521.35s)
--- PASS: TestAccAWSElasticacheReplicationGroup_Uppercase (648.51s)
--- PASS: TestAccAWSElasticacheCluster_ParameterGroupName_Default (673.04s)
--- PASS: TestAccAWSElasticacheReplicationGroup_vpc (789.57s)
--- PASS: TestAccAWSElasticacheCluster_Engine_Memcached (635.77s)
--- PASS: TestAccAWSElasticacheReplicationGroup_multiAzInVpc (917.38s)
--- PASS: TestAccAWSElasticacheReplicationGroup_basic (852.65s)
--- PASS: TestAccAWSElasticacheCluster_Engine_Redis (704.39s)
--- PASS: TestAccAWSElasticacheReplicationGroup_FinalSnapshot (1025.95s)
--- PASS: TestAccAWSElasticacheCluster_Redis_FinalSnapshot (854.12s)
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverDisabled (1541.39s)
--- PASS: TestAccAWSElasticacheCluster_NumCacheNodes_Increase (1074.42s)
--- PASS: TestAccAWSElasticacheCluster_snapshotsWithUpdates (716.36s)
--- PASS: TestAccAWSElasticacheCluster_Port (649.82s)
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters_Failover_AutoFailoverEnabled (2048.20s)
--- PASS: TestAccDataSourceAwsElasticacheReplicationGroup_ClusterMode (1130.27s)
--- PASS: TestAccDataSourceAwsElasticacheReplicationGroup_basic (907.52s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_NonClusteredParameterGroup (827.12s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_Basic (861.43s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateNodeSize (3047.94s)
--- PASS: TestAccAWSElasticacheReplicationGroup_tags (918.84s)
--- PASS: TestAccAWSElasticacheCluster_NumCacheNodes_Decrease (1120.19s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_NumNodeGroups (4849.48s)

@ghost ghost added size/XL Managed by automation to categorize the size of a PR. service/elasticache Issues and PRs that pertain to the elasticache service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jan 19, 2021
@gdavison gdavison marked this pull request as ready for review January 19, 2021 23:38
@gdavison gdavison requested a review from a team as a code owner January 19, 2021 23:38
@gdavison gdavison added the technical-debt Addresses areas of the codebase that need refactoring or redesign. label Jan 20, 2021
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.

Some minor items, otherwise looks good to me. 🚀

aws/resource_aws_elasticache_cluster.go Outdated Show resolved Hide resolved
aws/resource_aws_elasticache_cluster.go Outdated Show resolved Hide resolved
aws/resource_aws_elasticache_cluster.go Outdated Show resolved Hide resolved
aws/resource_aws_elasticache_cluster.go Outdated Show resolved Hide resolved
aws/resource_aws_elasticache_replication_group.go Outdated Show resolved Hide resolved
@gdavison gdavison merged commit f93feb1 into master Jan 21, 2021
@gdavison gdavison deleted the elasticache-waiters branch January 21, 2021 00:06
@github-actions github-actions bot added this to the v3.25.0 milestone Jan 21, 2021
@ghost
Copy link

ghost commented Jan 22, 2021

This has been released in version 3.25.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 Feb 20, 2021

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 as resolved and limited conversation to collaborators Feb 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/elasticache Issues and PRs that pertain to the elasticache service. size/XL Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign. 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.

2 participants