mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-14 00:06:45 +00:00
* 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>
23 lines
619 B
YAML
Executable file
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"
|