summaryrefslogtreecommitdiff
path: root/spec/factories/alert_management/http_integrations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/alert_management/http_integrations.rb')
-rw-r--r--spec/factories/alert_management/http_integrations.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/factories/alert_management/http_integrations.rb b/spec/factories/alert_management/http_integrations.rb
new file mode 100644
index 00000000000..9311cb3e114
--- /dev/null
+++ b/spec/factories/alert_management/http_integrations.rb
@@ -0,0 +1,14 @@
+# 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
+ end
+end