Update TestWebFinger to check for ActivityPub IRI in aliases
This commit is contained in:
parent
5823d8150a
commit
d91c61f8fa
|
@ -52,7 +52,7 @@ func TestWebfinger(t *testing.T) {
|
|||
var jrd webfingerJRD
|
||||
DecodeJSON(t, resp, &jrd)
|
||||
assert.Equal(t, "acct:user2@"+appURL.Host, jrd.Subject)
|
||||
assert.ElementsMatch(t, []string{user.HTMLURL()}, jrd.Aliases)
|
||||
assert.ElementsMatch(t, []string{user.HTMLURL(), appURL.String()+"api/v1/activitypub/user/"+user.Name}, jrd.Aliases)
|
||||
|
||||
req = NewRequest(t, "GET", fmt.Sprintf("/.well-known/webfinger?resource=acct:%s@%s", user.LowerName, "unknown.host"))
|
||||
MakeRequest(t, req, http.StatusBadRequest)
|
||||
|
|
Loading…
Reference in New Issue