mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 18:06:55 +00:00
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> Co-authored-by: Jim Bugwadia <jim@nirmata.com> |
||
---|---|---|
.. | ||
chainsaw-test.yaml | ||
event-assert.yaml | ||
policy-assert.yaml | ||
policy.yaml | ||
README.md | ||
resource.yaml |
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