mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
* chore: bump chainsaw Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * remove sleeps 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-test.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.