1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 18:06:55 +00:00
kyverno/test/conformance/chainsaw/ttl/past-timestamp/chainsaw-test.yaml
Charles-Edouard Brétéché 4bb89e1ce0
chore: convert chainsaw tests to Test resource (#9109)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-07 14:08:04 +00:00

32 lines
563 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: past-timestamp
spec:
steps:
- name: step-01
try:
- apply:
file: pod.yaml
- finally:
- sleep:
duration: 5s
name: step-02
try:
- error:
file: pod-assert.yaml
- name: step-03
try:
- apply:
file: pod-2.yaml
- assert:
file: pod-assert-2.yaml
- name: step-04
try:
- apply:
file: past-timestamp.yaml
- name: step-05
try:
- error:
file: pod-assert-2.yaml