Skip to content

Commit

Permalink
Merge pull request #39938 from hashicorp/td-fix-constants
Browse files Browse the repository at this point in the history
Fix constants
  • Loading branch information
gdavison authored Oct 30, 2024
2 parents a4329d0 + 4fbc197 commit 08cfa75
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 08cfa75

Please sign in to comment.