From 5056aca69e6f937524c487d97fe15b015a15d99f Mon Sep 17 00:00:00 2001 From: LeeW Date: Mon, 17 Feb 2025 13:28:27 +0100 Subject: [PATCH] updates second test --- verify/test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/verify/test.sh b/verify/test.sh index c672f2f..1f33ddf 100755 --- a/verify/test.sh +++ b/verify/test.sh @@ -13,8 +13,6 @@ test -e "${secrets_file}" || (yq -n '.demo.credentials.secret = "hunter2"' > "${ set -x # SAMPLE COMMANDS - manually uncomment to try out -# minimal operation: update .sops.yaml, update keys in encrypted file -../bin/update_sops.sh -c "${PWD}" "${secrets_file}" # Full Args: specify path to each, also for secrets, mix specified and positional params # ../bin/update_sops.sh -k "${keys_dir}" -c "${sops_cfg_dir}" -s "${secrets_file}" "${secrets_file}" # TEST: induce error: invalid file @@ -59,7 +57,8 @@ if [[ 1 -eq 1 ]]; then # note: fail if for any reason sops config defined at top level; this repo should not have this! test ! -e "${repo_root}/.sops.yaml" rm "${PWD}/.sops.yaml" || : - ../bin/update_sops.sh -c "${PWD}" -s "${secrets_file}" > /dev/null 2>&1 + # minimal operation: update .sops.yaml, update keys in encrypted file + ../bin/update_sops.sh -c "${PWD}" "${secrets_file}" > /dev/null 2>&1 test -e "${PWD}/.sops.yaml" test ! -e "${repo_root}/.sops.yaml" set +x