Add runbook link to ticket

This commit is contained in:
David McDonald
2020-04-02 09:42:46 +01:00
parent b28fffc330
commit 98d8388805
2 changed files with 2 additions and 1 deletions

View File

@@ -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,

View File

@@ -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
) )