Skip to content

Commit e24bf8d

Browse files
bcreddy-gcpBBBmau
authored andcommitted
Fix google_notebooks_instance labels not being able to be updated (GoogleCloudPlatform#9933)
* add labels to runtime update test * Add labels to ImportStateVerifyIgnore * fix indentation
1 parent 6017c99 commit e24bf8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mmv1/third_party/terraform/services/notebooks/resource_notebooks_runtime_test.go.erb

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func TestAccNotebooksRuntime_update(t *testing.T) {
2525
ResourceName: "google_notebooks_runtime.runtime",
2626
ImportState: true,
2727
ImportStateVerify: true,
28+
ImportStateVerifyIgnore: []string{"labels", "terraform_labels"},
2829
},
2930
{
3031
Config: testAccNotebooksRuntime_update(context),
@@ -33,6 +34,7 @@ func TestAccNotebooksRuntime_update(t *testing.T) {
3334
ResourceName: "google_notebooks_runtime.runtime",
3435
ImportState: true,
3536
ImportStateVerify: true,
37+
ImportStateVerifyIgnore: []string{"labels", "terraform_labels"},
3638
},
3739
{
3840
Config: testAccNotebooksRuntime_basic(context),
@@ -41,6 +43,7 @@ func TestAccNotebooksRuntime_update(t *testing.T) {
4143
ResourceName: "google_notebooks_runtime.runtime",
4244
ImportState: true,
4345
ImportStateVerify: true,
46+
ImportStateVerifyIgnore: []string{"labels", "terraform_labels"},
4447
},
4548
},
4649
})
@@ -101,6 +104,9 @@ resource "google_notebooks_runtime" "runtime" {
101104
reserved_ip_range = "192.168.255.0/24"
102105
}
103106
}
107+
labels = {
108+
k = "val"
109+
}
104110
}
105111
`, context)
106112
}

0 commit comments

Comments
 (0)