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
1e62a07f
Commit
1e62a07f
authored
Oct 08, 2019
by
Sean Arnold
Committed by
Rémy Coutable
Oct 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Prometheus Alert Worker spec
parent
3a99cda1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb
...cident_management/process_prometheus_alert_worker_spec.rb
+2
-2
No files found.
ee/spec/workers/incident_management/process_prometheus_alert_worker_spec.rb
View file @
1e62a07f
...
@@ -8,7 +8,7 @@ describe IncidentManagement::ProcessPrometheusAlertWorker do
...
@@ -8,7 +8,7 @@ describe IncidentManagement::ProcessPrometheusAlertWorker do
let_it_be
(
:prometheus_alert
)
{
create
(
:prometheus_alert
,
project:
project
)
}
let_it_be
(
:prometheus_alert
)
{
create
(
:prometheus_alert
,
project:
project
)
}
before_all
do
before_all
do
payload_key
=
PrometheusAlertEvent
.
payload_key_for
(
prometheus_alert
.
id
,
prometheus_alert
.
created_at
.
rfc3339
)
payload_key
=
PrometheusAlertEvent
.
payload_key_for
(
prometheus_alert
.
prometheus_metric_
id
,
prometheus_alert
.
created_at
.
rfc3339
)
create
(
:prometheus_alert_event
,
prometheus_alert:
prometheus_alert
,
payload_key:
payload_key
)
create
(
:prometheus_alert_event
,
prometheus_alert:
prometheus_alert
,
payload_key:
payload_key
)
end
end
...
@@ -16,7 +16,7 @@ describe IncidentManagement::ProcessPrometheusAlertWorker do
...
@@ -16,7 +16,7 @@ describe IncidentManagement::ProcessPrometheusAlertWorker do
{
{
startsAt:
prometheus_alert
.
created_at
.
rfc3339
,
startsAt:
prometheus_alert
.
created_at
.
rfc3339
,
labels:
{
labels:
{
gitlab_alert_id:
prometheus_alert
.
id
gitlab_alert_id:
prometheus_alert
.
prometheus_metric_
id
}
}
}.
with_indifferent_access
}.
with_indifferent_access
end
end
...
...
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