mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
* chore: bump chainsaw Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * more template use Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * v0.2.10 Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * go mod 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 | ||
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