Commit 31572463 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Add more tests to sidekiq metrics API

parent 1cecd5ab
......@@ -25,6 +25,10 @@ describe API::SidekiqMetrics do
expect(response).to have_gitlab_http_status(200)
expect(json_response).to be_a Hash
expect(json_response['jobs']).to be_a Hash
expect(json_response['jobs'].keys)
.to contain_exactly(*%w[processed failed enqueued dead])
expect(json_response['jobs'].values).to all(be_an(Integer))
end
it 'defines the `compound_metrics` endpoint' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment