1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-12 10:56:54 +00:00
kyverno/test/conformance/chainsaw/mutate/clusterpolicy/standard/mutate-node-status
Charles-Edouard Brétéché 78b99def0b
chore: bump chainsaw (#9064)
2023-12-04 10:48:12 +00:00
..
01-assert.yaml chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
01-manifests.yaml chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
02-assert.yaml chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
02-script.yaml chore: bump chainsaw (#9064) 2023-12-04 10:48:12 +00:00
99-cleanup.yaml chore: bump chainsaw (#9064) 2023-12-04 10:48:12 +00:00
clear-modified-node-status.sh chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
modify-resource-filters.sh chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
README.md chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00
send-request-to-status-subresource.sh chore: all chainsaw tests (#9011) 2023-11-24 11:17:58 +01:00

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

  1. Create a ClusterPolicy that matches on Node/status and mutates the request.
  2. Modify kyverno resourceFilters to allow mutating requests for Node resource.
  3. Send a update request to Node/status.
  4. Mutate the incoming request (done by kyverno).
  5. Verify that the request is mutated.

Reference Issue(s)

https://github.com/kyverno/kyverno/issues/2843