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/background-mode/standard/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

20 lines
418 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: standard
spec:
steps:
- name: step-01
try:
- apply:
file: exception-allowed.yaml
- apply:
expect:
- check:
($error != null): true
file: exception-rejected.yaml
- assert:
file: exception-allowed.yaml
- error:
file: exception-rejected.yaml