summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/util_controller_test.exs
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2019-04-22 07:19:53 +0000
committerkaniini <nenolod@gmail.com>2019-04-22 07:19:53 +0000
commit88f0be96933c287b99469edcfb6483cc91fa73c8 (patch)
tree3f87cabddf373b61a33b901fe4084414e21f2977 /test/web/twitter_api/util_controller_test.exs
parent7fcbda702e76b6390076c28832f5aea80086d15a (diff)
downloadpleroma-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.exs6
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