1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/test/conformance/chainsaw/exceptions/conditions/chainsaw-test.yaml
Charles-Edouard Brétéché f2561d0095
chore: convert chainsaw tests to Test resource (#9100)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-06 21:39:17 +00:00

27 lines
494 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: conditions
spec:
steps:
- name: step-01
try:
- apply:
file: policy.yaml
- name: step-02
try:
- apply:
file: exception.yaml
- finally:
- sleep:
duration: 5s
name: step-03
try:
- apply:
file: good-deployment.yaml
- apply:
expect:
- check:
($error != null): true
file: bad-deployment.yaml