@@ -167,8 +167,7 @@ def test_firing_message(self, db_session, firing_alert, application, app_env):
167167 assert "slack_attachments" in result
168168 assert "discord_embeds" in result
169169 text = result ["text" ]
170- assert "FIRING" in text
171- assert "ResidentDeploymentOOMKilled" in text
170+ assert "Out of Memory" in text
172171 assert application .project .organization .slug in text
173172 # Slack attachment has color bar
174173 assert result ["slack_attachments" ][0 ]["color" ] == "#e74c3c"
@@ -177,15 +176,14 @@ def test_firing_message(self, db_session, firing_alert, application, app_env):
177176
178177 def test_resolved_message (self , db_session , resolved_alert , application , app_env ):
179178 result = format_alert_message (resolved_alert , application , app_env )
180- assert "RESOLVED " in result ["text" ]
179+ assert "Resolved " in result ["text" ]
181180 assert "12m 34s" in result ["text" ]
182181 assert result ["slack_attachments" ][0 ]["color" ] == "#2ecc71"
183182 assert result ["discord_embeds" ][0 ]["color" ] == 0x2ECC71
184183
185184 def test_message_without_application (self , db_session , firing_alert ):
186185 result = format_alert_message (firing_alert , None , None )
187- assert "FIRING" in result ["text" ]
188- assert "ResidentDeploymentOOMKilled" in result ["text" ]
186+ assert "Out of Memory" in result ["text" ]
189187
190188
191189class TestFormatPipelineMessage :
@@ -548,7 +546,7 @@ def test_dispatches_for_firing_alert(
548546 assert args [1 ] == "discord"
549547 assert args [2 ] == "D001"
550548 message = args [6 ]
551- assert "FIRING " in message ["text" ]
549+ assert "Out of Memory " in message ["text" ]
552550 assert message .get ("discord_embeds" )
553551
554552 def test_skips_alert_without_application (self , db_session , org ):
0 commit comments