diff options
author | Timo Weingärtner <timo@tiwe.de> | 2018-11-24 00:10:49 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2018-11-24 00:10:49 +0100 |
commit | b711fb391beeff78c1b5b29a7342acfd8545fe97 (patch) | |
tree | fd2c96ce4ce00cbaaca99417d5a70ee9d625fe4f /tests | |
parent | 0bd40a8a39d3130a777f7ee0fdf144836bbf387a (diff) | |
parent | 6036ef52c956d8de14279b6f160ece60ae596eae (diff) | |
download | ssh-agent-filter-b711fb391beeff78c1b5b29a7342acfd8545fe97.tar.gz |
Merge tag '0.5.2' into debian
0.5.2
Diffstat (limited to 'tests')
-rwxr-xr-x | tests | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -57,19 +57,18 @@ produce_filtered_list () ( test_list_filter () { reference_out=$(ssh-add -L | grep ' key0$') - # sanity check: unfiltered shold be different from filtered - assertNotSame "$reference_out" "$(ssh-add -L)" + assertNotSame "sanity check: unfiltered shold be different from filtered" "$reference_out" "$(ssh-add -L)" - assertSame "$reference_out" "$(produce_filtered_list --comment key0)" - assertSame "$reference_out" "$(produce_filtered_list --comment-confirmed key0)" + assertSame "by comment" "$reference_out" "$(produce_filtered_list --comment key0)" + assertSame "by comment, confirmed" "$reference_out" "$(produce_filtered_list --comment-confirmed key0)" key0_md5=$(cut -d\ -f2 "$SHUNIT_TMPDIR/key0.pub" | base64 -d | md5sum - | cut -d\ -f1) - assertSame "$reference_out" "$(produce_filtered_list --fingerprint "$key0_md5")" - assertSame "$reference_out" "$(produce_filtered_list --fingerprint-confirmed "$key0_md5")" + assertSame "by md5 fingerprint" "$reference_out" "$(produce_filtered_list --fingerprint "$key0_md5")" + assertSame "by md5 fingerprint, confirmed" "$reference_out" "$(produce_filtered_list --fingerprint-confirmed "$key0_md5")" key0_base64=$(cut -d\ -f2 "$SHUNIT_TMPDIR/key0.pub") - assertSame "$reference_out" "$(produce_filtered_list --key "$key0_base64")" - assertSame "$reference_out" "$(produce_filtered_list --key-confirmed "$key0_base64")" + assertSame "by base64 encoded key" "$reference_out" "$(produce_filtered_list --key "$key0_base64")" + assertSame "by base64 encoded key, confirmed" "$reference_out" "$(produce_filtered_list --key-confirmed "$key0_base64")" } sign_key_with_key_filtered () ( |