Commit ed9a7ac5 authored by Rémy Coutable's avatar Rémy Coutable

Add a specific tag to runners created during E2E tests

This is a simple work around to ensure that the runner will be found in
the first API page of results when trying to remove the runner after the
test ran. Ideally, the API retrieval should support pagination, but
settings tags is a best practice as well as more performant for
retrieving the runner via the API anyway.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 3b180468
......@@ -7,6 +7,7 @@ module QA
let!(:runner) do
Resource::Runner.fabricate! do |runner|
runner.name = executor
runner.tags = ['e2e-test']
end
end
......
......@@ -8,7 +8,7 @@ module QA
let(:runner) do
Resource::Runner.fabricate_via_api! do |runner|
runner.name = executor
runner.run_untagged = true
runner.tags = ['e2e-test']
end
end
......@@ -18,6 +18,7 @@ module QA
mr.file_name = '.gitlab-ci.yml'
mr.file_content = <<~EOF
test:
tags: [e2e-test]
script:
- echo '(66.67%) covered'
EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment