updates second test

ADP-216_sops_automation
LeeW 10 months ago
parent 1f5776d566
commit 5056aca69e

@ -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

Loading…
Cancel
Save