tests: webfinger: test quering a JSON response for activitypub actor URI

This commit is contained in:
William Pitcock 2018-03-21 19:23:09 +00:00
commit ff7afc0465
3 changed files with 40 additions and 26 deletions

View file

@ -28,7 +28,7 @@ defmodule Pleroma.Web.WebFingerTest do
end
describe "fingering" do
test "returns the info for a user" do
test "returns the info for an OStatus user" do
user = "shp@social.heldscal.la"
{:ok, data} = WebFinger.finger(user)
@ -39,6 +39,12 @@ defmodule Pleroma.Web.WebFingerTest do
assert data["salmon"] == "https://social.heldscal.la/main/salmon/user/29191"
end
test "returns the ActivityPub actor URI for an ActivityPub user" do
user = "framasoft@framatube.org"
{:ok, _data} = WebFinger.finger(user)
end
test "it works for friendica" do
user = "lain@squeet.me"