Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
105f3b6d
Commit
105f3b6d
authored
Jul 27, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure prometheus traited alert is valid
parent
f085ec5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
spec/factories/alert_management/alerts.rb
spec/factories/alert_management/alerts.rb
+10
-0
No files found.
spec/factories/alert_management/alerts.rb
View file @
105f3b6d
...
...
@@ -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 erorr'
,
description:
'Description of the error'
},
startsAt:
started_at
}.
with_indifferent_access
end
end
trait
:all_fields
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment