apiVersion: chainsaw.kyverno.io/v1alpha1 kind: Test metadata: creationTimestamp: null name: target-context spec: steps: - name: step-01 try: - apply: expect: - check: ($error != null): true file: policy-1.yaml - apply: expect: - check: ($error != null): true file: policy-2.yaml