Skip to content

Commit ee89988

Browse files
Fix kubelet expected error test (#3905) (#2422)
Signed-off-by: Modular Magician <[email protected]>
1 parent 775a5af commit ee89988

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changelog/3905.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/resource_container_node_pool_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ func TestAccContainerNodePool_withKubeletConfig(t *testing.T) {
297297

298298
func TestAccContainerNodePool_withInvalidKubeletCpuManagerPolicy(t *testing.T) {
299299
t.Parallel()
300+
// Unit test, no interactions
301+
skipIfVcr(t)
300302

301303
cluster := fmt.Sprintf("tf-test-cluster-%s", randString(t, 10))
302304
np := fmt.Sprintf("tf-test-np-%s", randString(t, 10))
@@ -308,7 +310,7 @@ func TestAccContainerNodePool_withInvalidKubeletCpuManagerPolicy(t *testing.T) {
308310
Steps: []resource.TestStep{
309311
{
310312
Config: testAccContainerNodePool_withKubeletConfig(cluster, np, "dontexist", "100us", true),
311-
ExpectError: regexp.MustCompile(`.*to be one of \[static default\].*`),
313+
ExpectError: regexp.MustCompile(`.*to be one of \[static none\].*`),
312314
},
313315
},
314316
})

0 commit comments

Comments
 (0)