From 6130ffe35c9ff34447a598317e633ff667acbabd Mon Sep 17 00:00:00 2001 From: ikedam Date: Sat, 24 Jul 2021 19:12:18 +0900 Subject: [PATCH] Use the key of release@mozilla.com for the unit test (#882) (#906) * `golang.org/x/crypto/openpgp` requires keys contain identity information. * A email address can have only a single key with identity information on keys.openpgp.org. --- pgp/keysource_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pgp/keysource_test.go b/pgp/keysource_test.go index 0c10996d1..1e66056bc 100644 --- a/pgp/keysource_test.go +++ b/pgp/keysource_test.go @@ -44,7 +44,10 @@ func TestPGPKeySourceFromString(t *testing.T) { } func TestRetrievePGPKey(t *testing.T) { - fingerprint := "FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4" + // Requires a key available in https://keys.openpgp.org/ *with identity information* (that is, an email address). + // See https://keys.openpgp.org/about/faq#verify-multiple for details about identity information. + // We use the key of release@mozilla.com for here. + fingerprint := "14F26682D0916CDD81E37B6D61B7B526D98F0353" _, err := getKeyFromKeyServer(fingerprint) assert.NoError(t, err) }