Skip to content

Commit

Permalink
Fixes constants
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Oct 30, 2024
1 parent 4ca84d4 commit 4fbc197
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/service/keyspaces/keyspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ func TestAccKeyspacesKeyspace_replicationSpecificationMulti(t *testing.T) {
Config: testAccKeyspaceConfig_replicationSpecification(rName, string(types.RsSingleRegion)),
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckKeyspaceExists(ctx, resourceName),
acctest.CheckResourceAttrRegionalARN(resourceName, "arn", "cassandra", "/keyspace/"+rName+"/"),
resource.TestCheckResourceAttr(resourceName, "name", rName),
resource.TestCheckResourceAttr(resourceName, "tags.%", "0"),
acctest.CheckResourceAttrRegionalARN(resourceName, names.AttrARN, "cassandra", "/keyspace/"+rName+"/"),
resource.TestCheckResourceAttr(resourceName, names.AttrName, rName),
resource.TestCheckResourceAttr(resourceName, acctest.CtTagsPercent, "0"),
resource.TestCheckResourceAttr(resourceName, "replication_specification.0.replication_strategy", string(types.RsSingleRegion)),
),
},
{
Config: testAccKeyspaceConfig_multiReplicationSpecification(rName, string(types.RsMultiRegion), region1, region2),
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckKeyspaceExists(ctx, resourceName),
acctest.CheckResourceAttrRegionalARN(resourceName, "arn", "cassandra", "/keyspace/"+rName+"/"),
resource.TestCheckResourceAttr(resourceName, "name", rName),
resource.TestCheckResourceAttr(resourceName, "tags.%", "0"),
acctest.CheckResourceAttrRegionalARN(resourceName, names.AttrARN, "cassandra", "/keyspace/"+rName+"/"),
resource.TestCheckResourceAttr(resourceName, names.AttrName, rName),
resource.TestCheckResourceAttr(resourceName, acctest.CtTagsPercent, "0"),
resource.TestCheckResourceAttr(resourceName, "replication_specification.0.replication_strategy", string(types.RsMultiRegion)),
resource.TestCheckResourceAttr(resourceName, "replication_specification.0.region_list.#", "2"),
),
Expand Down

0 comments on commit 4fbc197

Please sign in to comment.