mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 18:06:55 +00:00
* chore: convert chainsaw tests to Test resource Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> |
||
---|---|---|
.. | ||
chainsaw-step-01-apply-1-1.yaml | ||
chainsaw-step-01-assert-1-1.yaml | ||
chainsaw-step-02-assert-1-1.yaml | ||
chainsaw-test.yaml | ||
clear-modified-node-status.sh | ||
modify-resource-filters.sh | ||
README.md | ||
send-request-to-status-subresource.sh |
Description
This test validates that an incoming request to Node/status
is mutated by the mutation policy matching
on Node/status
.
Expected Behavior
The request is mutated.
Steps
Test Steps
- Create a
ClusterPolicy
that matches onNode/status
and mutates the request. - Modify kyverno
resourceFilters
to allow mutating requests forNode
resource. - Send a update request to
Node/status
. - Mutate the incoming request (done by kyverno).
- Verify that the request is mutated.