[PATCH 14/20] test: show cryptographic envelope information for signed mails

David Bremner david at tethera.net
Fri Jun 29 04:38:30 PDT 2018


Daniel Kahn Gillmor <dkg at fifthhorseman.net> writes:

> +test_begin_subtest "show cryptographic envelope on signed mail"
> +output=$(notmuch show --verify --format=json id:simple-signed-mail at crypto.notmuchmail.org)
> +test_json_nodes <<<"$output" \
> +                'crypto:[0][0][0]["crypto"]={"signed": {"status": [{"created": 1525609971, "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381", "status": "good"}]}}'
> +
> +test_begin_subtest "verify signed protected header"
> +output=$(notmuch show --verify --format=json id:signed-protected-header at crypto.notmuchmail.org)
> +test_json_nodes <<<"$output" \
> +                'crypto:[0][0][0]["crypto"]={"signed": {"status": [{"created": 1525350527, "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381", "status": "good"}], "headers": ["Subject"]}}'
> +

If possible, it would be good to avoid hardcoding the fingerprint, to
minimize the number of places we have to change when e.g. gpg starts
reject our 1K test key.

d



More information about the notmuch mailing list