diff options
| author | Timo Weingärtner <timo@tiwe.de> | 2021-04-18 00:03:31 +0200 |
|---|---|---|
| committer | Timo Weingärtner <timo@tiwe.de> | 2026-03-07 18:51:10 +0100 |
| commit | 664ad8e38fd0f077e1fba5e69325fb3a36a75e19 (patch) | |
| tree | b1d7259054503e43803008071b0cfda66992b31f | |
| parent | df63d26366b39ad8eb1c1ba5876b57b6a15208ed (diff) | |
| download | ssh-agent-filter-664ad8e38fd0f077e1fba5e69325fb3a36a75e19.tar.gz | |
add a test for cert signature dissection
| -rwxr-xr-x | tests | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
