mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
test fix: check correct subresource patch path
This commit is contained in:
parent
fb82a0d7eb
commit
abd13b131c
@ -453,7 +453,7 @@ func TestPodPatchEphemeralContainers(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
patchType: types.JSONPatchType,
|
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
|
valid: false, // disallowed by policy rather than patch semantics
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -469,7 +469,7 @@ func TestPodPatchEphemeralContainers(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
patchType: types.JSONPatchType,
|
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
|
valid: false, // disallowed by policy rather than patch semantics
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user