Skip to content

Commit

Permalink
Use the key of release@mozilla.com for the unit test (getsops#882) (g…
Browse files Browse the repository at this point in the history
…etsops#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.

Signed-off-by: Carsten Skov <carsten@simcax.dk>
  • Loading branch information
ikedam authored and simcax committed Sep 23, 2023
1 parent aed5096 commit 8e48c37
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 8e48c37

Please sign in to comment.