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

rate_limits_spec.rb « 1_manage « api « features « specs « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9eb1bd985ead86a00b6d7ec8e5c49f95e3d428df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'airborne'

module QA
  RSpec.describe 'Manage with IP rate limits', :requires_admin, :skip_live_env do
    describe 'Users API' do
      let(:api_client) { Runtime::API::Client.new(:gitlab, ip_limits: true) }
      let(:request) { Runtime::API::Request.new(api_client, '/users') }

      it 'GET /users', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1567' do
        5.times do
          get request.url
          expect_status(200)
        end
      end
    end
  end
end