Spec failure in `spec/controllers/projects/issues_controller_spec.rb` | Projects::IssuesController POST #create when the endpoint receives requests above the limit when issue creation limits imposed logs the event on auth.log
Job #1758599898 failed for 2a5d4645:
Trace
Failures:
1) Projects::IssuesController POST #create when the endpoint receives requests above the limit when issue creation limits imposed logs the event on auth.log
Failure/Error: logger.error(request_information)
(Gitlab::AuthLogger (class)).error({:env=>:issues_create_request_limit, :message=>"Application_Rate_Limiter_Request", :path=>"/namespace...1300/-/issues", :remote_ip=>"0.0.0.0", :request_method=>"POST", :user_id=>980, :username=>"user417"})
expected: 1 time with arguments: ({:env=>:issues_create_request_limit, :message=>"Application_Rate_Limiter_Request", :path=>"/namespace...1300/-/issues", :remote_ip=>"0.0.0.0", :request_method=>"POST", :user_id=>980, :username=>"user417"})
received: 2 times with arguments: ({:env=>:issues_create_request_limit, :message=>"Application_Rate_Limiter_Request", :path=>"/namespace...1300/-/issues", :remote_ip=>"0.0.0.0", :request_method=>"POST", :user_id=>980, :username=>"user417"})
# ./lib/gitlab/application_rate_limiter.rb:152:in `log_request'
# ./app/services/concerns/rate_limited_service.rb:20:in `log_request'
# ./app/controllers/application_controller.rb:112:in `block in <class:ApplicationController>'
# ./spec/controllers/projects/issues_controller_spec.rb:1446:in `block (6 levels) in <top (required)>'
# ./spec/controllers/projects/issues_controller_spec.rb:1445:in `times'
# ./spec/controllers/projects/issues_controller_spec.rb:1445:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:408:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:399:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:395:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:395:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:56:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (2 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# RateLimitedService::RateLimitedError:
# This endpoint has been requested too many times. Try again later.
# ./app/services/concerns/rate_limited_service.rb:43:in `rate_limit!'