summaryrefslogtreecommitdiff
path: root/tests/test-pre-signed-pull.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2020-06-16 13:18:07 +0000
committerDenis Pynkin <denis.pynkin@collabora.com>2020-06-16 18:20:54 +0300
commit1f3c8c5b3de978f6e069c24938967f823cce7ee8 (patch)
treeed6ee9422e086f6233f2cc4b8a4e3628adecb439 /tests/test-pre-signed-pull.sh
parentfa70ab417b81691135f329d69c3335f4119dda0e (diff)
downloadostree-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-pre-signed-pull.sh')
-rwxr-xr-xtests/test-pre-signed-pull.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-pre-signed-pull.sh b/tests/test-pre-signed-pull.sh
index ae4e26f9..20f2b597 100755
--- a/tests/test-pre-signed-pull.sh
+++ b/tests/test-pre-signed-pull.sh
@@ -48,5 +48,5 @@ ostree --repo=repo remote add badupstream --set=gpg-verify=false --sign-verify=e
if ostree --repo=repo pull badupstream:testref 2>err.txt; then
fatal "pulled with wrong key"
fi
-assert_file_has_content err.txt 'error:.* no valid ed25519 signatures found'
+assert_file_has_content err.txt 'error:.* ed25519: Signature couldn.t be verified with: key'
echo "ok pre-signed pull"