Skip to content

Commit 12750e6

Browse files
Stop acceptance test deleting in-use service account (#10010) (#6985)
[upstream:ef763566fb57f8eb571e4ccf3983b62649211d32] Signed-off-by: Modular Magician <[email protected]>
1 parent ac062d2 commit 12750e6

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.changelog/10010.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/services/workstations/resource_workstations_workstation_config_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,15 @@ resource "google_workstations_workstation_cluster" "default" {
673673
location = "us-central1"
674674
}
675675
676+
# No longer explicitly used in google_workstations_workstation_config resource block below, but the
677+
# service account needs to keep existing to allow the field to default from the API without error
678+
resource "google_service_account" "default" {
679+
provider = google-beta
680+
681+
account_id = "tf-test-my-account%{random_suffix}"
682+
display_name = "Service Account"
683+
}
684+
676685
resource "google_workstations_workstation_config" "default" {
677686
provider = google-beta
678687
workstation_config_id = "tf-test-workstation-config%{random_suffix}"
@@ -727,6 +736,15 @@ resource "google_workstations_workstation_cluster" "default" {
727736
location = "us-central1"
728737
}
729738
739+
# No longer explicitly used in google_workstations_workstation_config resource block below, but the
740+
# service account needs to keep existing to allow the field to default from the API without error
741+
resource "google_service_account" "default" {
742+
provider = google-beta
743+
744+
account_id = "tf-test-my-account%{random_suffix}"
745+
display_name = "Service Account"
746+
}
747+
730748
resource "google_workstations_workstation_config" "default" {
731749
provider = google-beta
732750
workstation_config_id = "tf-test-workstation-config%{random_suffix}"

0 commit comments

Comments
 (0)