Skip to content

Commit

Permalink
aws_rds_cluster: Test that Data API can be enabled, disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Aug 22, 2024
1 parent dca9caa commit 9f33cb2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions internal/service/rds/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2556,6 +2556,13 @@ func TestAccRDSCluster_enableHTTPEndpoint(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "enable_http_endpoint", acctest.CtFalse),
),
},
{
Config: testAccClusterConfig_enableHTTPEndpoint(rName, true),
Check: resource.ComposeTestCheckFunc(
testAccCheckClusterExists(ctx, resourceName, &dbCluster),
resource.TestCheckResourceAttr(resourceName, "enable_http_endpoint", acctest.CtTrue),
),
},
},
})
}
Expand All @@ -2581,6 +2588,20 @@ func TestAccRDSCluster_enableHTTPEndpointProvisioned(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "enable_http_endpoint", acctest.CtTrue),
),
},
{
Config: testAccClusterConfig_enableHTTPEndpointProvisioned(rName, false),
Check: resource.ComposeTestCheckFunc(
testAccCheckClusterExists(ctx, resourceName, &dbCluster),
resource.TestCheckResourceAttr(resourceName, "enable_http_endpoint", acctest.CtFalse),
),
},
{
Config: testAccClusterConfig_enableHTTPEndpointProvisioned(rName, true),
Check: resource.ComposeTestCheckFunc(
testAccCheckClusterExists(ctx, resourceName, &dbCluster),
resource.TestCheckResourceAttr(resourceName, "enable_http_endpoint", acctest.CtTrue),
),
},
},
})
}
Expand Down

0 comments on commit 9f33cb2

Please sign in to comment.