aboutsummaryrefslogtreecommitdiff
path: root/test/T350-crypto.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2016-09-12 22:45:57 -0300
committerDavid Bremner <david@tethera.net>2016-09-18 10:56:54 -0300
commit653c5ee2217adf4007bf76d2067948f6c603ae59 (patch)
tree6d06b30dd594e6cc49dfe871039713d52aa0978e /test/T350-crypto.sh
parent87119b130bf7ec48181a33cd411f566d0234fc19 (diff)
test/crypto: test reply to encrypted message in emacs
This test considers the extra output about encryption/signature status as a bug, to be fixed in the next commit
Diffstat (limited to 'test/T350-crypto.sh')
-rwxr-xr-xtest/T350-crypto.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/T350-crypto.sh b/test/T350-crypto.sh
index 96349fa0..8e298979 100755
--- a/test/T350-crypto.sh
+++ b/test/T350-crypto.sh
@@ -316,6 +316,26 @@ test_expect_equal \
"$output" \
"$expected"
+test_begin_subtest "Reply within emacs to an encrypted message"
+test_subtest_known_broken
+test_emacs "(let ((message-hidden-headers '())
+ (notmuch-crypto-process-mime 't))
+ (notmuch-show \"subject:test.encrypted.message.002\")
+ (notmuch-show-reply)
+ (test-output))"
+# the empty To: is probably a bug, but it's not to do with encryption
+grep -v -e '^In-Reply-To:' -e '^References:' -e '^Fcc:' -e 'To:' < OUTPUT > OUTPUT.clean
+cat <<EOF >EXPECTED
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+Subject: Re: test encrypted message 002
+--text follows this line--
+<#secure method=pgpmime mode=signencrypt>
+Notmuch Test Suite <test_suite@notmuchmail.org> writes:
+
+> This is another test encrypted message.
+EOF
+test_expect_equal_file EXPECTED OUTPUT.clean
+
test_begin_subtest "signature verification with revoked key"
# generate revocation certificate and load it to revoke key
echo "y