2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2017-11-21 21:50:03 +00:00
|
|
|
FactoryBot.define do
|
2017-09-07 15:17:06 +00:00
|
|
|
factory :scheduler do
|
2019-03-27 09:01:36 +00:00
|
|
|
sequence(:name) { |n| "Testscheduler#{n}" }
|
|
|
|
last_run { Time.zone.now }
|
|
|
|
pid { 1337 }
|
|
|
|
prio { 1 }
|
|
|
|
status { 'ok' }
|
|
|
|
active { true }
|
|
|
|
period { 10.minutes }
|
|
|
|
running { false }
|
|
|
|
note { 'test' }
|
|
|
|
updated_by_id { 1 }
|
|
|
|
created_by_id { 1 }
|
|
|
|
created_at { 1 }
|
|
|
|
updated_at { 1 }
|
2017-09-07 15:17:06 +00:00
|
|
|
add_attribute(:method) { 'test' }
|
|
|
|
end
|
|
|
|
end
|