From 60bc37efcdbdbfd7970ab19480140e0256babcaf Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Fri, 11 Nov 2022 19:26:35 +0200 Subject: [PATCH] add command block test --- ...deployment_container_command-arg_test.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/library/common-test/tests/pod/deployment_container_command-arg_test.yaml b/library/common-test/tests/pod/deployment_container_command-arg_test.yaml index f49da761..cdde4786 100644 --- a/library/common-test/tests/pod/deployment_container_command-arg_test.yaml +++ b/library/common-test/tests/pod/deployment_container_command-arg_test.yaml @@ -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