Skip to content

Commit

Permalink
set deletion protection to false
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cit committed Nov 6, 2024
1 parent 50b9e58 commit 254edb9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test/integration/bootstrap/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func TestBootstrap(t *testing.T) {
vars := map[string]interface{}{
"bucket_force_destroy": true,
"bucket_tfstate_kms_force_destroy": true,
"folder_deletion_protection": false,
"project_deletion_policy": "DELETE",
}

temp := tft.NewTFBlueprintTest(t,
Expand Down
4 changes: 3 additions & 1 deletion test/integration/envs/envs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ func TestEnvs(t *testing.T) {
backend_bucket := bootstrap.GetStringOutput("gcs_bucket_tfstate")

vars := map[string]interface{}{
"remote_state_bucket": backend_bucket,
"remote_state_bucket": backend_bucket,
"folder_deletion_protection": false,
"project_deletion_policy": "DELETE",
}

backendConfig := map[string]interface{}{
Expand Down
2 changes: 2 additions & 0 deletions test/integration/org/org_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func TestOrg(t *testing.T) {
vars := map[string]interface{}{
"remote_state_bucket": backend_bucket,
"log_export_storage_force_destroy": "true",
"folder_deletion_protection": false,
"project_deletion_policy": "DELETE",
}

backendConfig := map[string]interface{}{
Expand Down
4 changes: 3 additions & 1 deletion test/integration/projects/projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ func TestProjects(t *testing.T) {
sharedCloudBuildSA := terraform.OutputMap(t, shared.GetTFOptions(), "terraform_service_accounts")[tt.repo]

vars := map[string]interface{}{
"remote_state_bucket": backend_bucket,
"remote_state_bucket": backend_bucket,
"folder_deletion_protection": false,
"project_deletion_policy": "DELETE",
}

projects := tft.NewTFBlueprintTest(t,
Expand Down

0 comments on commit 254edb9

Please sign in to comment.