Feature/826 healthcheck endpoint

This commit is contained in:
Alexander Strizhakov 2019-04-22 07:19:53 +00:00 committed by kaniini
commit 88f0be9693
7 changed files with 120 additions and 0 deletions

View file

@ -245,4 +245,10 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
assert html_response(response, 200) =~ "Log in to follow"
end
end
test "GET /api/pleroma/healthcheck", %{conn: conn} do
conn = get(conn, "/api/pleroma/healthcheck")
assert conn.status in [200, 503]
end
end