From 3034c7e6aa99d21c3d9fa1df01f60fdd3f32d914 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 31 Aug 2022 12:13:01 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/controllers/search_controller_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'spec/controllers') diff --git a/spec/controllers/search_controller_spec.rb b/spec/controllers/search_controller_spec.rb index 14b198dbefe..0b8e6a6b6a2 100644 --- a/spec/controllers/search_controller_spec.rb +++ b/spec/controllers/search_controller_spec.rb @@ -270,6 +270,17 @@ RSpec.describe SearchController do get(:show, params: { search: 'foo@bar.com', scope: 'users' }) end end + + it 'increments the custom search sli apdex' do + expect(Gitlab::Metrics::GlobalSearchSlis).to receive(:record_apdex).with( + elapsed: a_kind_of(Numeric), + search_scope: 'issues', + search_type: 'basic', + search_level: 'global' + ) + + get :show, params: { scope: 'issues', search: 'hello world' } + end end describe 'GET #count', :aggregate_failures do -- cgit v1.2.3