mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
* chore: convert chainsaw tests to Test resource Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
30 lines
655 B
YAML
Executable file
30 lines
655 B
YAML
Executable file
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: lowercase-kind-crd
|
|
spec:
|
|
steps:
|
|
- name: step-00
|
|
try:
|
|
- apply:
|
|
file: postgresqls.yaml
|
|
- assert:
|
|
file: postgresqls-ready.yaml
|
|
- name: step-01
|
|
try:
|
|
- apply:
|
|
file: chainsaw-step-01-apply-1-1.yaml
|
|
- apply:
|
|
file: chainsaw-step-01-apply-1-2.yaml
|
|
- assert:
|
|
file: chainsaw-step-01-assert-1-1.yaml
|
|
- assert:
|
|
file: chainsaw-step-01-assert-1-2.yaml
|
|
- name: step-02
|
|
try:
|
|
- apply:
|
|
expect:
|
|
- check:
|
|
($error != null): true
|
|
file: resource.yaml
|