Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/api/sidekiq_metrics_spec.rb')
-rw-r--r--spec/requests/api/sidekiq_metrics_spec.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/spec/requests/api/sidekiq_metrics_spec.rb b/spec/requests/api/sidekiq_metrics_spec.rb
index 23ac2ea5c0b..302d824e650 100644
--- a/spec/requests/api/sidekiq_metrics_spec.rb
+++ b/spec/requests/api/sidekiq_metrics_spec.rb
@@ -10,7 +10,18 @@ RSpec.describe API::SidekiqMetrics do
get api('/sidekiq/queue_metrics', admin)
expect(response).to have_gitlab_http_status(:ok)
- expect(json_response).to be_a Hash
+ expect(json_response).to match a_hash_including(
+ 'queues' => a_hash_including(
+ 'default' => {
+ 'backlog' => be_a(Integer),
+ 'latency' => be_a(Integer)
+ },
+ 'mailers' => {
+ 'backlog' => be_a(Integer),
+ 'latency' => be_a(Integer)
+ }
+ )
+ )
end
it 'defines the `process_metrics` endpoint' do