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:
Diffstat (limited to 'qa/qa/resource/group_base.rb')
-rw-r--r--qa/qa/resource/group_base.rb28
1 files changed, 22 insertions, 6 deletions
diff --git a/qa/qa/resource/group_base.rb b/qa/qa/resource/group_base.rb
index 5e2a567119d..263c2ca2aeb 100644
--- a/qa/qa/resource/group_base.rb
+++ b/qa/qa/resource/group_base.rb
@@ -12,12 +12,12 @@ module QA
attr_accessor :path, :avatar
attributes :id,
- :runners_token,
- :name,
- :full_path,
- # Add visibility to enable create private group
- :visibility,
- :shared_with_groups
+ :runners_token,
+ :name,
+ :full_path,
+ # Add visibility to enable create private group
+ :visibility,
+ :shared_with_groups
# Get group projects
#
@@ -84,6 +84,14 @@ module QA
end
end
+ # Get group runners
+ #
+ # @param [Hash] **kwargs optional query arguments, see: https://docs.gitlab.com/ee/api/runners.html#list-groups-runners
+ # @return [Array]
+ def runners(**kwargs)
+ auto_paginated_response(request_url(api_runners_path, **kwargs))
+ end
+
# API get path
#
# @return [String]
@@ -112,6 +120,14 @@ module QA
"/groups/#{id}"
end
+ # API path to GET runners
+ # See https://docs.gitlab.com/ee/api/runners.html#list-groups-runners
+ #
+ # @return [String]
+ def api_runners_path
+ "#{api_get_path}/runners"
+ end
+
# Object comparison
# Override to make sure we are comparing descendands of GroupBase
#