1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-25 09:06:49 +00:00
kyverno/test/conformance/chainsaw/validating-policies/context/globalreference/chainsaw-test.yaml

27 lines
507 B
YAML
Raw Normal View History

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: apicall-correct
spec:
steps:
- try:
- apply:
file: namespace.yaml
- apply:
file: main-deployment.yaml
- apply:
file: gctxentry.yaml
- sleep:
duration: 3s
- name: create policy
try:
- create:
file: policy.yaml
- assert:
file: policy-assert.yaml
- try:
- apply:
file: new-deployment.yaml
- assert:
file: new-deployment-exists.yaml