summaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-03-21 19:23:09 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-03-22 00:36:13 -0500
commitff7afc04654e4306f84f469634590a25831e997f (patch)
tree6710f6bf49e6a4ac71016b4dc67ea39647e38d69 /test/web
parent4d3af2af713d37363eed3ec81334b6c37c0407ed (diff)
downloadpleroma-ff7afc04654e4306f84f469634590a25831e997f.tar.gz
pleroma-ff7afc04654e4306f84f469634590a25831e997f.zip
tests: webfinger: test quering a JSON response for activitypub actor URI
Diffstat (limited to 'test/web')
-rw-r--r--test/web/web_finger/web_finger_test.exs8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/web/web_finger/web_finger_test.exs b/test/web/web_finger/web_finger_test.exs
index 0be424c7a..ff60391fd 100644
--- a/test/web/web_finger/web_finger_test.exs
+++ b/test/web/web_finger/web_finger_test.exs
@@ -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"