mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
30 lines
625 B
YAML
30 lines
625 B
YAML
|
apiVersion: chainsaw.kyverno.io/v1alpha1
|
||
|
kind: Test
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
name: single-signature
|
||
|
spec:
|
||
|
steps:
|
||
|
- name: step-01
|
||
|
try:
|
||
|
- apply:
|
||
|
file: policy.yaml
|
||
|
- assert:
|
||
|
file: policy-assert.yaml
|
||
|
- name: step-02
|
||
|
try:
|
||
|
- apply:
|
||
|
expect:
|
||
|
- check:
|
||
|
($error != null): true
|
||
|
file: resource-no-signature.yaml
|
||
|
- apply:
|
||
|
file: resource-one-signature.yaml
|
||
|
- apply:
|
||
|
file: resource-two-signatures.yaml
|
||
|
- apply:
|
||
|
expect:
|
||
|
- check:
|
||
|
($error != null): true
|
||
|
file: resource-bad-signatures.yaml
|