Add tests for the different runner errors

This commit is contained in:
Felix Auringer
2021-06-01 18:38:52 +02:00
committed by Sebastian Serth
parent d5b274c9f2
commit 0978a3be83
2 changed files with 368 additions and 0 deletions

11
spec/factories/runner.rb Normal file
View File

@ -0,0 +1,11 @@
# frozen_string_literal: true
# This factory does not request the runner management as the id is already provided.
FactoryBot.define do
factory :runner do
runner_id { 'test-runner-id' }
association :execution_environment, factory: :ruby
association :user, factory: :external_user
waiting_time { 1.0 }
end
end