From 781c4e9ebe826253db9f6c065e21e59861936632 Mon Sep 17 00:00:00 2001 From: Andrey Tuzhilin Date: Mon, 15 Mar 2021 23:12:29 +0300 Subject: [PATCH] test: fix "Ensure helmfile fails when no helm-secrets is installed" test --- test/integration/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/run.sh b/test/integration/run.sh index 68c073be..3e83cc97 100755 --- a/test/integration/run.sh +++ b/test/integration/run.sh @@ -139,6 +139,10 @@ if [[ helm_major_version -eq 3 ]]; then test_start "secretssops" + info "Encrypt secrets" + ${sops} -e ${dir}/env-1.secrets.yaml > ${dir}/tmp/env-1.secrets.sops.yaml || fail "${sops} failed at ${dir}/env-1.secrets.yaml" + ${sops} -e ${dir}/env-2.secrets.yaml > ${dir}/tmp/env-2.secrets.sops.yaml || fail "${sops} failed at ${dir}/env-2.secrets.yaml" + info "Ensure helm-secrets is not installed" ${helm} plugin rm secrets || true @@ -148,10 +152,6 @@ if [[ helm_major_version -eq 3 ]]; then info "Ensure helm-secrets is installed" ${helm} plugin install https://github.com/jkroepke/helm-secrets --version v3.5.0 - info "Encrypt secrets" - ${sops} -e ${dir}/env-1.secrets.yaml > ${dir}/tmp/env-1.secrets.sops.yaml || fail "${sops} failed" - ${sops} -e ${dir}/env-2.secrets.yaml > ${dir}/tmp/env-2.secrets.sops.yaml || fail "${sops} failed" - info "Ensure helmfile succeed when helm-secrets is installed" ${helmfile} -f ${dir}/secretssops.yaml -e direct build || fail "\"helmfile build\" shouldn't fail"