mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #105596 from pacoxu/subresource-remove
test fix: check correct subresource patch path
This commit is contained in:
commit
57aaa70b2c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue