2020-05-06 06:09:36 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :project_repository_storage_move, class: 'ProjectRepositoryStorageMove' do
|
|
|
|
project
|
|
|
|
|
|
|
|
source_storage_name { 'default' }
|
|
|
|
|
|
|
|
trait :scheduled do
|
|
|
|
state { ProjectRepositoryStorageMove.state_machines[:state].states[:scheduled].value }
|
|
|
|
end
|
2020-05-26 21:07:45 +00:00
|
|
|
|
|
|
|
trait :started do
|
|
|
|
state { ProjectRepositoryStorageMove.state_machines[:state].states[:started].value }
|
|
|
|
end
|
2020-07-02 00:09:51 +00:00
|
|
|
|
2020-08-13 12:09:50 +00:00
|
|
|
trait :replicated do
|
|
|
|
state { ProjectRepositoryStorageMove.state_machines[:state].states[:replicated].value }
|
|
|
|
end
|
|
|
|
|
2020-07-02 00:09:51 +00:00
|
|
|
trait :finished do
|
|
|
|
state { ProjectRepositoryStorageMove.state_machines[:state].states[:finished].value }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :failed do
|
|
|
|
state { ProjectRepositoryStorageMove.state_machines[:state].states[:failed].value }
|
|
|
|
end
|
2020-05-06 06:09:36 +00:00
|
|
|
end
|
|
|
|
end
|