|
|
|
@ -90,11 +90,12 @@ if [[ 1 -eq 1 ]]; then
|
|
|
|
set +e
|
|
|
|
set +e
|
|
|
|
# move 'set -x' within the sub-shell, otherwise all output dumped to tty
|
|
|
|
# move 'set -x' within the sub-shell, otherwise all output dumped to tty
|
|
|
|
# ... bug: stderr still gets printed, not sure why. E.g. '# RUN: sops updatekeys mock_secrets.yaml'
|
|
|
|
# ... bug: stderr still gets printed, not sure why. E.g. '# RUN: sops updatekeys mock_secrets.yaml'
|
|
|
|
_out="$(set -x; ../bin/update_sops.sh -c "${PWD}" --find_secrets 2>&1 )"
|
|
|
|
_out="$(set -x; ../bin/update_sops.sh -c "${PWD}" --find_secrets "${secrets_file}" 2>&1 )"
|
|
|
|
# re-enable strict
|
|
|
|
# re-enable strict
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
set +x
|
|
|
|
set +x
|
|
|
|
grep "${_tmp_mock_secrets_filepath}" <<< "${_out}"
|
|
|
|
grep "${_tmp_mock_secrets_filepath}" <<< "${_out}"
|
|
|
|
|
|
|
|
grep "${secrets_file}" <<< "${_out}"
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
# TEARDOWN
|
|
|
|
# TEARDOWN
|
|
|
|
rm -rf "${_tmp_mock_secrets_filepath}"
|
|
|
|
rm -rf "${_tmp_mock_secrets_filepath}"
|
|
|
|
|