1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/test/conformance/chainsaw/cli/apply/warn-exit-code/chainsaw-test.yaml

12 lines
292 B
YAML
Raw Normal View History

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: test-name
spec:
steps:
- try:
- script:
content: |
kyverno apply policy.yaml --resource resource.yaml --audit-warn --warn-exit-code 3
check:
($error): "exit status 3"