summaryrefslogtreecommitdiff
path: root/test/pleroma/web/node_info_test.exs
diff options
context:
space:
mode:
authormkljczk <git@mkljczk.pl>2025-02-17 17:36:02 +0100
committermkljczk <git@mkljczk.pl>2025-02-17 17:36:02 +0100
commitea01b5934f41a13f480221e554723f2b214d67e3 (patch)
tree631c5aa815ef8a133461e45437ff917149f23e0c /test/pleroma/web/node_info_test.exs
parent3e5517e7bb549d22258d2d7788ba52797648d6b7 (diff)
parenta1f4da7ae2ed5d063b3d146f223a96b9db9bb505 (diff)
downloadpleroma-ea01b5934f41a13f480221e554723f2b214d67e3.tar.gz
pleroma-ea01b5934f41a13f480221e554723f2b214d67e3.zip
Merge remote-tracking branch 'origin/develop' into post-languages
Diffstat (limited to 'test/pleroma/web/node_info_test.exs')
-rw-r--r--test/pleroma/web/node_info_test.exs13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pleroma/web/node_info_test.exs b/test/pleroma/web/node_info_test.exs
index f474220be..afe4ebb36 100644
--- a/test/pleroma/web/node_info_test.exs
+++ b/test/pleroma/web/node_info_test.exs
@@ -24,6 +24,19 @@ defmodule Pleroma.Web.NodeInfoTest do
|> get(href)
|> json_response(200)
end)
+
+ accept_types = [
+ "application/activity+json",
+ "application/json",
+ "application/jrd+json"
+ ]
+
+ for type <- accept_types do
+ conn
+ |> put_req_header("accept", type)
+ |> get("/.well-known/nodeinfo")
+ |> json_response(200)
+ end
end
test "nodeinfo shows staff accounts", %{conn: conn} do