diff --git a/test/integration/pods/pods_test.go b/test/integration/pods/pods_test.go index 376bd6ebb61..bd5cc6e5302 100644 --- a/test/integration/pods/pods_test.go +++ b/test/integration/pods/pods_test.go @@ -453,7 +453,7 @@ func TestPodPatchEphemeralContainers(t *testing.T) { }, }, patchType: types.JSONPatchType, - patchBody: []byte(`[{"op":"remove","path":"/ephemeralContainers/0"}]`), + patchBody: []byte(`[{"op":"remove","path":"/spec/ephemeralContainers/0"}]`), valid: false, // disallowed by policy rather than patch semantics }, { @@ -469,7 +469,7 @@ func TestPodPatchEphemeralContainers(t *testing.T) { }, }, patchType: types.JSONPatchType, - patchBody: []byte(`[{"op":"remove","path":"/ephemeralContainers"}]`), + patchBody: []byte(`[{"op":"remove","path":"/spec/ephemeralContainers"}]`), valid: false, // disallowed by policy rather than patch semantics }, }