summaryrefslogtreecommitdiff
path: root/spec/factories/alert_management/alerts.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/alert_management/alerts.rb')
-rw-r--r--spec/factories/alert_management/alerts.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/alert_management/alerts.rb b/spec/factories/alert_management/alerts.rb
index 0e1c0433905..01f40a7a465 100644
--- a/spec/factories/alert_management/alerts.rb
+++ b/spec/factories/alert_management/alerts.rb
@@ -24,6 +24,10 @@ FactoryBot.define do
monitoring_tool { FFaker::AWS.product_description }
end
+ trait :with_description do
+ description { FFaker::Lorem.sentence }
+ end
+
trait :with_host do
hosts { [FFaker::Internet.ip_v4_address] }
end
@@ -70,6 +74,7 @@ FactoryBot.define do
with_service
with_monitoring_tool
with_host
+ with_description
low_severity
end
end