debian-mirror-gitlab/spec/factories/alert_management/http_integrations.rb

25 lines
475 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# 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
2021-01-29 00:20:46 +05:30
2021-02-22 17:27:13 +05:30
trait :active do
active { true }
end
2021-01-29 00:20:46 +05:30
trait :legacy do
endpoint_identifier { 'legacy' }
end
initialize_with { new(**attributes) }
2021-01-03 14:25:43 +05:30
end
end