forked from AkkomaGang/akkoma
Add test for subscribe_address in JSON WebFinger response
This commit is contained in:
parent
83cd7f2b5f
commit
509f82e4d6
1 changed files with 2 additions and 1 deletions
|
@ -56,12 +56,13 @@ test "returns the ActivityPub actor URI for an ActivityPub user" do
|
||||||
{:ok, _data} = WebFinger.finger(user)
|
{:ok, _data} = WebFinger.finger(user)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "returns the ActivityPub actor URI for an ActivityPub user with the ld+json mimetype" do
|
test "returns the ActivityPub actor URI and subscribe address for an ActivityPub user with the ld+json mimetype" do
|
||||||
user = "kaniini@gerzilla.de"
|
user = "kaniini@gerzilla.de"
|
||||||
|
|
||||||
{:ok, data} = WebFinger.finger(user)
|
{:ok, data} = WebFinger.finger(user)
|
||||||
|
|
||||||
assert data["ap_id"] == "https://gerzilla.de/channel/kaniini"
|
assert data["ap_id"] == "https://gerzilla.de/channel/kaniini"
|
||||||
|
assert data["subscribe_address"] == "https://gerzilla.de/follow?f=&url={uri}"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it work for AP-only user" do
|
test "it work for AP-only user" do
|
||||||
|
|
Loading…
Reference in a new issue