Skip to content

Commit

Permalink
Use the key of release@mozilla.com for the unit test (#882) (#906)
Browse files Browse the repository at this point in the history
* `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.
  • Loading branch information
ikedam committed Jul 24, 2021
1 parent 5af8e63 commit 6130ffe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pgp/keysource_test.go
Expand Up @@ -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)
}

0 comments on commit 6130ffe

Please sign in to comment.