|
@@ -159,7 +159,7 @@ class BuildIncidentAttachmentTest(TestCase):
|
|
},
|
|
},
|
|
)
|
|
)
|
|
)
|
|
)
|
|
- + f"?alert={incident.identifier}"
|
|
|
|
|
|
+ + f"?alert={incident.identifier}&referrer=slack"
|
|
)
|
|
)
|
|
assert SlackIncidentsMessageBuilder(incident, IncidentStatus.CLOSED).build() == {
|
|
assert SlackIncidentsMessageBuilder(incident, IncidentStatus.CLOSED).build() == {
|
|
"blocks": [
|
|
"blocks": [
|
|
@@ -199,7 +199,7 @@ class BuildIncidentAttachmentTest(TestCase):
|
|
},
|
|
},
|
|
)
|
|
)
|
|
)
|
|
)
|
|
- + f"?alert={incident.identifier}"
|
|
|
|
|
|
+ + f"?alert={incident.identifier}&referrer=slack"
|
|
)
|
|
)
|
|
# This should fail because it pulls status from `action` instead of `incident`
|
|
# This should fail because it pulls status from `action` instead of `incident`
|
|
assert SlackIncidentsMessageBuilder(
|
|
assert SlackIncidentsMessageBuilder(
|
|
@@ -239,7 +239,7 @@ class BuildIncidentAttachmentTest(TestCase):
|
|
},
|
|
},
|
|
)
|
|
)
|
|
)
|
|
)
|
|
- + f"?alert={incident.identifier}"
|
|
|
|
|
|
+ + f"?alert={incident.identifier}&referrer=slack"
|
|
)
|
|
)
|
|
assert SlackIncidentsMessageBuilder(
|
|
assert SlackIncidentsMessageBuilder(
|
|
incident, IncidentStatus.CLOSED, chart_url="chart-url"
|
|
incident, IncidentStatus.CLOSED, chart_url="chart-url"
|