2020-10-02 20:08:46 -04:00
|
|
|
# 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
|
2020-10-20 23:08:45 -04:00
|
|
|
|
|
|
|
trait :legacy do
|
|
|
|
endpoint_identifier { 'legacy' }
|
|
|
|
end
|
|
|
|
|
|
|
|
initialize_with { new(**attributes) }
|
2020-10-02 20:08:46 -04:00
|
|
|
end
|
|
|
|
end
|