2020-10-15 11:08:45 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :bulk_import, class: 'BulkImport' do
|
|
|
|
user
|
|
|
|
source_type { :gitlab }
|
2021-10-13 08:12:20 -04:00
|
|
|
source_version { BulkImport.min_gl_version_for_project_migration.to_s }
|
2020-10-23 11:08:42 -04:00
|
|
|
|
|
|
|
trait :created do
|
|
|
|
status { 0 }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :started do
|
|
|
|
status { 1 }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :finished do
|
|
|
|
status { 2 }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :failed do
|
|
|
|
status { -1 }
|
|
|
|
end
|
2020-10-15 11:08:45 -04:00
|
|
|
end
|
|
|
|
end
|