diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-07 00:09:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-07 00:09:12 +0000 |
commit | 6168721025dd8e98caeb2bf6844273e6690eaf69 (patch) | |
tree | 8c4fb20d793669e488a739bc9951dab8b363eed4 /qa/qa/resource | |
parent | a89cb5cbdd832d4d9e80517973aceda6bc0a3856 (diff) | |
download | gitlab-ce-6168721025dd8e98caeb2bf6844273e6690eaf69.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/resource')
-rw-r--r-- | qa/qa/resource/members.rb | 4 | ||||
-rw-r--r-- | qa/qa/resource/sandbox.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/qa/qa/resource/members.rb b/qa/qa/resource/members.rb index c738a91a77f..38a620a5427 100644 --- a/qa/qa/resource/members.rb +++ b/qa/qa/resource/members.rb @@ -11,6 +11,10 @@ module QA post Runtime::API::Request.new(api_client, api_members_path).url, { user_id: user.id, access_level: access_level } end + def remove_member(user) + delete Runtime::API::Request.new(api_client, "#{api_members_path}/#{user.id}").url + end + def list_members JSON.parse(get(Runtime::API::Request.new(api_client, api_members_path).url).body) end diff --git a/qa/qa/resource/sandbox.rb b/qa/qa/resource/sandbox.rb index 54c13071cef..7b427af6b74 100644 --- a/qa/qa/resource/sandbox.rb +++ b/qa/qa/resource/sandbox.rb @@ -63,6 +63,10 @@ module QA '/groups' end + def api_delete_path + "/groups/#{id}" + end + def api_post_body { path: path, |