@@ -41,7 +41,7 @@ func TestAccDSQLCluster_basic(t *testing.T) {
41
41
CheckDestroy : testAccCheckClusterDestroy (ctx ),
42
42
Steps : []resource.TestStep {
43
43
{
44
- Config : testAccClusterConfig_basic (false ),
44
+ Config : testAccClusterConfig_basic (),
45
45
Check : resource .ComposeAggregateTestCheckFunc (
46
46
testAccCheckClusterExists (ctx , resourceName , & cluster ),
47
47
),
@@ -90,7 +90,7 @@ func TestAccDSQLCluster_disappears(t *testing.T) {
90
90
CheckDestroy : testAccCheckClusterDestroy (ctx ),
91
91
Steps : []resource.TestStep {
92
92
{
93
- Config : testAccClusterConfig_basic (false ),
93
+ Config : testAccClusterConfig_basic (),
94
94
Check : resource .ComposeAggregateTestCheckFunc (
95
95
testAccCheckClusterExists (ctx , resourceName , & cluster ),
96
96
acctest .CheckFrameworkResourceDisappears (ctx , acctest .Provider , tfdsql .ResourceCluster , resourceName ),
@@ -116,7 +116,7 @@ func TestAccDSQLCluster_deletionProtection(t *testing.T) {
116
116
CheckDestroy : testAccCheckClusterDestroy (ctx ),
117
117
Steps : []resource.TestStep {
118
118
{
119
- Config : testAccClusterConfig_basic (true ),
119
+ Config : testAccClusterConfig_deletionProtection (true ),
120
120
Check : resource .ComposeAggregateTestCheckFunc (
121
121
testAccCheckClusterExists (ctx , resourceName , & cluster ),
122
122
),
@@ -137,7 +137,7 @@ func TestAccDSQLCluster_deletionProtection(t *testing.T) {
137
137
ImportStateVerify : true ,
138
138
},
139
139
{
140
- Config : testAccClusterConfig_basic (false ),
140
+ Config : testAccClusterConfig_deletionProtection (false ),
141
141
Check : resource .ComposeAggregateTestCheckFunc (
142
142
testAccCheckClusterExists (ctx , resourceName , & cluster ),
143
143
),
@@ -281,7 +281,14 @@ func testAccPreCheck(ctx context.Context, t *testing.T) {
281
281
}
282
282
}
283
283
284
- func testAccClusterConfig_basic (deletionProtection bool ) string {
284
+ func testAccClusterConfig_basic () string {
285
+ return `
286
+ resource "aws_dsql_cluster" "test" {
287
+ }
288
+ `
289
+ }
290
+
291
+ func testAccClusterConfig_deletionProtection (deletionProtection bool ) string {
285
292
return fmt .Sprintf (`
286
293
resource "aws_dsql_cluster" "test" {
287
294
deletion_protection_enabled = %[1]t
0 commit comments