Basic¶
Test steps:
- Creates a ConfigMap
- Asserts the ConfigMap contains the expected data
Setup¶
See Setup docs
Manifests¶
resources.yaml
¶
assertions.yaml
¶
Test¶
chainsaw-test.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: basic
spec:
steps:
- try:
- apply:
file: resources.yaml
- assert:
file: assertions.yaml