add command block test

This commit is contained in:
Stavros kois
2022-11-11 19:26:35 +02:00
parent 8a57de23bc
commit 60bc37efcd

View File

@@ -21,6 +21,25 @@ tests:
- /bin/bash
- test
- it: should pass with command block set
set:
command:
- /bin/bash
- -c
- |
echo "works!"
exit
asserts:
- equal:
documentIndex: *deploymentDoc
path: spec.template.spec.containers[0].command
value:
- /bin/bash
- -c
- |
echo "works!"
exit
- it: should pass with command set from tpl
set:
some_key: some_value