summaryrefslogtreecommitdiff
path: root/qa/qa/runtime/api/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/runtime/api/client.rb')
-rw-r--r--qa/qa/runtime/api/client.rb21
1 files changed, 1 insertions, 20 deletions
diff --git a/qa/qa/runtime/api/client.rb b/qa/qa/runtime/api/client.rb
index b5b572890c1..5ca3b0c51f8 100644
--- a/qa/qa/runtime/api/client.rb
+++ b/qa/qa/runtime/api/client.rb
@@ -8,12 +8,11 @@ module QA
AuthorizationError = Class.new(RuntimeError)
- def initialize(address = :gitlab, personal_access_token: nil, is_new_session: true, user: nil, ip_limits: false)
+ def initialize(address = :gitlab, personal_access_token: nil, is_new_session: true, user: nil)
@address = address
@personal_access_token = personal_access_token
@is_new_session = is_new_session
@user = user
- enable_ip_limits if ip_limits
end
# Personal access token
@@ -68,24 +67,6 @@ module QA
private
- def enable_ip_limits
- Page::Main::Menu.perform(&:sign_out) if Page::Main::Menu.perform { |p| p.has_personal_area?(wait: 0) }
-
- Runtime::Browser.visit(@address, Page::Main::Login)
- Page::Main::Login.perform(&:sign_in_using_admin_credentials)
- Page::Main::Menu.perform(&:go_to_admin_area)
- Page::Admin::Menu.perform(&:go_to_network_settings)
-
- Page::Admin::Settings::Network.perform do |setting|
- setting.expand_ip_limits do |page|
- page.enable_throttles
- page.save_settings
- end
- end
-
- Page::Main::Menu.perform(&:sign_out)
- end
-
# Create PAT
#
# Use api if admin personal access token is present and skip any UI actions otherwise perform creation via UI