# 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: with-match-conditions spec: steps: - name: create policy try: - create: file: policy.yaml - assert: file: policy-assert.yaml - name: create good pod try: - create: file: good-pod.yaml - name: create bad pod try: - create: file: bad-pod.yaml expect: - check: ($error != null): true