diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-30 09:09:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-30 09:09:55 +0300 |
commit | 0629b103246d6c8b24e753f62ccfc8649df2c315 (patch) | |
tree | 7a68ccda8a1fbd1728bdbf97f636801843a7bdf1 /spec/factories/alert_management | |
parent | 2dfc1088178535959894aff4e80edb8936b9dedf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/alert_management')
-rw-r--r-- | spec/factories/alert_management/alerts.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/alert_management/alerts.rb b/spec/factories/alert_management/alerts.rb index 0f05d62b889..d931947fff1 100644 --- a/spec/factories/alert_management/alerts.rb +++ b/spec/factories/alert_management/alerts.rb @@ -101,6 +101,16 @@ FactoryBot.define do trait :prometheus do monitoring_tool { Gitlab::AlertManagement::AlertParams::MONITORING_TOOLS[:prometheus] } + payload do + { + annotations: { + title: 'This is a prometheus error', + summary: 'Summary of the error', + description: 'Description of the error' + }, + startsAt: started_at + }.with_indifferent_access + end end trait :all_fields do |