]> git.notmuchmail.org Git - notmuch/commit
test/crypto: add_gnupg_home should have ultimate trust on "its own" key
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 4 May 2019 21:33:28 +0000 (17:33 -0400)
committerDavid Bremner <david@tethera.net>
Tue, 7 May 2019 09:42:21 +0000 (06:42 -0300)
commit7d48604157477054624d010fca496f7eb0d1168b
tree26d814c0953817aaa69f8ab50663e4a208adee16
parent93e699e5c86bb93b2992f4ab3a15680824b7ee2d
test/crypto: add_gnupg_home should have ultimate trust on "its own" key

The typical use case for gpg is that if you control a secret key, you
mark it with "ultimate" ownertrust.

The opaque --import-ownertrust mechanism is GnuPG's standard mechanism
to set up ultimate ownertrust (the ":6:" means "ultimate", for
whatever reason).

We adjust the test suite to match this change, inverting the sense of
one test: since the default is now that the user ID of the suite's own
key is valid, we change the test to make sure that the user ID is not
emitted when it is *not* valid.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
test/T350-crypto.sh
test/test-lib.sh