1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/conformance/chainsaw/verify-manifests/multi-signatures(deprecated)/chainsaw-test.yaml
Charles-Edouard Brétéché 778d81a865
chore: use more chainsaw step templates (#11293)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-10-02 18:55:38 +00:00

39 lines
907 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: multi-signatures
spec:
steps:
- name: create policy
use:
template: ../../_step-templates/create-policy.yaml
with:
bindings:
- name: file
value: policy.yaml
- name: wait policy ready
use:
template: ../../_step-templates/cluster-policy-ready.yaml
with:
bindings:
- name: name
value: validate-yaml
- name: step-02
try:
- apply:
expect:
- check:
($error != null): true
file: resource-no-signature.yaml
- apply:
expect:
- check:
($error != null): true
file: resource-one-signature.yaml
- apply:
file: resource-two-signatures.yaml
- apply:
expect:
- check:
($error != null): true
file: resource-bad-signatures.yaml