Skip to content

Commit 05180aa

Browse files
workbench instance - Ignore irrelevant fields in update tests (#13830) (#22574)
[upstream:701eb7af753f7080054609a180bc83a93ba81cb0] Signed-off-by: Modular Magician <[email protected]>
1 parent 1a173a4 commit 05180aa

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

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", "update_time"},
35+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
48+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
76+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
89+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
117+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
130+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
143+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
156+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
169+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
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", "update_time"},
182+
ImportStateVerifyIgnore: []string{"name", "instance_owners", "location", "instance_id", "request_id", "labels", "terraform_labels", "desired_state", "update_time", "health_info", "health_state"},
183183
},
184184
},
185185
})

0 commit comments

Comments
 (0)