summaryrefslogtreecommitdiff
path: root/qa/qa/factory
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-23 12:10:18 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-23 12:13:59 +0100
commit294bddf95c646e08f68aeec16024b48e18dd3ba2 (patch)
treec58541e2a01ce47229a65b8e8be7292d41ee9039 /qa/qa/factory
parent5cb94835c0010d1954b26c858f910d533cd88e38 (diff)
downloadgitlab-ce-294bddf95c646e08f68aeec16024b48e18dd3ba2.tar.gz
Use runner tags when processing CI/CD QA pipelines
Diffstat (limited to 'qa/qa/factory')
-rw-r--r--qa/qa/factory/resource/runner.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/qa/qa/factory/resource/runner.rb b/qa/qa/factory/resource/runner.rb
index 299a9d0716d..109e2e59fcc 100644
--- a/qa/qa/factory/resource/runner.rb
+++ b/qa/qa/factory/resource/runner.rb
@@ -4,7 +4,7 @@ module QA
module Factory
module Resource
class Runner < Factory::Base
- attr_writer :name
+ attr_writer :name, :tags
dependency Factory::Resource::Project, as: :project do |project|
project.name = 'project-with-ci-cd'
@@ -15,6 +15,10 @@ module QA
@name || "qa-runner-#{SecureRandom.hex(4)}"
end
+ def tags
+ @tags || %w[qa e2e]
+ end
+
def fabricate!
project.visit!
@@ -26,7 +30,7 @@ module QA
runner.pull
runner.token = runners.registration_token
runner.address = runners.coordinator_address
- runner.tags = %w[qa test]
+ runner.tags = tags
runner.register!
# TODO, wait for runner to register using non-blocking method.
sleep 5