diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-18 09:08:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-18 09:08:12 +0000 |
commit | 1b9a2ce27825c02cc14b594ed5ea061fccf1d957 (patch) | |
tree | bb6e75df11b25e5e0a9757d64dba2d0605d697f7 /spec/factories | |
parent | 7e5f8d08817c5672a0fe2f36609897f20d7e120e (diff) | |
download | gitlab-ce-1b9a2ce27825c02cc14b594ed5ea061fccf1d957.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/alert_management/alerts.rb | 5 |
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 |