Commit cdc2a8a8 authored by Sean Arnold's avatar Sean Arnold

Add test covering multiple prometheus alerts in single payload

parent 2d308c7d
......@@ -292,6 +292,14 @@ describe Projects::Prometheus::Alerts::NotifyService do
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
let(:payload_raw) do
payload_for(firing: [], resolved: [alert_resolved])
......
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