From 664ad8e38fd0f077e1fba5e69325fb3a36a75e19 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Sun, 18 Apr 2021 00:03:31 +0200 Subject: add a test for cert signature dissection --- tests | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3