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"