1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-19 22:16:00 +00:00
kyverno/test/conformance/chainsaw/flags/standard/emit-events/05-script.yaml
Charles-Edouard Brétéché d6933fff4f
chore: all chainsaw tests (#9011)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-11-24 11:17:58 +01:00

14 lines
492 B
YAML

---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: script
spec:
timeouts: {}
try:
- script:
content: "if kubectl logs deployment/kyverno-admission-controller -n kyverno
| grep \"reason=\\\"PolicyViolation\\\"\" \nthen \n echo \"Test succeeded.
PolicyViolation event was not created.\"\n exit 0\nelse \n echo \"Tested
failed. PolicyViolation event should have been created.\"\n exit 1\nfi\n"