mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
27 lines
530 B
YAML
27 lines
530 B
YAML
|
apiVersion: chainsaw.kyverno.io/v1alpha1
|
||
|
kind: Test
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
name: resource-not-exist
|
||
|
spec:
|
||
|
steps:
|
||
|
- name: setup
|
||
|
try:
|
||
|
- apply:
|
||
|
file: namespace.yaml
|
||
|
- apply:
|
||
|
file: main-deployment.yaml
|
||
|
- apply:
|
||
|
file: gctxentry.yaml
|
||
|
- apply:
|
||
|
file: clusterpolicy.yaml
|
||
|
- assert:
|
||
|
file: clusterpolicy-failed.yaml
|
||
|
- name: negative
|
||
|
try:
|
||
|
- apply:
|
||
|
expect:
|
||
|
- check:
|
||
|
($error != null): true
|
||
|
file: new-deployment.yaml
|