debian-mirror-gitlab/spec/factories/ci/runner_machines.rb
2023-04-23 21:23:45 +05:30

13 lines
330 B
Ruby

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