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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
330 B
Ruby
Raw Normal View History

2023-03-17 16:20:25 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :ci_runner_machine, class: 'Ci::RunnerMachine' do
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 }
contacted_at { Ci::RunnerMachine::STALE_TIMEOUT.ago }
end
2023-03-17 16:20:25 +05:30
end
end