Skip to content

Commit

Permalink
container: remove ignores in TestAccContainerClusterDatasource (Goo…
Browse files Browse the repository at this point in the history
  • Loading branch information
wyardley authored and BBBmau committed Nov 5, 2024
1 parent b477589 commit 81d8a31
Showing 1 changed file with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ func TestAccContainerClusterDatasource_zonal(t *testing.T) {
acctest.CheckDataSourceStateMatchesResourceStateWithIgnores(
"data.google_container_cluster.kubes",
"google_container_cluster.kubes",
// Remove once https://github.com/hashicorp/terraform/issues/21347 is fixed.
map[string]struct{}{
"enable_autopilot": {},
"enable_tpu": {},
"pod_security_policy_config.#": {},
"deletion_protection": {},
},
map[string]struct{}{"deletion_protection": {}},
),
),
},
Expand All @@ -54,13 +48,9 @@ func TestAccContainerClusterDatasource_regional(t *testing.T) {
acctest.CheckDataSourceStateMatchesResourceStateWithIgnores(
"data.google_container_cluster.kubes",
"google_container_cluster.kubes",
// Remove once https://github.com/hashicorp/terraform/issues/21347 is fixed.
map[string]struct{}{
"enable_autopilot": {},
"enable_tpu": {},
"pod_security_policy_config.#": {},
"deletion_protection": {},
"resource_labels.%": {},
"deletion_protection": {},
"resource_labels.%": {},
},
),
),
Expand All @@ -75,10 +65,11 @@ resource "google_container_cluster" "kubes" {
name = "tf-test-cluster-%s"
location = "us-central1-a"
initial_node_count = 1
deletion_protection = false
network = "%s"
subnetwork = "%s"
subnetwork = "%s"
deletion_protection = false
}
data "google_container_cluster" "kubes" {
Expand All @@ -94,12 +85,13 @@ resource "google_container_cluster" "kubes" {
name = "tf-test-cluster-%s"
location = "us-central1"
initial_node_count = 1
deletion_protection = false
network = "%s"
subnetwork = "%s"
resource_labels = {
created-by = "terraform"
}
network = "%s"
subnetwork = "%s"
deletion_protection = false
}
data "google_container_cluster" "kubes" {
Expand Down

0 comments on commit 81d8a31

Please sign in to comment.