1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-24 16:48:20 +00:00
kyverno/test/conformance/chainsaw/validating-policies/report-message-exp/chainsaw-test.yaml
Mohd Kamaal be974e7d93
chainsaw test to check messageExpression interpolation (#12415)
Signed-off-by: Mohd Kamaal <mohdkamaal2019@gmail.com>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2025-03-17 14:06:12 +00:00

24 lines
536 B
YAML

# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: accept
spec:
template: false
steps:
- name: create policy
try:
- create:
file: policy.yaml
- sleep:
duration: 10s
- name: create deployment
try:
- create:
file: deployment.yaml
- sleep:
duration: 10s
- name: check report
try:
- assert:
file: report.yaml