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:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-11 13:03:40 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-31 11:46:19 +0300
commitab489d293d6ee3e30673817ce4652c7b413988c0 (patch)
treee197ccd80fefd1f4ae610e96efeebf139c69b302 /spec/factories/ci
parentec1d3e104afddf7c8a5f6f5d8bf1ffee99a8f551 (diff)
Improve runner_type validations for Ci::Runner
Diffstat (limited to 'spec/factories/ci')
-rw-r--r--spec/factories/ci/runners.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/factories/ci/runners.rb b/spec/factories/ci/runners.rb
index cdc170b9ccb..9d106250d08 100644
--- a/spec/factories/ci/runners.rb
+++ b/spec/factories/ci/runners.rb
@@ -21,6 +21,19 @@ FactoryBot.define do
is_shared false
end
+ trait :group do
+ runner_type :group_type
+ end
+
+ trait :project do
+ runner_type :project_type
+ end
+
+ trait :instance do
+ is_shared true
+ runner_type :instance_type
+ end
+
trait :inactive do
active false
end