diff options
| author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-05-06 13:43:27 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2019-05-10 06:54:50 -0300 |
| commit | e1c8357c441d4e70fb28838dead5a490f4663b87 (patch) | |
| tree | 9512e8f389a94e439ff09b2b4307eb20df4796d8 /test/T357-index-decryption.sh | |
| parent | eeff4319960d88e60c202dac4047913262d67d85 (diff) | |
emacs: test notmuch-show during message decryption
We did not have a test showing what message decryption looks like
within notmuch-emacs. This change gives us a baseline for future work
on the notmuch-emacs interface.
This differs from previous revisions of this patch in that it should
be insensitive to the order in which the local filesystem readdir()s
the underlying maildir.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'test/T357-index-decryption.sh')
| -rwxr-xr-x | test/T357-index-decryption.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/T357-index-decryption.sh b/test/T357-index-decryption.sh index 0a602e50..c9cd5e30 100755 --- a/test/T357-index-decryption.sh +++ b/test/T357-index-decryption.sh @@ -224,10 +224,11 @@ add_email_corpus crypto test_begin_subtest "indexing message fails when secret key not available" notmuch reindex --decrypt=true id:simple-encrypted@crypto.notmuchmail.org -output=$(notmuch dump ) -expected='#notmuch-dump batch-tag:3 config,properties,tags -+encrypted +inbox +unread -- id:simple-encrypted@crypto.notmuchmail.org -#= simple-encrypted@crypto.notmuchmail.org index.decryption=failure' +output=$(notmuch dump | LC_ALL=C sort) +expected='#= simple-encrypted@crypto.notmuchmail.org index.decryption=failure +#notmuch-dump batch-tag:3 config,properties,tags ++encrypted +inbox +unread -- id:basic-encrypted@crypto.notmuchmail.org ++encrypted +inbox +unread -- id:simple-encrypted@crypto.notmuchmail.org' test_expect_equal \ "$output" \ "$expected" @@ -245,8 +246,8 @@ notmuch restore <<EOF #= simple-encrypted@crypto.notmuchmail.org session-key=9%3AFC09987F5F927CC0CC0EE80A96E4C5BBF4A499818FB591207705DFDDD6112CF9 EOF notmuch reindex id:simple-encrypted@crypto.notmuchmail.org -output=$(notmuch search sekrit) -expected='thread:0000000000000001 2016-12-22 [1/1] Daniel Kahn Gillmor; encrypted message (encrypted inbox unread)' +output=$(notmuch search sekrit | notmuch_search_sanitize) +expected='thread:XXX 2016-12-22 [1/1] Daniel Kahn Gillmor; encrypted message (encrypted inbox unread)' test_expect_equal \ "$output" \ "$expected" |
