debian-mirror-gitlab/spec/factories/ci/runner_managers.rb

14 lines
330 B
Ruby
Raw Normal View History

2023-03-17 16:20:25 +05:30
# frozen_string_literal: true
FactoryBot.define do
2023-06-20 00:43:36 +05:30
factory :ci_runner_machine, class: 'Ci::RunnerManager' do
2023-03-17 16:20:25 +05:30
runner factory: :ci_runner
2023-04-23 21:23:45 +05:30
system_xid { "r_#{SecureRandom.hex.slice(0, 10)}" }
trait :stale do
created_at { 1.year.ago }
2023-06-20 00:43:36 +05:30
contacted_at { Ci::RunnerManager::STALE_TIMEOUT.ago }
2023-04-23 21:23:45 +05:30
end
2023-03-17 16:20:25 +05:30
end
end