From 133f897b154ec6a495c913b87273147f910c5c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Fri, 28 Aug 2020 18:44:31 +0200 Subject: [PATCH] Support parameters like --values=secrets.yaml --- scripts/commands/helm.sh | 22 +++++++++---- tests/it/diff.bats | 60 +++++++++++++++++++++++++++++++++++ tests/it/install.bats | 68 ++++++++++++++++++++++++++++++++++++++++ tests/it/upgrade.bats | 68 ++++++++++++++++++++++++++++++++++++++++ tests/unit/kubeval.bats | 60 +++++++++++++++++++++++++++++++++++ tests/unit/lint.bats | 54 ++++++++++++++++++++++++++++++- tests/unit/template.bats | 52 ++++++++++++++++++++++++++++++ 7 files changed, 377 insertions(+), 7 deletions(-) diff --git a/scripts/commands/helm.sh b/scripts/commands/helm.sh index b6e54dd51..934f55880 100644 --- a/scripts/commands/helm.sh +++ b/scripts/commands/helm.sh @@ -55,10 +55,23 @@ helm_wrapper() { shift break ;; - -f | --values) - set -- "$@" "$1" + -f | --values | --values=?*) + case "$1" in + *=*) + arg="${1%%=*}" + file="${1#*=}" + + set -- "$@" "${arg}" + ;; + *) + file="${2}" + + set -- "$@" "$1" + shift + j=$((j + 1)) + ;; + esac - file="${2}" file_dec="$(file_dec_name "${file}")" if [ -f "${file_dec}" ]; then set -- "$@" "$file_dec" @@ -78,9 +91,6 @@ helm_wrapper() { set -- "$@" "$file" fi fi - - shift - j=$((j + 1)) ;; *) set -- "$@" "$1" diff --git a/tests/it/diff.bats b/tests/it/diff.bats index 8b51d85c4..57b920ff6 100755 --- a/tests/it/diff.bats +++ b/tests/it/diff.bats @@ -51,6 +51,36 @@ load '../bats/extensions/bats-file/load' assert [ ! -f "${FILE}.dec" ] } +@test "diff: helm diff upgrade w/ chart + secrets.yaml + --values" { + helm_plugin_install "diff" + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + RELEASE="diff-$(date +%s)-${SEED}" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets diff upgrade --no-color --allow-unreleased "${RELEASE}" "${TEST_TEMP_DIR}/chart" --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "port: 81" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] +} + +@test "diff: helm diff upgrade w/ chart + secrets.yaml + --values=" { + helm_plugin_install "diff" + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + RELEASE="diff-$(date +%s)-${SEED}" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets diff upgrade --no-color --allow-unreleased "${RELEASE}" "${TEST_TEMP_DIR}/chart" --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "port: 81" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] +} + @test "diff: helm diff upgrade w/ chart + some-secrets.yaml" { helm_plugin_install "diff" FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" @@ -66,6 +96,36 @@ load '../bats/extensions/bats-file/load' assert [ ! -f "${FILE}.dec" ] } +@test "diff: helm diff upgrade w/ chart + some-secrets.yaml + --values" { + helm_plugin_install "diff" + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + RELEASE="diff-$(date +%s)-${SEED}" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets diff upgrade --no-color --allow-unreleased "${RELEASE}" "${TEST_TEMP_DIR}/chart" --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "port: 83" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] +} + +@test "diff: helm diff upgrade w/ chart + some-secrets.yaml + --values=" { + helm_plugin_install "diff" + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + RELEASE="diff-$(date +%s)-${SEED}" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets diff upgrade --no-color --allow-unreleased "${RELEASE}" "${TEST_TEMP_DIR}/chart" --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "port: 83" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] +} + @test "diff: helm diff upgrade w/ chart + secrets.yaml + helm flag" { helm_plugin_install "diff" FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" diff --git a/tests/it/install.bats b/tests/it/install.bats index b0fed53f5..615215bb4 100755 --- a/tests/it/install.bats +++ b/tests/it/install.bats @@ -50,6 +50,40 @@ load '../bats/extensions/bats-file/load' assert_output --partial "port: 81" } +@test "install: helm install w/ chart + secrets.yaml + --values" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + RELEASE="install-$(date +%s)-${SEED}" + create_chart "${TEST_TEMP_DIR}" + + run helm secrets install "${RELEASE}" "${TEST_TEMP_DIR}/chart" --no-hooks --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "STATUS: deployed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] + + run kubectl get svc -o yaml -l "app.kubernetes.io/name=chart,app.kubernetes.io/instance=${RELEASE}" + assert_success + assert_output --partial "port: 81" +} + +@test "install: helm install w/ chart + secrets.yaml + --values=" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + RELEASE="install-$(date +%s)-${SEED}" + create_chart "${TEST_TEMP_DIR}" + + run helm secrets install "${RELEASE}" "${TEST_TEMP_DIR}/chart" --no-hooks --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "STATUS: deployed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] + + run kubectl get svc -o yaml -l "app.kubernetes.io/name=chart,app.kubernetes.io/instance=${RELEASE}" + assert_success + assert_output --partial "port: 81" +} + @test "install: helm install w/ chart + some-secrets.yaml" { FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" RELEASE="install-$(date +%s)-${SEED}" @@ -67,6 +101,40 @@ load '../bats/extensions/bats-file/load' assert_output --partial "port: 83" } +@test "install: helm install w/ chart + some-secrets.yaml + --values" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + RELEASE="install-$(date +%s)-${SEED}" + create_chart "${TEST_TEMP_DIR}" + + run helm secrets install "${RELEASE}" "${TEST_TEMP_DIR}/chart" --no-hooks --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "STATUS: deployed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] + + run kubectl get svc -o yaml -l "app.kubernetes.io/name=chart,app.kubernetes.io/instance=${RELEASE}" + assert_success + assert_output --partial "port: 83" +} + +@test "install: helm install w/ chart + some-secrets.yaml + --values=" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + RELEASE="install-$(date +%s)-${SEED}" + create_chart "${TEST_TEMP_DIR}" + + run helm secrets install "${RELEASE}" "${TEST_TEMP_DIR}/chart" --no-hooks --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "STATUS: deployed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] + + run kubectl get svc -o yaml -l "app.kubernetes.io/name=chart,app.kubernetes.io/instance=${RELEASE}" + assert_success + assert_output --partial "port: 83" +} + @test "install: helm install w/ chart + secrets.yaml + helm flag" { FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" RELEASE="install-$(date +%s)-${SEED}" diff --git a/tests/it/upgrade.bats b/tests/it/upgrade.bats index 62b974932..3c117b437 100755 --- a/tests/it/upgrade.bats +++ b/tests/it/upgrade.bats @@ -50,6 +50,40 @@ load '../bats/extensions/bats-file/load' assert_output --partial "port: 81" } +@test "upgrade: helm upgrade w/ chart + secrets.yaml + --values" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + RELEASE="upgrade-$(date +%s)-${SEED}" + create_chart "${TEST_TEMP_DIR}" + + run helm secrets upgrade -i "${RELEASE}" "${TEST_TEMP_DIR}/chart" --no-hooks --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "STATUS: deployed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] + + run kubectl get svc -o yaml -l "app.kubernetes.io/name=chart,app.kubernetes.io/instance=${RELEASE}" + assert_success + assert_output --partial "port: 81" +} + +@test "upgrade: helm upgrade w/ chart + secrets.yaml + --values=" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + RELEASE="upgrade-$(date +%s)-${SEED}" + create_chart "${TEST_TEMP_DIR}" + + run helm secrets upgrade -i "${RELEASE}" "${TEST_TEMP_DIR}/chart" --no-hooks --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "STATUS: deployed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] + + run kubectl get svc -o yaml -l "app.kubernetes.io/name=chart,app.kubernetes.io/instance=${RELEASE}" + assert_success + assert_output --partial "port: 81" +} + @test "upgrade: helm upgrade w/ chart + some-secrets.yaml" { FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" RELEASE="upgrade-$(date +%s)-${SEED}" @@ -67,6 +101,40 @@ load '../bats/extensions/bats-file/load' assert_output --partial "port: 83" } +@test "upgrade: helm upgrade w/ chart + some-secrets.yaml + --values" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + RELEASE="upgrade-$(date +%s)-${SEED}" + create_chart "${TEST_TEMP_DIR}" + + run helm secrets upgrade -i "${RELEASE}" "${TEST_TEMP_DIR}/chart" --no-hooks --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "STATUS: deployed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] + + run kubectl get svc -o yaml -l "app.kubernetes.io/name=chart,app.kubernetes.io/instance=${RELEASE}" + assert_success + assert_output --partial "port: 83" +} + +@test "upgrade: helm upgrade w/ chart + some-secrets.yaml + --values=" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + RELEASE="upgrade-$(date +%s)-${SEED}" + create_chart "${TEST_TEMP_DIR}" + + run helm secrets upgrade -i "${RELEASE}" "${TEST_TEMP_DIR}/chart" --no-hooks --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "STATUS: deployed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert [ ! -f "${FILE}.dec" ] + + run kubectl get svc -o yaml -l "app.kubernetes.io/name=chart,app.kubernetes.io/instance=${RELEASE}" + assert_success + assert_output --partial "port: 83" +} + @test "upgrade: helm upgrade w/ chart + secrets.yaml + helm flag" { FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" RELEASE="upgrade-$(date +%s)-${SEED}" diff --git a/tests/unit/kubeval.bats b/tests/unit/kubeval.bats index 2b848ab41..264d73a02 100644 --- a/tests/unit/kubeval.bats +++ b/tests/unit/kubeval.bats @@ -50,6 +50,36 @@ load '../bats/extensions/bats-file/load' assert_file_not_exist "${FILE}.dec" } +@test "kubeval: helm kubeval w/ chart + secrets.yaml + --values" { + helm_plugin_install "kubeval" + + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets kubeval "${TEST_TEMP_DIR}/chart" --values "${FILE}" --strict 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "The file chart/templates/serviceaccount.yaml contains a valid ServiceAccount" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + +@test "kubeval: helm kubeval w/ chart + secrets.yaml + --values=" { + helm_plugin_install "kubeval" + + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets kubeval "${TEST_TEMP_DIR}/chart" --values="${FILE}" --strict 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "The file chart/templates/serviceaccount.yaml contains a valid ServiceAccount" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + @test "kubeval: helm kubeval w/ chart + some-secrets.yaml" { helm_plugin_install "kubeval" @@ -65,6 +95,36 @@ load '../bats/extensions/bats-file/load' assert_file_not_exist "${FILE}.dec" } +@test "kubeval: helm kubeval w/ chart + some-secrets.yaml + --values" { + helm_plugin_install "kubeval" + + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets kubeval "${TEST_TEMP_DIR}/chart" --values "${FILE}" --strict 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "The file chart/templates/serviceaccount.yaml contains a valid ServiceAccount" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + +@test "kubeval: helm kubeval w/ chart + some-secrets.yaml + --values=" { + helm_plugin_install "kubeval" + + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets kubeval "${TEST_TEMP_DIR}/chart" --values="${FILE}" --strict 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "The file chart/templates/serviceaccount.yaml contains a valid ServiceAccount" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + @test "kubeval: helm kubeval w/ chart + secrets.yaml + helm flag" { helm_plugin_install "kubeval" diff --git a/tests/unit/lint.bats b/tests/unit/lint.bats index b3549b113..19263820f 100755 --- a/tests/unit/lint.bats +++ b/tests/unit/lint.bats @@ -42,11 +42,37 @@ load '../bats/extensions/bats-file/load' assert_file_not_exist "${FILE}.dec" } -@test "lint: helm lint w/ chart + some-secrets.yaml" { +@test "lint: helm lint w/ chart + secrets.yaml + --values" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets lint "${TEST_TEMP_DIR}/chart" --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "1 chart(s) linted, 0 chart(s) failed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + +@test "lint: helm lint w/ chart + secrets.yaml + --values=" { FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" create_chart "${TEST_TEMP_DIR}" + run helm secrets lint "${TEST_TEMP_DIR}/chart" --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "1 chart(s) linted, 0 chart(s) failed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + +@test "lint: helm lint w/ chart + some-secrets.yaml" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + run helm secrets lint "${TEST_TEMP_DIR}/chart" -f "${FILE}" 2>&1 assert_success assert_output --partial "[helm-secrets] Decrypt: ${FILE}" @@ -55,6 +81,32 @@ load '../bats/extensions/bats-file/load' assert_file_not_exist "${FILE}.dec" } +@test "lint: helm lint w/ chart + some-secrets.yaml + --values" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets lint "${TEST_TEMP_DIR}/chart" --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "1 chart(s) linted, 0 chart(s) failed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + +@test "lint: helm lint w/ chart + some-secrets.yaml + --values=" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets lint "${TEST_TEMP_DIR}/chart" --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "1 chart(s) linted, 0 chart(s) failed" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + @test "lint: helm lint w/ chart + secrets.yaml + helm flag" { FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" diff --git a/tests/unit/template.bats b/tests/unit/template.bats index bdf440aea..3f636275d 100755 --- a/tests/unit/template.bats +++ b/tests/unit/template.bats @@ -42,6 +42,32 @@ load '../bats/extensions/bats-file/load' assert_file_not_exist "${FILE}.dec" } +@test "template: helm template w/ chart + secrets.yaml + --values" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets template "${TEST_TEMP_DIR}/chart" --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "port: 81" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + +@test "template: helm template w/ chart + secrets.yaml + --values=" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets template "${TEST_TEMP_DIR}/chart" --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "port: 81" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + @test "template: helm template w/ chart + some-secrets.yaml" { FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" @@ -55,6 +81,32 @@ load '../bats/extensions/bats-file/load' assert_file_not_exist "${FILE}.dec" } +@test "template: helm template w/ chart + some-secrets.yaml + --values" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets template "${TEST_TEMP_DIR}/chart" --values "${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "port: 83" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + +@test "template: helm template w/ chart + some-secrets.yaml + --values=" { + FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/some-secrets.yaml" + + create_chart "${TEST_TEMP_DIR}" + + run helm secrets template "${TEST_TEMP_DIR}/chart" --values="${FILE}" 2>&1 + assert_success + assert_output --partial "[helm-secrets] Decrypt: ${FILE}" + assert_output --partial "port: 83" + assert_output --partial "[helm-secrets] Removed: ${FILE}.dec" + assert_file_not_exist "${FILE}.dec" +} + @test "template: helm template w/ chart + secrets.yaml + helm flag" { FILE="${TEST_TEMP_DIR}/values/${HELM_SECRETS_DRIVER}/secrets.yaml"