1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/test/conformance/chainsaw/webhook-configurations/match-conditions-standard/chainsaw-test.yaml

41 lines
815 B
YAML
Raw Normal View History

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: report-deletion
spec:
steps:
- name: step-00
try:
- apply:
file: ns.yaml
- assert:
file: ns.yaml
- name: step-01
try:
- apply:
file: pod.yaml
- assert:
file: pod.yaml
- name: create policy
use:
template: ../../_step-templates/create-policy.yaml
with:
bindings:
- name: file
value: policy.yaml
- name: wait policy ready
use:
template: ../../_step-templates/cluster-policy-ready.yaml
with:
bindings:
- name: name
value: cpol-match-conditions-standard
- name: step-03
try:
- assert:
file: report-assert.yaml
- name: step-04
try:
- error:
file: report-error.yaml