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
cdc2a8a8
Commit
cdc2a8a8
authored
Sep 10, 2019
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test covering multiple prometheus alerts in single payload
parent
2d308c7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ee/spec/services/projects/prometheus/alerts/notify_service_spec.rb
...ervices/projects/prometheus/alerts/notify_service_spec.rb
+8
-0
No files found.
ee/spec/services/projects/prometheus/alerts/notify_service_spec.rb
View file @
cdc2a8a8
...
@@ -292,6 +292,14 @@ describe Projects::Prometheus::Alerts::NotifyService do
...
@@ -292,6 +292,14 @@ describe Projects::Prometheus::Alerts::NotifyService do
it_behaves_like
'processes incident issues'
,
2
it_behaves_like
'processes incident issues'
,
2
context
'multiple firing alerts'
do
let
(
:payload_raw
)
do
payload_for
(
firing:
[
alert_firing
,
alert_firing
],
resolved:
[])
end
it_behaves_like
'processes incident issues'
,
2
end
context
'without firing alerts'
do
context
'without firing alerts'
do
let
(
:payload_raw
)
do
let
(
:payload_raw
)
do
payload_for
(
firing:
[],
resolved:
[
alert_resolved
])
payload_for
(
firing:
[],
resolved:
[
alert_resolved
])
...
...
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