From 63df2133c959210aae95ae8533daa0c12c3c8361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Mon, 14 Aug 2023 14:58:03 +0200 Subject: [PATCH] Add HELM_SECRETS_DECRYPT_SECRETS_IN_TMP_DIR --- tests/unit/template.bats | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/template.bats b/tests/unit/template.bats index 2fb640d5..98c9e7bb 100755 --- a/tests/unit/template.bats +++ b/tests/unit/template.bats @@ -2055,7 +2055,8 @@ load '../bats/extensions/bats-file/load' create_chart "${TEST_TEMP_DIR}" - run env HELM_SECRETS_DECRYPT_SECRETS_IN_TMP_DIR=true "${HELM_BIN}" secrets template "${TEST_TEMP_DIR}/chart" -f "${VALUES_PATH}" 2>&1 + run env HELM_SECRETS_DECRYPT_SECRETS_IN_TMP_DIR=true WSLENV="HELM_SECRETS_DECRYPT_SECRETS_IN_TMP_DIR:${WSLENV}" \ + "${HELM_BIN}" secrets template "${TEST_TEMP_DIR}/chart" -f "${VALUES_PATH}" 2>&1 assert_output -e "\[helm-secrets\] Decrypt: .*${VALUES}" assert_output --partial "port: 81"