debian-mirror-gitlab/spec/factories/commit_statuses.rb

62 lines
1.1 KiB
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
FactoryBot.define do
2015-10-24 18:46:33 +05:30
factory :commit_status, class: CommitStatus do
name 'default'
2018-03-17 18:26:18 +05:30
stage 'test'
2018-10-15 14:42:47 +05:30
stage_idx 0
2015-10-24 18:46:33 +05:30
status 'success'
description 'commit status'
pipeline factory: :ci_pipeline_with_one_job
2016-02-05 20:25:01 +05:30
started_at 'Tue, 26 Jan 2016 08:21:42 +0100'
finished_at 'Tue, 26 Jan 2016 08:23:42 +0100'
2016-09-13 17:45:13 +05:30
trait :success do
status 'success'
end
trait :failed do
status 'failed'
end
trait :canceled do
status 'canceled'
end
2017-08-17 22:00:37 +05:30
trait :skipped do
status 'skipped'
end
2016-09-13 17:45:13 +05:30
trait :running do
status 'running'
end
trait :pending do
status 'pending'
end
2019-05-18 00:54:41 +05:30
trait :preparing do
status 'preparing'
end
2016-09-13 17:45:13 +05:30
trait :created do
status 'created'
end
2017-08-17 22:00:37 +05:30
trait :manual do
status 'manual'
end
2018-12-05 23:21:45 +05:30
trait :scheduled do
status 'scheduled'
end
2016-02-05 20:25:01 +05:30
after(:build) do |build, evaluator|
build.project = build.pipeline.project
2016-02-05 20:25:01 +05:30
end
2015-10-24 18:46:33 +05:30
factory :generic_commit_status, class: GenericCommitStatus do
name 'generic'
description 'external commit status'
end
end
end