summaryrefslogtreecommitdiff
path: root/spec/factories/alert_management/http_integrations.rb
blob: 2b5864c8587e2816851b096f7bf3b608b16f1de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

FactoryBot.define do
  factory :alert_management_http_integration, class: 'AlertManagement::HttpIntegration' do
    project
    active { true }
    name { 'DataDog' }
    endpoint_identifier { SecureRandom.hex(4) }

    trait :inactive do
      active { false }
    end

    trait :legacy do
      endpoint_identifier { 'legacy' }
    end

    initialize_with { new(**attributes) }
  end
end