debian-mirror-gitlab/spec/factories/ci/runner_managers.rb
2023-06-20 00:43:36 +05:30

13 lines
330 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :ci_runner_machine, class: 'Ci::RunnerManager' do
runner factory: :ci_runner
system_xid { "r_#{SecureRandom.hex.slice(0, 10)}" }
trait :stale do
created_at { 1.year.ago }
contacted_at { Ci::RunnerManager::STALE_TIMEOUT.ago }
end
end
end