2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2017-08-24 07:01:33 -04:00
|
|
|
factory :project_auto_devops do
|
|
|
|
project
|
|
|
|
enabled true
|
2017-09-06 15:00:34 -04:00
|
|
|
domain "example.com"
|
2018-06-01 17:47:38 -04:00
|
|
|
deploy_strategy :continuous
|
2018-06-07 08:56:48 -04:00
|
|
|
|
2018-10-01 09:03:48 -04:00
|
|
|
trait :continuous_deployment do
|
|
|
|
deploy_strategy ProjectAutoDevops.deploy_strategies[:continuous] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :manual_deployment do
|
|
|
|
deploy_strategy ProjectAutoDevops.deploy_strategies[:manual] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :timed_incremental_deployment do
|
|
|
|
deploy_strategy ProjectAutoDevops.deploy_strategies[:timed_incremental] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
|
2018-06-07 08:56:48 -04:00
|
|
|
end
|
2018-06-07 14:09:14 -04:00
|
|
|
|
|
|
|
trait :disabled do
|
|
|
|
enabled false
|
|
|
|
end
|
2017-08-24 07:01:33 -04:00
|
|
|
end
|
|
|
|
end
|