mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +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> |
||
---|---|---|
.. | ||
01-policy.yaml | ||
02-resource.yaml | ||
03-event.yaml | ||
policy-assert.yaml | ||
policy-event.yaml | ||
policy.yaml | ||
README.md | ||
resource-event.yaml | ||
resource.yaml |
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.