Commit 77c180bc authored by Dan Davison's avatar Dan Davison

Merge branch 'nuget-optimise-test' into 'master'

Remove unnecessary runner from NuGet test

See merge request gitlab-org/gitlab!59264
parents c42789b0 c9301aeb
...@@ -21,33 +21,24 @@ module QA ...@@ -21,33 +21,24 @@ module QA
end end
let(:another_project) do let(:another_project) do
Resource::Project.fabricate_via_api! do |project| Resource::Project.fabricate_via_api! do |another_project|
project.name = 'nuget-package-install-project' another_project.name = 'nuget-package-install-project'
project.template_name = 'dotnetcore' another_project.template_name = 'dotnetcore'
another_project.group = project.group
end end
end end
let!(:runner) do let!(:runner) do
Resource::Runner.fabricate! do |runner| Resource::Runner.fabricate! do |runner|
runner.name = "qa-runner-#{Time.now.to_i}" runner.name = "qa-runner-#{Time.now.to_i}"
runner.tags = ["runner-for-#{project.name}"] runner.tags = ["runner-for-#{project.group.sandbox.name}"]
runner.executor = :docker
runner.project = project
end
end
let!(:another_runner) do
Resource::Runner.fabricate! do |runner|
runner.name = "qa-runner-#{Time.now.to_i}"
runner.tags = ["runner-for-#{another_project.name}"]
runner.executor = :docker runner.executor = :docker
runner.project = another_project runner.token = project.group.sandbox.runners_token
end end
end end
after do after do
runner.remove_via_api! runner.remove_via_api!
another_runner.remove_via_api!
package.remove_via_api! package.remove_via_api!
end end
...@@ -78,7 +69,7 @@ module QA ...@@ -78,7 +69,7 @@ module QA
only: only:
- "#{project.default_branch}" - "#{project.default_branch}"
tags: tags:
- "runner-for-#{project.name}" - "runner-for-#{project.group.sandbox.name}"
YAML YAML
} }
] ]
...@@ -137,7 +128,7 @@ module QA ...@@ -137,7 +128,7 @@ module QA
only: only:
- "#{another_project.default_branch}" - "#{another_project.default_branch}"
tags: tags:
- "runner-for-#{another_project.name}" - "runner-for-#{project.group.sandbox.name}"
YAML YAML
} }
] ]
......
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