Add basic server status page at /status.

Lists versions of various dependencies plus some Postgres and Redis
metrics.
This commit is contained in:
evazion
2020-12-17 03:05:27 -06:00
parent ee4516f5fe
commit 7a87225ac8
5 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
require 'test_helper'
class StatusControllerTest < ActionDispatch::IntegrationTest
context "The status controller" do
should "work for a html response" do
get status_path
assert_response :success
end
should "work for a json response" do
get status_path(format: :json)
assert_response :success
end
should "work for an xml response" do
get status_path(format: :json)
assert_response :success
end
end
end