Rename pkey to pubKey

This commit is contained in:
Anthony Wang 2022-06-13 20:51:49 -05:00
parent 3e9a69c8d3
commit d749f8ff4f
No known key found for this signature in database
GPG key ID: BC96B00AEC5F2D76
2 changed files with 9 additions and 9 deletions

View file

@ -44,12 +44,12 @@ func TestActivityPubPerson(t *testing.T) {
assert.Regexp(t, fmt.Sprintf("activitypub/user/%s/outbox$", username), person.Outbox.GetID().String())
assert.Regexp(t, fmt.Sprintf("activitypub/user/%s/inbox$", username), person.Inbox.GetID().String())
pkey := person.PublicKey
assert.NotNil(t, pkey)
pubKey := person.PublicKey
assert.NotNil(t, pubKey)
publicKeyID := keyID + "#main-key"
assert.Equal(t, pkey.ID.String(), publicKeyID)
assert.Equal(t, pubKey.ID.String(), publicKeyID)
pubKeyPem := pkey.PublicKeyPem
pubKeyPem := pubKey.PublicKeyPem
assert.NotNil(t, pubKeyPem)
assert.Regexp(t, "^-----BEGIN PUBLIC KEY-----", pubKeyPem)
})