summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2024-09-06 16:30:07 +0000
committerfeld <feld@feld.me>2024-09-06 16:30:07 +0000
commitbb0cb06d8a3a9e97d3b39d712ee5a7147c25ee84 (patch)
treecf4c295c347ce163e1347f6dd690ade2fdac8885 /test
parent80f3e507d4cbddc8f1c0dc28752df0a38a83236e (diff)
parent4ae17c62944eab89acfa96a0912819093c872436 (diff)
downloadpleroma-bb0cb06d8a3a9e97d3b39d712ee5a7147c25ee84.tar.gz
pleroma-bb0cb06d8a3a9e97d3b39d712ee5a7147c25ee84.zip
Merge branch 'well-known' into 'develop'
NodeInfo: Accept application/activity+json requests See merge request pleroma/pleroma!4242
Diffstat (limited to 'test')
-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