aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2021-04-18 00:03:31 +0200
committerTimo Weingärtner <timo@tiwe.de>2026-03-07 18:51:10 +0100
commit664ad8e38fd0f077e1fba5e69325fb3a36a75e19 (patch)
treeb1d7259054503e43803008071b0cfda66992b31f
parentdf63d26366b39ad8eb1c1ba5876b57b6a15208ed (diff)
downloadssh-agent-filter-664ad8e38fd0f077e1fba5e69325fb3a36a75e19.tar.gz
add a test for cert signature dissection
-rwxr-xr-xtests3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests b/tests
index 0e7e1e7..d222e7e 100755
--- a/tests
+++ b/tests
@@ -97,7 +97,8 @@ test_confirmation () {
EOT
chmod +x "$SHUNIT_TMPDIR/sap"
assertTrue 'export SSH_ASKPASS="$SHUNIT_TMPDIR/sap"; sign_key_with_key_filtered key0 key1 --comment-confirmed key1'
- assertSame "Something behind the ssh-agent-filter requested use of the key named 'key1'." "$(head -n1 "$SHUNIT_TMPDIR/sap_out")"
+ assertSame "Something behind the ssh-agent-filter requested use of the key named 'key1'." "$(sed 1!d "$SHUNIT_TMPDIR/sap_out")"
+ assertSame "The request is for a certificate signature on key " "$(sed '2!d;s/AAAA.*$//' "$SHUNIT_TMPDIR/sap_out")"
}
. shunit2