1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-15 16:56:56 +00:00
kyverno/test/conformance/chainsaw/validate/e2e/yaml-signing(deprecated)/chainsaw-test.yaml

24 lines
619 B
YAML
Raw Normal View History

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: yaml-signing
spec:
steps:
- name: step-01
try:
- apply:
file: policy.yaml
- assert:
file: policy-ready.yaml
- name: step-02
try:
- apply:
file: chainsaw-step-02-apply-1-1.yaml
- name: step-03
try:
- script:
content: "if kubectl apply -f bad.yaml\nthen \n echo \"Tested failed. Deployment
was created when it shouldn't have been.\"\n exit 1 \nelse \n echo \"Test
succeeded. Deployment was not created as intended.\"\n exit 0\nfi\n"