diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-25 16:28:49 +0300 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-04-23 10:21:43 +0300 |
commit | d0842d20758e2f33d44b41a250d361853abe47f4 (patch) | |
tree | 7cb89ea266cc5126e696eee3437e8147031d7dcd /spec | |
parent | 4b1b2f3b104df455d5d3265adca92dd09e079ee9 (diff) |
disallow group runners to become project runners
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/runners_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb index 5a2d607960e..ab807e399a4 100644 --- a/spec/requests/api/runners_spec.rb +++ b/spec/requests/api/runners_spec.rb @@ -658,6 +658,12 @@ describe API::Runners do expect(response).to have_gitlab_http_status(403) end + it 'does not enable group runner' do + post api("/projects/#{project.id}/runners", user), runner_id: group_runner.id + + expect(response).to have_http_status(403) + end + context 'user is admin' do it 'enables any specific runner' do expect do |