1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-13 15:57:31 +00:00
kyverno/test/conformance/kuttl/validate/e2e/yaml-signing/03-bad-deployment.yaml

13 lines
420 B
YAML
Raw Normal View History

## Checks that the manifests.yaml file CANNOT be successfully created. If it can, fail the test as this is incorrect.
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
if kubectl apply -f bad.yaml
then
echo "Tested failed. Deployment was created when it shouldn't have been."
exit 1
else
echo "Test succeeded. Deployment was not created as intended."
exit 0
fi