Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
c2thorn committed Sep 21, 2023
1 parent 198903c commit e06b8e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mmv1/products/gkehub/Membership.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ examples:
vars:
name: 'basic'
cluster_name: 'basiccluster'
deletion_protection: 'true'
test_vars_overrides:
deletion_protection: 'false'
oics_vars_overrides:
deletion_protection: 'false'
- !ruby/object:Provider::Terraform::Examples
name: 'gkehub_membership_issuer'
primary_resource_id: 'membership'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func TestAccContainerClusterDatasource_zonal(t *testing.T) {
"enable_autopilot": {},
"enable_tpu": {},
"pod_security_policy_config.#": {},
"deletion_protection": {},
},
),
),
Expand All @@ -52,6 +53,7 @@ func TestAccContainerClusterDatasource_regional(t *testing.T) {
"enable_autopilot": {},
"enable_tpu": {},
"pod_security_policy_config.#": {},
"deletion_protection": {},
},
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ func TestAccContainerCluster_withDeletionProtection(t *testing.T) {
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"deletion_protection"},
},
{
Config: testAccContainerCluster_withDeletionProtection(clusterName, "true"),
},
{
Config: testAccContainerCluster_withDeletionProtection(clusterName, "true"),
Destroy: true,
Expand Down Expand Up @@ -4982,7 +4985,7 @@ func TestAccContainerCluster_withPrivateEndpointSubnetwork(t *testing.T) {
ResourceName: "google_container_cluster.with_private_endpoint_subnetwork",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"min_master_version"},
ImportStateVerifyIgnore: []string{"min_master_version", "deletion_protection"},
},
},
})
Expand Down Expand Up @@ -5969,6 +5972,7 @@ func testAccContainerCluster_withNodePoolBasic(cluster, nodePool string) string
resource "google_container_cluster" "with_node_pool" {
name = "%s"
location = "us-central1-a"
deletion_protection = false

node_pool {
name = "%s"
Expand Down

0 comments on commit e06b8e5

Please sign in to comment.