diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2019-04-22 07:19:53 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-04-22 07:19:53 +0000 |
commit | 88f0be96933c287b99469edcfb6483cc91fa73c8 (patch) | |
tree | 3f87cabddf373b61a33b901fe4084414e21f2977 /test/web/twitter_api/util_controller_test.exs | |
parent | 7fcbda702e76b6390076c28832f5aea80086d15a (diff) | |
download | pleroma-88f0be96933c287b99469edcfb6483cc91fa73c8.tar.gz pleroma-88f0be96933c287b99469edcfb6483cc91fa73c8.zip |
Feature/826 healthcheck endpoint
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r-- | test/web/twitter_api/util_controller_test.exs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs index c58b49ea4..56474447b 100644 --- a/test/web/twitter_api/util_controller_test.exs +++ b/test/web/twitter_api/util_controller_test.exs @@ -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 |