summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/api/1_manage/rate_limits_spec.rb
blob: 1bf435014afb6143c3b1bcfbaacbe2ca94087f06 (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
  context 'Manage with IP rate limits', :requires_admin 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' do
        5.times do
          get request.url
          expect_status(200)
        end
      end
    end
  end
end