Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_auto_devops.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1de42512402f3679bbb38ae7bcaa18ae97158f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FactoryBot.define do
  factory :project_auto_devops do
    project
    enabled true
    deploy_strategy :continuous

    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
    end

    trait :disabled do
      enabled false
    end
  end
end