mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 18:52:30 -05:00
Add runbook link to ticket
This commit is contained in:
@@ -254,6 +254,7 @@ def raise_alert_if_letter_notifications_still_sending():
|
|||||||
)
|
)
|
||||||
# Only send alerts in production
|
# Only send alerts in production
|
||||||
if current_app.config['NOTIFY_ENVIRONMENT'] in ['live', 'production', 'test']:
|
if current_app.config['NOTIFY_ENVIRONMENT'] in ['live', 'production', 'test']:
|
||||||
|
message += ". Resolve using https://github.com/alphagov/notifications-manuals/wiki/Support-Runbook#deal-with-letters-still-in-sending" # noqa
|
||||||
zendesk_client.create_ticket(
|
zendesk_client.create_ticket(
|
||||||
subject="[{}] Letters still sending".format(current_app.config['NOTIFY_ENVIRONMENT']),
|
subject="[{}] Letters still sending".format(current_app.config['NOTIFY_ENVIRONMENT']),
|
||||||
message=message,
|
message=message,
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ def test_create_ticket_if_letter_notifications_still_sending(mocker):
|
|||||||
|
|
||||||
mock_create_ticket.assert_called_once_with(
|
mock_create_ticket.assert_called_once_with(
|
||||||
subject="[test] Letters still sending",
|
subject="[test] Letters still sending",
|
||||||
message="There are 1 letters in the 'sending' state from Monday 15 January",
|
message="There are 1 letters in the 'sending' state from Monday 15 January. Resolve using https://github.com/alphagov/notifications-manuals/wiki/Support-Runbook#deal-with-letters-still-in-sending", # noqa
|
||||||
ticket_type=ZendeskClient.TYPE_INCIDENT
|
ticket_type=ZendeskClient.TYPE_INCIDENT
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user