mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +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>
29 lines
575 B
YAML
Executable file
29 lines
575 B
YAML
Executable file
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: jmespath-logic
|
|
spec:
|
|
steps:
|
|
- name: step-01
|
|
try:
|
|
- apply:
|
|
file: manifests.yaml
|
|
- assert:
|
|
file: policy-one-ready.yaml
|
|
- name: step-02
|
|
try:
|
|
- apply:
|
|
file: resource.yaml
|
|
- assert:
|
|
file: resource-mutated.yaml
|
|
- name: step-03
|
|
try:
|
|
- apply:
|
|
file: chainsaw-step-03-apply-1-1.yaml
|
|
- name: step-04
|
|
try:
|
|
- apply:
|
|
file: resource-two.yaml
|
|
- assert:
|
|
file: resource-two-mutated.yaml
|