debian-mirror-gitlab/spec/factories/alert_management/http_integrations.rb
2021-01-30 21:13:34 +05:30

20 lines
423 B
Ruby

# 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