1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-14 00:06:45 +00:00
kyverno/test/conformance/chainsaw/validate/e2e/yaml-signing(deprecated)/chainsaw-test.yaml
Mariam Fahmy e892a0531e
chore: add tests that use spec.webhookConfiguration (#10526)
* chore: add tests that use spec.webhookConfiguration

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix chainsaw tests

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

---------

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2024-06-24 13:40:50 +00:00

23 lines
619 B
YAML
Executable file

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"