mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
* refactor: event package 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> * more Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * kuttl tests Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * Update pkg/event/source.go Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
329 B
329 B
Description
This test creates a policy, and a resource.
The resource is expected to be rejected.
A PolicyViolation
event should be created.
Steps
-
- Create a policy
- Assert the policy becomes ready
-
- Try to create a resource, expecting the creation to fail
-
- Asset a
PolicyViolation
event is created
- Asset a