diff options
Diffstat (limited to 'spec/factories/services.rb')
-rw-r--r-- | spec/factories/services.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/spec/factories/services.rb b/spec/factories/services.rb index b6696769da9..fd97f6abb85 100644 --- a/spec/factories/services.rb +++ b/spec/factories/services.rb @@ -45,9 +45,13 @@ FactoryBot.define do end factory :alerts_service do + active project type { 'AlertsService' } - active { true } + + trait :active do + active { true } + end trait :inactive do active { false } @@ -165,6 +169,13 @@ FactoryBot.define do type { 'SlackService' } end + factory :pipelines_email_service do + project + active { true } + type { 'PipelinesEmailService' } + recipients { 'test@example.com' } + end + # this is for testing storing values inside properties, which is deprecated and will be removed in # https://gitlab.com/gitlab-org/gitlab/issues/29404 trait :without_properties_callback do |