1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-22 15:50:36 +00:00
kyverno/test/conformance/chainsaw/cel-policy-exceptions/exclude-deployments/chainsaw-test.yaml
Mariam Fahmy e01e57355a
fix: modify celexception flake test (#12192)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2025-02-19 10:51:37 +00:00

29 lines
532 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: exclude-deployments
spec:
steps:
- name: step-01
try:
- create:
file: exception.yaml
- sleep:
duration: 10s
- name: step-02
try:
- create:
file: policy.yaml
- sleep:
duration: 10s
- name: step-03
try:
- apply:
expect:
- check:
($error != null): true
file: bad-deployment.yaml
- name: step-04
try:
- apply:
file: skipped-deployment.yaml