1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Select redis_version key as expected by dashboard and remove nonexistent key redis_stats

This commit is contained in:
rafaeldx7 2014-05-09 20:03:50 -03:00
parent f67f1cbcf0
commit 2b8662b7b4
2 changed files with 5 additions and 1 deletions

View file

@ -223,7 +223,7 @@ module Sidekiq
erb :dashboard
end
REDIS_KEYS = %w(redis_stats uptime_in_days connected_clients used_memory_human used_memory_peak_human)
REDIS_KEYS = %w(redis_version uptime_in_days connected_clients used_memory_human used_memory_peak_human)
get '/dashboard/stats' do
sidekiq_stats = Sidekiq::Stats.new

View file

@ -378,6 +378,10 @@ class TestWeb < Sidekiq::Test
assert_includes @response.keys, "redis"
end
it 'reports version' do
assert_includes @response["redis"].keys, "redis_version"
end
it 'reports uptime' do
assert_includes @response["redis"].keys, "uptime_in_days"
end