mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
14 lines
422 B
YAML
14 lines
422 B
YAML
|
## 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 badcleanuppolicy.yaml
|
||
|
then
|
||
|
echo "Tested failed. Task was created when it shouldn't have been."
|
||
|
exit 1
|
||
|
else
|
||
|
echo "Test succeeded. Task was not created as intended."
|
||
|
exit 0
|
||
|
fi
|