diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-21 00:07:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-21 00:07:30 +0300 |
commit | 5d7e5a8902382caaffa616e1b496b684ba72d148 (patch) | |
tree | 30d755b056cdd521071b0b23ce8c5823ad18e355 /spec/services | |
parent | cc4e1c884cd6b8782fb6a247d840a2d1c7f4603e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/web_hook_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/web_hook_service_spec.rb b/spec/services/web_hook_service_spec.rb index a756e75214b..4b925a058e7 100644 --- a/spec/services/web_hook_service_spec.rb +++ b/spec/services/web_hook_service_spec.rb @@ -606,7 +606,7 @@ RSpec.describe WebHookService, :request_store, :clean_gitlab_redis_shared_state def expect_to_rate_limit(hook, threshold:, throttled: false) expect(Gitlab::ApplicationRateLimiter).to receive(:throttled?) - .with(:web_hook_calls_high, scope: [hook.parent.root_namespace], threshold: threshold) + .with(:web_hook_calls, scope: [hook.parent.root_namespace], threshold: threshold) .and_return(throttled) end @@ -621,7 +621,7 @@ RSpec.describe WebHookService, :request_store, :clean_gitlab_redis_shared_state context 'when rate limiting is configured' do let_it_be(:threshold) { 3 } - let_it_be(:plan_limits) { create(:plan_limits, :default_plan, web_hook_calls_high: threshold) } + let_it_be(:plan_limits) { create(:plan_limits, :default_plan, web_hook_calls: threshold) } it 'queues a worker and tracks the call' do expect_to_rate_limit(project_hook, threshold: threshold) |