summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-02-24 13:06:53 +0100
committerlain <lain@soykaf.club>2018-02-24 13:06:53 +0100
commitfb02300234f547363242f0a768b6d35e7a1a87be (patch)
tree7411911388da2d30f5ef6873ffb69dedc9964e8b /test
parent9a4d400ff4d2c5c860bcb6582db01879cafd7467 (diff)
downloadpleroma-fb02300234f547363242f0a768b6d35e7a1a87be.tar.gz
pleroma-fb02300234f547363242f0a768b6d35e7a1a87be.zip
Pleroma AP detection mechanism.
Diffstat (limited to 'test')
-rw-r--r--test/web/ostatus/ostatus_test.exs6
-rw-r--r--test/web/ostatus/user_representer_test.exs1
2 files changed, 5 insertions, 2 deletions
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs
index 1dd381ac4..bb995199c 100644
--- a/test/web/ostatus/ostatus_test.exs
+++ b/test/web/ostatus/ostatus_test.exs
@@ -306,7 +306,8 @@ defmodule Pleroma.Web.OStatusTest do
"fqn" => user,
"bio" => "cofe",
"avatar" => %{"type" => "Image", "url" => [%{"href" => "https://social.heldscal.la/avatar/29191-original-20170421154949.jpeg", "mediaType" => "image/jpeg", "type" => "Link"}]},
- "subscribe_address" => "https://social.heldscal.la/main/ostatussub?profile={uri}"
+ "subscribe_address" => "https://social.heldscal.la/main/ostatussub?profile={uri}",
+ "ap_id" => nil
}
assert data == expected
end
@@ -330,7 +331,8 @@ defmodule Pleroma.Web.OStatusTest do
"fqn" => user,
"bio" => "cofe",
"avatar" => %{"type" => "Image", "url" => [%{"href" => "https://social.heldscal.la/avatar/29191-original-20170421154949.jpeg", "mediaType" => "image/jpeg", "type" => "Link"}]},
- "subscribe_address" => "https://social.heldscal.la/main/ostatussub?profile={uri}"
+ "subscribe_address" => "https://social.heldscal.la/main/ostatussub?profile={uri}",
+ "ap_id" => nil
}
assert data == expected
end
diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs
index b22420379..e41dfeb3d 100644
--- a/test/web/ostatus/user_representer_test.exs
+++ b/test/web/ostatus/user_representer_test.exs
@@ -22,6 +22,7 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do
<name>#{user.nickname}</name>
<link rel="avatar" href="#{User.avatar_url(user)}" />
<link rel="header" href="#{User.banner_url(user)}" />
+ <ap_enabled>true</ap_enabled>
"""
assert clean(res) == clean(expected)