diff options
Diffstat (limited to 'qa/qa/resource/project.rb')
-rw-r--r-- | qa/qa/resource/project.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/qa/qa/resource/project.rb b/qa/qa/resource/project.rb index efb6c2c0591..23e2ec07491 100644 --- a/qa/qa/resource/project.rb +++ b/qa/qa/resource/project.rb @@ -151,6 +151,10 @@ module QA "#{api_get_path}/runners" end + def api_registry_repositories_path + "#{api_get_path}/registry/repositories" + end + def api_commits_path "#{api_get_path}/repository/commits" end @@ -256,6 +260,12 @@ module QA parse_body(response) end + def registry_repositories + response = get Runtime::API::Request.new(api_client, "#{api_registry_repositories_path}").url + + parse_body(response) + end + def repository_branches parse_body(get(Runtime::API::Request.new(api_client, api_repository_branches_path).url)) end @@ -272,10 +282,6 @@ module QA parse_body(get(Runtime::API::Request.new(api_client, api_pipelines_path).url)) end - def share_with_group(invitee, access_level = Resource::Members::AccessLevel::DEVELOPER) - post Runtime::API::Request.new(api_client, "/projects/#{id}/share").url, { group_id: invitee.id, group_access: access_level } - end - private def transform_api_resource(api_resource) |