1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/cmd/cli/kubectl-kyverno/_testdata/policies-invalid/chainsaw-test.yaml

27 lines
561 B
YAML
Raw Normal View History

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: add-network-policy
spec:
steps:
- name: step-01
try:
- apply:
file: old-resource.yaml
- name: step-02
try:
- apply:
file: ../add-network-policy.yaml
- assert:
file: policy-ready.yaml
- name: step-03
try:
- apply:
file: ../.kyverno-test/resource.yaml
- name: step-04
try:
- assert:
file: ../.kyverno-test/generatedResource.yaml
- error:
file: notGeneratedResource.yaml