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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-30 21:09:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-30 21:09:52 +0300
commit6010cf135a52a37b200112fa353900a690f958a7 (patch)
tree74b0ab61b564ea9fa47099fb85cf888add5405e7 /qa/qa/resource/ssh_key.rb
parentdd240e5cc4e0abc4eef8b97962c247dab43e3777 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/resource/ssh_key.rb')
-rw-r--r--qa/qa/resource/ssh_key.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/qa/resource/ssh_key.rb b/qa/qa/resource/ssh_key.rb
index d4e394954ce..fcd0a479fec 100644
--- a/qa/qa/resource/ssh_key.rb
+++ b/qa/qa/resource/ssh_key.rb
@@ -76,6 +76,15 @@ module QA
parse_body(response)[:title].include?(title)
end
end
+
+ private
+
+ def api_get
+ with_paginated_response_body(Runtime::API::Request.new(api_client, '/user/keys', per_page: '100').url) do |page|
+ key = page.find { |key| key[:title] == title }
+ break process_api_response(key) if key
+ end
+ end
end
end
end