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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ci/runner_managers.rb')
-rw-r--r--spec/factories/ci/runner_managers.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/factories/ci/runner_managers.rb b/spec/factories/ci/runner_managers.rb
new file mode 100644
index 00000000000..7a2b0c37215
--- /dev/null
+++ b/spec/factories/ci/runner_managers.rb
@@ -0,0 +1,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