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:
authorAlexis Reigel <mail@koffeinfrei.org>2017-09-25 16:28:49 +0300
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2018-04-23 10:21:43 +0300
commitd0842d20758e2f33d44b41a250d361853abe47f4 (patch)
tree7cb89ea266cc5126e696eee3437e8147031d7dcd /spec/requests
parent4b1b2f3b104df455d5d3265adca92dd09e079ee9 (diff)
disallow group runners to become project runners
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/runners_spec.rb6
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