diff options
Diffstat (limited to 'spec/factories/alert_management/alerts.rb')
-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 |