Commit 4762e42e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch '36614-test-sidekiq_metrics-api' into 'master'

Resolve "Test sidekiq_metrics API"

Closes #36614

See merge request gitlab-org/gitlab!20281
parents 4fd474d2 31572463
......@@ -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