Update NodeInfo support to 2.1 (#79)
This commit is contained in:
committed by
Thomas Citharel
parent
77d766c143
commit
a2c181f7fe
@@ -13,16 +13,16 @@ defmodule MobilizonWeb.NodeInfoControllerTest do
|
||||
MobilizonWeb.Router.Helpers.node_info_url(
|
||||
MobilizonWeb.Endpoint,
|
||||
:nodeinfo,
|
||||
"2.0"
|
||||
"2.1"
|
||||
),
|
||||
"rel" => "http://nodeinfo.diaspora.software/ns/schema/2.0"
|
||||
"rel" => "http://nodeinfo.diaspora.software/ns/schema/2.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
end
|
||||
|
||||
test "Get node info", %{conn: conn} do
|
||||
conn = get(conn, node_info_path(conn, :nodeinfo, "2.0"))
|
||||
conn = get(conn, node_info_path(conn, :nodeinfo, "2.1"))
|
||||
|
||||
resp = json_response(conn, 200)
|
||||
|
||||
@@ -31,9 +31,13 @@ defmodule MobilizonWeb.NodeInfoControllerTest do
|
||||
"openRegistrations" => Keyword.get(@instance, :registrations_open),
|
||||
"protocols" => ["activitypub"],
|
||||
"services" => %{"inbound" => [], "outbound" => []},
|
||||
"software" => %{"name" => "mobilizon", "version" => Keyword.get(@instance, :version)},
|
||||
"software" => %{
|
||||
"name" => "mobilizon",
|
||||
"version" => Keyword.get(@instance, :version),
|
||||
"repository" => Keyword.get(@instance, :repository)
|
||||
},
|
||||
"usage" => %{"localComments" => 0, "localPosts" => 0, "users" => %{"total" => 0}},
|
||||
"version" => "2.0"
|
||||
"version" => "2.1"
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user