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

runner_managers.rb « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7a2b0c3721520b6bc01ddb4f730f78d1848a8992 (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::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