Feature/826 healthcheck endpoint
[akkoma] / test / web / twitter_api / util_controller_test.exs
index c58b49ea4cad746c484a1befe66e459bfe6bd7f6..56474447b59cfa1cee948fffb39cb32829c48459 100644 (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