mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* chore: run events test suite using chainsaw Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> * chainsaw main test 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> * bump chainsaw Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
472 B
472 B
Description
This test creates a generate policy, and the trigger resource (namespace). Two events are generated:
- An event for the policy to indicate that a new resource is generated.
- An event for the generated resource itself.
Steps
-
- Create a generate policy
- Assert the policy becomes ready
- Create the namespace.
-
- An event is created for the policy with message "resource generated"
- An event is created for the generated resource.