Move /#main-key to #main-key in tests

This commit is contained in:
Anthony Wang 2022-04-13 21:34:12 -05:00
parent 7931e210e5
commit 702a963308
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76

View File

@ -53,7 +53,7 @@ func TestActivityPubPerson(t *testing.T) {
pkp := person.GetW3IDSecurityV1PublicKey()
assert.NotNil(t, pkp)
publicKeyID := keyID + "/#main-key"
publicKeyID := keyID + "#main-key"
var pkpFound vocab.W3IDSecurityV1PublicKey
for pkpIter := pkp.Begin(); pkpIter != pkp.End(); pkpIter = pkpIter.Next() {
if !pkpIter.IsW3IDSecurityV1PublicKey() {
@ -113,7 +113,7 @@ func TestActivityPubPersonInbox(t *testing.T) {
username1 := "user1"
user1, err := user_model.GetUserByName(username1)
assert.NoError(t, err)
user1url := fmt.Sprintf("%s/api/v1/activitypub/user/%s/#main-key", srv.URL, username1)
user1url := fmt.Sprintf("%s/api/v1/activitypub/user/%s#main-key", srv.URL, username1)
c, err := activitypub.NewClient(user1, user1url)
assert.NoError(t, err)
username2 := "user2"