diff options
author | rinpatch <rinpatch@sdf.org> | 2019-01-13 13:38:28 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-01-13 13:38:28 +0300 |
commit | e4dc3f71aea900e566c0d66ddffc5cd57e3920dd (patch) | |
tree | d0b0edfd3c7aa4c2015b0b461a4c40895e16eba9 /test/web/node_info_test.exs | |
parent | 9a6236e69d2709c0df374574fd77c4b2bc3d68fb (diff) | |
parent | 19b6a8239387869c69c6885044ee488d097b723f (diff) | |
download | pleroma-e4dc3f71aea900e566c0d66ddffc5cd57e3920dd.tar.gz pleroma-e4dc3f71aea900e566c0d66ddffc5cd57e3920dd.zip |
Resolve merge conflict
Diffstat (limited to 'test/web/node_info_test.exs')
-rw-r--r-- | test/web/node_info_test.exs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/web/node_info_test.exs b/test/web/node_info_test.exs index a5b0b7869..5981c70a7 100644 --- a/test/web/node_info_test.exs +++ b/test/web/node_info_test.exs @@ -1,3 +1,7 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + defmodule Pleroma.Web.NodeInfoTest do use Pleroma.Web.ConnCase @@ -15,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) |