Skip to content

Commit cb9af4d

Browse files
Update target project and org for storagecontrol tests (#13769) (#22520)
[upstream:ef56a05e5a7313913776a899a4ac38527561e092] Signed-off-by: Modular Magician <[email protected]>
1 parent 39eaf6c commit cb9af4d

5 files changed

+4
-6
lines changed

google/services/storagecontrol/data_source_storage_control_organizaton_intelligence_config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestAccDataSourceGoogleStorageControlOrganizationIntelligenceConfig_basic(t
1717

1818
context := map[string]interface{}{
1919
"random_suffix": acctest.RandString(t, 10),
20-
"org_id": envvar.GetTestOrgFromEnv(t),
20+
"org_id": envvar.GetTestOrgTargetFromEnv(t),
2121
}
2222

2323
acctest.VcrTest(t, resource.TestCase{

google/services/storagecontrol/data_source_storage_control_project_intelligence_config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestAccDataSourceGoogleStorageControlProjectIntelligenceConfig_basic(t *tes
1515

1616
context := map[string]interface{}{
1717
"random_suffix": acctest.RandString(t, 10),
18-
"project": envvar.GetTestProjectFromEnv(),
18+
"project": acctest.BootstrapProject(t, "tf-test-stor-int-", envvar.GetTestBillingAccountFromEnv(t), []string{"storage.googleapis.com"}).ProjectId,
1919
}
2020

2121
acctest.VcrTest(t, resource.TestCase{

google/services/storagecontrol/resource_storage_control_folder_intelligence_config_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ func TestAccStorageControlFolderIntelligenceConfig_update(t *testing.T) {
1414
t.Parallel()
1515

1616
context := map[string]interface{}{
17-
"project": envvar.GetTestProjectFromEnv(),
1817
"org_id": envvar.GetTestOrgFromEnv(t),
1918
"random_suffix": acctest.RandString(t, 10),
2019
}

google/services/storagecontrol/resource_storage_control_organization_intelligence_config_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ func TestAccStorageControlOrganizationIntelligenceConfig_update(t *testing.T) {
1616
t.Parallel()
1717

1818
context := map[string]interface{}{
19-
"project": envvar.GetTestProjectFromEnv(),
20-
"org_id": envvar.GetTestOrgFromEnv(t),
19+
"org_id": envvar.GetTestOrgTargetFromEnv(t),
2120
"random_suffix": acctest.RandString(t, 10),
2221
}
2322

google/services/storagecontrol/resource_storage_control_project_intelligence_config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestAccStorageControlProjectIntelligenceConfig_update(t *testing.T) {
1616
t.Parallel()
1717

1818
context := map[string]interface{}{
19-
"project": envvar.GetTestProjectFromEnv(),
19+
"project": acctest.BootstrapProject(t, "tf-test-stor-int-", envvar.GetTestBillingAccountFromEnv(t), []string{"storage.googleapis.com"}).ProjectId,
2020
"random_suffix": acctest.RandString(t, 10),
2121
}
2222

0 commit comments

Comments
 (0)