summaryrefslogtreecommitdiff
path: root/test/web/node_info_test.exs
diff options
context:
space:
mode:
authorRin Toshaka <rinpatch@sdf.org>2018-12-30 21:00:40 +0100
committerRin Toshaka <rinpatch@sdf.org>2018-12-30 21:00:40 +0100
commitdec23500d8988c22a99f049ef1d1e49328ba075a (patch)
treea6e16c5fa60b02058b1ebd985f20ac8f0f4ffa5b /test/web/node_info_test.exs
parentab3089d6a718d4a70b0d702307d41e64e17bc505 (diff)
parentdfde2622d0c14195392e306fadc7c729c68da273 (diff)
downloadpleroma-dec23500d8988c22a99f049ef1d1e49328ba075a.tar.gz
pleroma-dec23500d8988c22a99f049ef1d1e49328ba075a.zip
Resolve merge conflict
Diffstat (limited to 'test/web/node_info_test.exs')
-rw-r--r--test/web/node_info_test.exs11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/web/node_info_test.exs b/test/web/node_info_test.exs
index 6769a4490..5981c70a7 100644
--- a/test/web/node_info_test.exs
+++ b/test/web/node_info_test.exs
@@ -19,6 +19,17 @@ defmodule Pleroma.Web.NodeInfoTest do
assert user.ap_id in result["metadata"]["staffAccounts"]
end
+ test "nodeinfo shows restricted nicknames", %{conn: conn} do
+ conn =
+ conn
+ |> get("/nodeinfo/2.0.json")
+
+ assert result = json_response(conn, 200)
+
+ assert Pleroma.Config.get([Pleroma.User, :restricted_nicknames]) ==
+ result["metadata"]["restrictedNicknames"]
+ end
+
test "returns 404 when federation is disabled", %{conn: conn} do
instance =
Application.get_env(:pleroma, :instance)