mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
|
||
---|---|---|
.. | ||
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