|
|
|
@ -56,13 +56,17 @@ fi
|
|
|
|
if [[ 0 -eq 1 ]]; then
|
|
|
|
if [[ 0 -eq 1 ]]; then
|
|
|
|
>&2 echo -e "# ---\n# TEST: create sops cfg in curdir: ${PWD}"
|
|
|
|
>&2 echo -e "# ---\n# TEST: create sops cfg in curdir: ${PWD}"
|
|
|
|
echo "ERROR: failing right now"
|
|
|
|
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!
|
|
|
|
# note: fail if for any reason sops config defined at top level; this repo should not have this!
|
|
|
|
test ! -e "${repo_root}/.sops.yaml"
|
|
|
|
test ! -e "${repo_root}/.sops.yaml"
|
|
|
|
rm "${PWD}/.sops.yaml" || :
|
|
|
|
rm "${PWD}/.sops.yaml" || :
|
|
|
|
../bin/update_sops.sh -c "${PWD}" -s "${secrets_file}"
|
|
|
|
../bin/update_sops.sh -c "${PWD}" -s "${secrets_file}"
|
|
|
|
test -e "${PWD}/.sops.yaml"
|
|
|
|
test -e "${PWD}/.sops.yaml"
|
|
|
|
test ! -e "${repo_root}/.sops.yaml"
|
|
|
|
test ! -e "${repo_root}/.sops.yaml"
|
|
|
|
echo $?
|
|
|
|
set +x
|
|
|
|
|
|
|
|
echo "TEST RC: $?"
|
|
|
|
|
|
|
|
# teardown
|
|
|
|
|
|
|
|
# not necessary, all tracked in git
|
|
|
|
else
|
|
|
|
else
|
|
|
|
>&2 echo "# INFO: skipping ...."
|
|
|
|
>&2 echo "# INFO: skipping ...."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|