fix: iterate fix for sops.yaml not created in specified config dir

ADP-216_sops_automation
LeeW 10 months ago
parent ae828f75d1
commit 94956017cd

@ -56,13 +56,17 @@ fi
if [[ 0 -eq 1 ]]; then
>&2 echo -e "# ---\n# TEST: create sops cfg in curdir: ${PWD}"
echo "ERROR: failing right now"
set -x
# 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}"
test -e "${PWD}/.sops.yaml"
test ! -e "${repo_root}/.sops.yaml"
echo $?
set +x
echo "TEST RC: $?"
# teardown
# not necessary, all tracked in git
else
>&2 echo "# INFO: skipping ...."
fi

Loading…
Cancel
Save