summaryrefslogtreecommitdiff
path: root/qa/qa/resource/ssh_key.rb
diff options
context:
space:
mode:
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