Skip to content

Commit 9d425c9

Browse files
Remove TestAccContainerCluster_withIdentityServiceConfig (#15270) (#10818)
[upstream:dbadf5578f75a130ba792e05000d034fd4d7cba8] Signed-off-by: Modular Magician <[email protected]>
1 parent fd1d9b4 commit 9d425c9

File tree

1 file changed

+0
-83
lines changed

1 file changed

+0
-83
lines changed

google-beta/services/container/resource_container_cluster_test.go

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

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

@@ -11737,38 +11686,6 @@ resource "google_container_cluster" "primary" {
1173711686
`, clusterName, gatewayApiChannel, networkName, subnetworkName)
1173811687
}
1173911688

11740-
func testAccContainerCluster_withIdentityServiceConfigEnabled(name, networkName, subnetworkName string) string {
11741-
return fmt.Sprintf(`
11742-
resource "google_container_cluster" "primary" {
11743-
name = "%s"
11744-
location = "us-central1-a"
11745-
initial_node_count = 1
11746-
identity_service_config {
11747-
enabled = true
11748-
}
11749-
deletion_protection = false
11750-
network = "%s"
11751-
subnetwork = "%s"
11752-
}
11753-
`, name, networkName, subnetworkName)
11754-
}
11755-
11756-
func testAccContainerCluster_withIdentityServiceConfigUpdated(name, networkName, subnetworkName string) string {
11757-
return fmt.Sprintf(`
11758-
resource "google_container_cluster" "primary" {
11759-
name = "%s"
11760-
location = "us-central1-a"
11761-
initial_node_count = 1
11762-
identity_service_config {
11763-
enabled = false
11764-
}
11765-
deletion_protection = false
11766-
network = "%s"
11767-
subnetwork = "%s"
11768-
}
11769-
`, name, networkName, subnetworkName)
11770-
}
11771-
1177211689
func testAccContainerCluster_withSecretManagerConfigEnabled(projectID, name, networkName, subnetworkName string) string {
1177311690
return fmt.Sprintf(`
1177411691
data "google_project" "project" {

0 commit comments

Comments
 (0)