Skip to content

Commit

Permalink
Merge pull request #748 from alphagov/route-new-redis-healthcheck
Browse files Browse the repository at this point in the history
Add route for new Redis Healthcheck
  • Loading branch information
callumknights committed Jan 14, 2021
2 parents cf50ebd + fe8c64a commit 7f77728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

get "/healthcheck", to: GovukHealthcheck.rack_response(
GovukHealthcheck::ActiveRecord,
GovukHealthcheck::SidekiqRedis,
GovukHealthcheck::Redis,
)

resources "local_authorities", only: %i[index show], param: :local_authority_slug do
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/healthcheck_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
it "returns redis connections status" do
json = JSON.parse(response.body)

expect(json["checks"]).to include("redis_connectivity")
expect(json["checks"]).to include("redis")
end
end

0 comments on commit 7f77728

Please sign in to comment.