X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fcrypto;fp=test%2Fcrypto;h=02516430999c31feac5c22250f4ab6ff93a6e44b;hp=21a601391b4b4b4c872c5bb4a0e932f4edd399df;hb=54045197498f540b4ba96344073994bac13a3039;hpb=1d6b49561f50d6cde1b473f9887e37748e49c02c diff --git a/test/crypto b/test/crypto index 21a60139..02516430 100755 --- a/test/crypto +++ b/test/crypto @@ -57,8 +57,12 @@ expected='[[[{"id": "XXXXX", "sigstatus": [{"status": "good", "fingerprint": "'$FINGERPRINT'", "created": 946728000}], + "content-type": "multipart/signed", + "content": [{"id": 2, "content-type": "text/plain", - "content": "This is a test signed message.\n"}]}, + "content": "This is a test signed message.\n"}, + {"id": 3, + "content-type": "application/pgp-signature"}]}]}, []]]]' test_expect_equal \ "$output" \ @@ -88,8 +92,12 @@ expected='[[[{"id": "XXXXX", "fingerprint": "'$FINGERPRINT'", "created": 946728000, "userid": " Notmuch Test Suite (INSECURE!)"}], + "content-type": "multipart/signed", + "content": [{"id": 2, "content-type": "text/plain", - "content": "This is a test signed message.\n"}]}, + "content": "This is a test signed message.\n"}, + {"id": 3, + "content-type": "application/pgp-signature"}]}]}, []]]]' test_expect_equal \ "$output" \ @@ -117,8 +125,12 @@ expected='[[[{"id": "XXXXX", "sigstatus": [{"status": "error", "keyid": "'$(echo $FINGERPRINT | cut -c 25-)'", "errors": 2}], + "content-type": "multipart/signed", + "content": [{"id": 2, "content-type": "text/plain", - "content": "This is a test signed message.\n"}]}, + "content": "This is a test signed message.\n"}, + {"id": 3, + "content-type": "application/pgp-signature"}]}]}, []]]]' test_expect_equal \ "$output" \ @@ -320,8 +332,12 @@ expected='[[[{"id": "XXXXX", "sigstatus": [{"status": "error", "keyid": "6D92612D94E46381", "errors": 8}], + "content-type": "multipart/signed", + "content": [{"id": 2, "content-type": "text/plain", - "content": "This is a test signed message.\n"}]}, + "content": "This is a test signed message.\n"}, + {"id": 3, + "content-type": "application/pgp-signature"}]}]}, []]]]' test_expect_equal \ "$output" \