Files
Matthias Baur d23dc8a9de Add integration tests for #1749 (#1766)
* Add integration tests for #1749

Signed-off-by: Matthias Baur <m.baur@syseleven.de>

* Reset extra args on a higher level to only affect subsequent helmfiles

With the implementation before, extra args has been reset after each
helm.exec which leads to problems with multiple charts in a helmfile
since the correct args are only set once in Template(). But Template()
calls helm.exec(template) multiple times.

Signed-off-by: Matthias Baur <m.baur@syseleven.de>

---------

Signed-off-by: Matthias Baur <m.baur@syseleven.de>
2024-11-06 08:12:20 +08:00

13 lines
726 B
Bash

issue_1749_input_dir="${cases_dir}/issue-1749/input"
helmfile_real="$(pwd)/${helmfile}"
test_start "issue 1749 helmfile.d template --args --dry-run=server"
cd "${issue_1749_input_dir}"
${helmfile_real} template --args --dry-run=server || fail "\"issue 1749 helmfile.d template --args --dry-run=server\" shouldn't fail"
cd -
test_pass "issue 1749 helmfile.d template --args --dry-run=server"
test_start "issue 1749 helmfile.yaml template --args --dry-run=server"
${helmfile_real} template -f "${issue_1749_input_dir}/helmfile-2in1.yaml.gotmpl" --args --dry-run=server || fail "\"issue 1749 helmfile.yaml template --args --dry-run=server\" shouldn't fail"
test_pass "issue 1749 helmfile.yaml template --args --dry-run=server"