You need to sign in or sign up before continuing.
Test sidekiq_metrics API
Adding things like the following:
diff --git a/spec/requests/api/sidekiq_metrics_spec.rb b/spec/requests/api/sidekiq_metrics_spec.rb
index d6f0f48d288..fea98339954 100644
--- a/spec/requests/api/sidekiq_metrics_spec.rb
+++ b/spec/requests/api/sidekiq_metrics_spec.rb
@@ -25,6 +25,9 @@ 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])
end
it 'defines the `compound_metrics` endpoint' do
The following discussion from !19350 (merged) should be addressed:
-
@godfat started a discussion: (+5 comments) This is a reminder that please update
spec/requests/api/sidekiq_metrics_spec.rb
to test the keys and values.