1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/test/conformance/chainsaw/policy-validation/cluster-policy/policy-exceptions-disabled/chainsaw-test.yaml

25 lines
463 B
YAML
Raw Normal View History

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: policy-exceptions-disabled
spec:
steps:
- name: step-00
try:
- apply:
file: policy.yaml
- assert:
file: policy-assert.yaml
- name: step-01
try:
- apply:
file: policy_exception.yaml
- name: step-02
try:
- apply:
expect:
- check:
($error != null): true
file: resource.yaml