Skip to content

Commit dbadf55

Browse files
authored
Remove TestAccContainerCluster_withIdentityServiceConfig (#15270)
1 parent cf26b63 commit dbadf55

File tree

1 file changed

+0
-83
lines changed

1 file changed

+0
-83
lines changed

mmv1/third_party/terraform/services/container/resource_container_cluster_test.go.tmpl

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,57 +4315,6 @@ func TestAccContainerCluster_withWorkloadIdentityConfigAutopilot(t *testing.T) {
43154315
})
43164316
}
43174317

4318-
func TestAccContainerCluster_withIdentityServiceConfig(t *testing.T) {
4319-
t.Parallel()
4320-
4321-
clusterName := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(t, 10))
4322-
networkName := acctest.BootstrapSharedTestNetwork(t, "gke-cluster")
4323-
subnetworkName := acctest.BootstrapSubnet(t, "gke-cluster", networkName)
4324-
acctest.VcrTest(t, resource.TestCase{
4325-
PreCheck: func() { acctest.AccTestPreCheck(t) },
4326-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
4327-
CheckDestroy: testAccCheckContainerClusterDestroyProducer(t),
4328-
Steps: []resource.TestStep{
4329-
{
4330-
Config: testAccContainerCluster_basic(clusterName, networkName, subnetworkName),
4331-
},
4332-
{
4333-
ResourceName: "google_container_cluster.primary",
4334-
ImportState: true,
4335-
ImportStateVerify: true,
4336-
ImportStateVerifyIgnore: []string{"deletion_protection"},
4337-
},
4338-
{
4339-
Config: testAccContainerCluster_withIdentityServiceConfigEnabled(clusterName, networkName, subnetworkName),
4340-
},
4341-
{
4342-
ResourceName: "google_container_cluster.primary",
4343-
ImportState: true,
4344-
ImportStateVerify: true,
4345-
ImportStateVerifyIgnore: []string{"deletion_protection"},
4346-
},
4347-
{
4348-
Config: testAccContainerCluster_withIdentityServiceConfigUpdated(clusterName, networkName, subnetworkName),
4349-
},
4350-
{
4351-
ResourceName: "google_container_cluster.primary",
4352-
ImportState: true,
4353-
ImportStateVerify: true,
4354-
ImportStateVerifyIgnore: []string{"deletion_protection"},
4355-
},
4356-
{
4357-
Config: testAccContainerCluster_basic(clusterName, networkName, subnetworkName),
4358-
},
4359-
{
4360-
ResourceName: "google_container_cluster.primary",
4361-
ImportState: true,
4362-
ImportStateVerify: true,
4363-
ImportStateVerifyIgnore: []string{"deletion_protection"},
4364-
},
4365-
},
4366-
})
4367-
}
4368-
43694318
func TestAccContainerCluster_withSecretManagerConfig(t *testing.T) {
43704319
t.Parallel()
43714320

@@ -11765,38 +11714,6 @@ resource "google_container_cluster" "primary" {
1176511714
`, clusterName, gatewayApiChannel, networkName, subnetworkName)
1176611715
}
1176711716

11768-
func testAccContainerCluster_withIdentityServiceConfigEnabled(name, networkName, subnetworkName string) string {
11769-
return fmt.Sprintf(`
11770-
resource "google_container_cluster" "primary" {
11771-
name = "%s"
11772-
location = "us-central1-a"
11773-
initial_node_count = 1
11774-
identity_service_config {
11775-
enabled = true
11776-
}
11777-
deletion_protection = false
11778-
network = "%s"
11779-
subnetwork = "%s"
11780-
}
11781-
`, name, networkName, subnetworkName)
11782-
}
11783-
11784-
func testAccContainerCluster_withIdentityServiceConfigUpdated(name, networkName, subnetworkName string) string {
11785-
return fmt.Sprintf(`
11786-
resource "google_container_cluster" "primary" {
11787-
name = "%s"
11788-
location = "us-central1-a"
11789-
initial_node_count = 1
11790-
identity_service_config {
11791-
enabled = false
11792-
}
11793-
deletion_protection = false
11794-
network = "%s"
11795-
subnetwork = "%s"
11796-
}
11797-
`, name, networkName, subnetworkName)
11798-
}
11799-
1180011717
func testAccContainerCluster_withSecretManagerConfigEnabled(projectID, name, networkName, subnetworkName string) string {
1180111718
return fmt.Sprintf(`
1180211719
data "google_project" "project" {

0 commit comments

Comments
 (0)