Skip to content

Commit

Permalink
r/aws_memorydb_cluster: linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth-k committed Jan 3, 2022
1 parent 675f42e commit a2871f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
24 changes: 12 additions & 12 deletions internal/service/memorydb/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1049,11 +1049,11 @@ func testAccCheckSnapshotExists(snapshotName string) resource.TestCheckFunc {
func testAccClusterConfigBaseNetwork() string {
return acctest.ConfigCompose(
acctest.ConfigVpcWithSubnets(2),
fmt.Sprintf(`
`
resource "aws_memorydb_subnet_group" "test" {
subnet_ids = aws_subnet.test.*.id
}
`),
`,
)
}

Expand Down Expand Up @@ -1120,31 +1120,31 @@ resource "aws_memorydb_cluster" "test" {
func testAccClusterConfig_withNoName() string {
return acctest.ConfigCompose(
testAccClusterConfigBaseNetwork(),
fmt.Sprintf(`
`
resource "aws_memorydb_cluster" "test" {
acl_name = "open-access"
node_type = "db.t4g.small"
num_replicas_per_shard = 0
num_shards = 1
subnet_group_name = aws_memorydb_subnet_group.test.id
}
`),
`,
)
}

func testAccClusterConfig_withNamePrefix(rNamePrefix string) string {
func testAccClusterConfig_withNamePrefix(prefix string) string {
return acctest.ConfigCompose(
testAccClusterConfigBaseNetwork(),
fmt.Sprintf(`
resource "aws_memorydb_cluster" "test" {
acl_name = "open-access"
name_prefix = %[1]q
name_prefix = %[1]q
node_type = "db.t4g.small"
num_replicas_per_shard = 0
num_shards = 1
subnet_group_name = aws_memorydb_subnet_group.test.id
}
`, rNamePrefix),
`, prefix),
)
}

Expand Down Expand Up @@ -1320,11 +1320,11 @@ func testAccClusterConfig_withNumShards(rName string, numShards int) string {
testAccClusterConfigBaseNetwork(),
fmt.Sprintf(`
resource "aws_memorydb_cluster" "test" {
acl_name = "open-access"
name = %[1]q
node_type = "db.t4g.small"
num_shards = %[2]d
subnet_group_name = aws_memorydb_subnet_group.test.id
acl_name = "open-access"
name = %[1]q
node_type = "db.t4g.small"
num_shards = %[2]d
subnet_group_name = aws_memorydb_subnet_group.test.id
}
`, rName, numShards),
)
Expand Down
1 change: 0 additions & 1 deletion internal/service/memorydb/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const (
clusterSecurityGroupStatusModifying = "modifying"

clusterShardStatusAvailable = "available"
clusterShardStatusUpdating = "updating"

clusterSnsTopicStatusActive = "ACTIVE"
clusterSnsTopicStatusInactive = "INACTIVE"
Expand Down

0 comments on commit a2871f9

Please sign in to comment.