Skip to content

Commit 53acd66

Browse files
Fix TF: Failing test(s): TestAccWorkbenchInstance_updateState (#13275) (#21754)
[upstream:c5fbc2f2c9e4872308362b8a882ca2678c658847] Signed-off-by: Modular Magician <[email protected]>
1 parent 94c8b4d commit 53acd66

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.changelog/13275.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/services/workbench/resource_workbench_instance_shielded_config_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestAccWorkbenchInstance_shielded_config_update(t *testing.T) {
3232
ResourceName: "google_workbench_instance.instance",
3333
ImportState: true,
3434
ImportStateVerify: true,
35-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
35+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
3636
},
3737
{
3838
Config: testAccWorkbenchInstance_shielded_config_true(context),
@@ -45,7 +45,7 @@ func TestAccWorkbenchInstance_shielded_config_update(t *testing.T) {
4545
ResourceName: "google_workbench_instance.instance",
4646
ImportState: true,
4747
ImportStateVerify: true,
48-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
48+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
4949
},
5050
},
5151
})
@@ -73,7 +73,7 @@ func TestAccWorkbenchInstance_shielded_config_remove(t *testing.T) {
7373
ResourceName: "google_workbench_instance.instance",
7474
ImportState: true,
7575
ImportStateVerify: true,
76-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
76+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
7777
},
7878
{
7979
Config: testAccWorkbenchInstance_shielded_config_none(context),
@@ -86,7 +86,7 @@ func TestAccWorkbenchInstance_shielded_config_remove(t *testing.T) {
8686
ResourceName: "google_workbench_instance.instance",
8787
ImportState: true,
8888
ImportStateVerify: true,
89-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
89+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
9090
},
9191
},
9292
})
@@ -114,7 +114,7 @@ func TestAccWorkbenchInstance_shielded_config_double_apply(t *testing.T) {
114114
ResourceName: "google_workbench_instance.instance",
115115
ImportState: true,
116116
ImportStateVerify: true,
117-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
117+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
118118
},
119119
{
120120
Config: testAccWorkbenchInstance_shielded_config_none(context),
@@ -127,7 +127,7 @@ func TestAccWorkbenchInstance_shielded_config_double_apply(t *testing.T) {
127127
ResourceName: "google_workbench_instance.instance",
128128
ImportState: true,
129129
ImportStateVerify: true,
130-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
130+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
131131
},
132132
{
133133
Config: testAccWorkbenchInstance_shielded_config_false(context),
@@ -140,7 +140,7 @@ func TestAccWorkbenchInstance_shielded_config_double_apply(t *testing.T) {
140140
ResourceName: "google_workbench_instance.instance",
141141
ImportState: true,
142142
ImportStateVerify: true,
143-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
143+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
144144
},
145145
{
146146
Config: testAccWorkbenchInstance_shielded_config_false(context),
@@ -153,7 +153,7 @@ func TestAccWorkbenchInstance_shielded_config_double_apply(t *testing.T) {
153153
ResourceName: "google_workbench_instance.instance",
154154
ImportState: true,
155155
ImportStateVerify: true,
156-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
156+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
157157
},
158158
{
159159
Config: testAccWorkbenchInstance_shielded_config_true(context),
@@ -166,7 +166,7 @@ func TestAccWorkbenchInstance_shielded_config_double_apply(t *testing.T) {
166166
ResourceName: "google_workbench_instance.instance",
167167
ImportState: true,
168168
ImportStateVerify: true,
169-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
169+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
170170
},
171171
{
172172
Config: testAccWorkbenchInstance_shielded_config_true(context),
@@ -179,7 +179,7 @@ func TestAccWorkbenchInstance_shielded_config_double_apply(t *testing.T) {
179179
ResourceName: "google_workbench_instance.instance",
180180
ImportState: true,
181181
ImportStateVerify: true,
182-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels"},
182+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "update_time"},
183183
},
184184
},
185185
})

google/services/workbench/resource_workbench_instance_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ func TestAccWorkbenchInstance_updateState(t *testing.T) {
434434
ResourceName: "google_workbench_instance.instance",
435435
ImportState: true,
436436
ImportStateVerify: true,
437-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state"},
437+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time"},
438438
},
439439
{
440440
Config: testAccWorkbenchInstance_updateState(context),
@@ -447,7 +447,7 @@ func TestAccWorkbenchInstance_updateState(t *testing.T) {
447447
ResourceName: "google_workbench_instance.instance",
448448
ImportState: true,
449449
ImportStateVerify: true,
450-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state"},
450+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time"},
451451
},
452452
{
453453
Config: testAccWorkbenchInstance_basic(context),
@@ -460,7 +460,7 @@ func TestAccWorkbenchInstance_updateState(t *testing.T) {
460460
ResourceName: "google_workbench_instance.instance",
461461
ImportState: true,
462462
ImportStateVerify: true,
463-
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state"},
463+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time"},
464464
},
465465
},
466466
})

0 commit comments

Comments
 (0)