federation_status: Add ApiSpec

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-10-16 01:13:52 +02:00
commit aafdc975bd
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
3 changed files with 44 additions and 4 deletions

View file

@ -31,10 +31,8 @@ defmodule Pleroma.Web.PleromaApi.InstancesControllerTest do
assert conn
|> put_req_header("content-type", "application/json")
|> get("/api/v1/pleroma/federation_status")
|> json_response(200) == %{
|> json_response_and_validate_schema(200) == %{
"unreachable" => %{constant_host => to_string(constant_unreachable)}
}
# |> json_response_and_validate_schema(200)
end
end