Skip to content

Commit 254edb9

Browse files
committed
set deletion protection to false
1 parent 50b9e58 commit 254edb9

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

test/integration/bootstrap/bootstrap_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ func TestBootstrap(t *testing.T) {
4949
vars := map[string]interface{}{
5050
"bucket_force_destroy": true,
5151
"bucket_tfstate_kms_force_destroy": true,
52+
"folder_deletion_protection": false,
53+
"project_deletion_policy": "DELETE",
5254
}
5355

5456
temp := tft.NewTFBlueprintTest(t,

test/integration/envs/envs_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ func TestEnvs(t *testing.T) {
4040
backend_bucket := bootstrap.GetStringOutput("gcs_bucket_tfstate")
4141

4242
vars := map[string]interface{}{
43-
"remote_state_bucket": backend_bucket,
43+
"remote_state_bucket": backend_bucket,
44+
"folder_deletion_protection": false,
45+
"project_deletion_policy": "DELETE",
4446
}
4547

4648
backendConfig := map[string]interface{}{

test/integration/org/org_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ func TestOrg(t *testing.T) {
4141
vars := map[string]interface{}{
4242
"remote_state_bucket": backend_bucket,
4343
"log_export_storage_force_destroy": "true",
44+
"folder_deletion_protection": false,
45+
"project_deletion_policy": "DELETE",
4446
}
4547

4648
backendConfig := map[string]interface{}{

test/integration/projects/projects_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ func TestProjects(t *testing.T) {
128128
sharedCloudBuildSA := terraform.OutputMap(t, shared.GetTFOptions(), "terraform_service_accounts")[tt.repo]
129129

130130
vars := map[string]interface{}{
131-
"remote_state_bucket": backend_bucket,
131+
"remote_state_bucket": backend_bucket,
132+
"folder_deletion_protection": false,
133+
"project_deletion_policy": "DELETE",
132134
}
133135

134136
projects := tft.NewTFBlueprintTest(t,

0 commit comments

Comments
 (0)