diff options
author | Colin Walters <walters@verbum.org> | 2020-06-16 13:18:07 +0000 |
---|---|---|
committer | Denis Pynkin <denis.pynkin@collabora.com> | 2020-06-16 18:20:54 +0300 |
commit | 1f3c8c5b3de978f6e069c24938967f823cce7ee8 (patch) | |
tree | ed6ee9422e086f6233f2cc4b8a4e3628adecb439 /tests/test-signed-pull-summary.sh | |
parent | fa70ab417b81691135f329d69c3335f4119dda0e (diff) | |
download | ostree-1f3c8c5b3de978f6e069c24938967f823cce7ee8.tar.gz |
sign/ed25519: Output failed signatures in error message
To aid debuggability, when we find a commit that isn't signed
by our expected key, output a specific error message with the
key.
(And then add code to switch to just printing the count beyond 3
because the test suite injects 100 keys and hopefully no one
ever actually does that)
Diffstat (limited to 'tests/test-signed-pull-summary.sh')
-rwxr-xr-x | tests/test-signed-pull-summary.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-signed-pull-summary.sh b/tests/test-signed-pull-summary.sh index 6a240635..e953f2ea 100755 --- a/tests/test-signed-pull-summary.sh +++ b/tests/test-signed-pull-summary.sh @@ -226,7 +226,7 @@ cp ${test_tmpdir}/ostree-srv/gnomerepo/summary.sig{.2,} if ${OSTREE} --repo=repo pull origin main 2>err.txt; then assert_not_reached "Successful pull with old summary" fi -assert_file_has_content err.txt "no valid ed25519 signatures found" +assert_file_has_content err.txt "ed25519: Signature couldn't be verified with: key" assert_has_file repo/tmp/cache/summaries/origin assert_has_file repo/tmp/cache/summaries/origin.sig cmp repo/tmp/cache/summaries/origin ${test_tmpdir}/ostree-srv/gnomerepo/summary.1 >&2 |