summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-10 23:02:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-10 23:02:09 +0000
commit8c21e23045073c07c43f4f4d9012ced728702e98 (patch)
treea14b5f617927e4f3419e599967eab727f4755491 /spec/factories
parent0a3f1f55493660acfabd198d2e1649a881d8852b (diff)
downloadgitlab-ce-8c21e23045073c07c43f4f4d9012ced728702e98.tar.gz
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/alert_management/alerts.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/alert_management/alerts.rb b/spec/factories/alert_management/alerts.rb
index ef511aa54b8..881f633829a 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