X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT350-crypto.sh;h=f31cd3d7be36ab64941c2d0b26880e55203eb955;hb=93e699e5c86bb93b2992f4ab3a15680824b7ee2d;hp=6045a7dc3d0b764c4546531174db13456d35b084;hpb=6682b4e686b7972883626c9b0f941ae4bf02dedb;p=notmuch diff --git a/test/T350-crypto.sh b/test/T350-crypto.sh index 6045a7dc..f31cd3d7 100755 --- a/test/T350-crypto.sh +++ b/test/T350-crypto.sh @@ -135,8 +135,9 @@ test_expect_equal_json \ "$output" \ "$expected" -test_begin_subtest "signature verification with full owner trust" -# give the key full owner trust +test_begin_subtest "signature verification with full user ID validity" +# give the key ultimate owner trust, which confers full validity on +# all user IDs in the certificate: echo "${FINGERPRINT}:6:" | gpg --no-tty --import-ownertrust >>"$GNUPGHOME"/trust.log 2>&1 gpg --no-tty --check-trustdb >>"$GNUPGHOME"/trust.log 2>&1 output=$(notmuch show --format=json --verify subject:"test signed message 001" \ @@ -157,7 +158,7 @@ expected='[[[{"id": "XXXXX", "sigstatus": [{"status": "good", "fingerprint": "'$FINGERPRINT'", "created": 946728000, - "userid": "Notmuch Test Suite (INSECURE!)"}], + "userid": "'"$SELF_USERID"'"}], "content-type": "multipart/signed", "content": [{"id": 2, "content-type": "text/plain", @@ -365,7 +366,7 @@ expected='[[[{"id": "XXXXX", "sigstatus": [{"status": "good", "fingerprint": "'$FINGERPRINT'", "created": 946728000, - "userid": "Notmuch Test Suite (INSECURE!)"}], + "userid": "'"$SELF_USERID"'"}], "content-type": "multipart/encrypted", "content": [{"id": 2, "content-type": "application/pgp-encrypted",