Welcome to mirror list, hosted at ThFree Co, Russian Federation.

runner_machines.rb « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9d601caa63474082dcb7cc344e1f725667791057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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