|
|
|
@ -32,8 +32,7 @@ mv .sops.yaml.tmp .sops.yaml
|
|
|
|
# TEST
|
|
|
|
# TEST
|
|
|
|
# define "fixture"
|
|
|
|
# define "fixture"
|
|
|
|
repo_root="$(git rev-parse --show-toplevel)"
|
|
|
|
repo_root="$(git rev-parse --show-toplevel)"
|
|
|
|
# ---
|
|
|
|
>&2 echo -e "# ---\n# TEST: create sops cfg in default dir: ${repo_root}"
|
|
|
|
>&2 echo "# create sops cfg in default dir: ${repo_root}"
|
|
|
|
|
|
|
|
rm "${PWD}/.sops.yaml"
|
|
|
|
rm "${PWD}/.sops.yaml"
|
|
|
|
# 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"
|
|
|
|
@ -44,8 +43,7 @@ test -e "${repo_root}/.sops.yaml"
|
|
|
|
# enmesh: restore, since this particular one is checked in
|
|
|
|
# enmesh: restore, since this particular one is checked in
|
|
|
|
git checkout "${PWD}/.sops.yaml"
|
|
|
|
git checkout "${PWD}/.sops.yaml"
|
|
|
|
rm "${repo_root}/.sops.yaml"
|
|
|
|
rm "${repo_root}/.sops.yaml"
|
|
|
|
# ---
|
|
|
|
>&2 echo -e "# ---\n# TEST: create sops cfg in curdir: ${PWD}"
|
|
|
|
>&2 echo "# create sops cfg in curdir: ${PWD}"
|
|
|
|
|
|
|
|
echo "ERROR: failing right now"
|
|
|
|
echo "ERROR: failing right now"
|
|
|
|
rm .sops.yaml
|
|
|
|
rm .sops.yaml
|
|
|
|
../bin/update_sops.sh -c "${PWD}" -s "${secrets_file}"
|
|
|
|
../bin/update_sops.sh -c "${PWD}" -s "${secrets_file}"
|
|
|
|
|