Commit b9c1f592 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-prometheus-alert-worker-spec' into 'master'

Fix Prometheus Alert Worker spec

Closes #33605

See merge request gitlab-org/gitlab!18243
parents 3a99cda1 1e62a07f
......@@ -8,7 +8,7 @@ describe IncidentManagement::ProcessPrometheusAlertWorker do
let_it_be(:prometheus_alert) { create(:prometheus_alert, project: project) }
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)
end
......@@ -16,7 +16,7 @@ describe IncidentManagement::ProcessPrometheusAlertWorker do
{
startsAt: prometheus_alert.created_at.rfc3339,
labels: {
gitlab_alert_id: prometheus_alert.id
gitlab_alert_id: prometheus_alert.prometheus_metric_id
}
}.with_indifferent_access
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment