diff --git a/app/celery/nightly_tasks.py b/app/celery/nightly_tasks.py index 8d96a0940..ef6b6f72d 100644 --- a/app/celery/nightly_tasks.py +++ b/app/celery/nightly_tasks.py @@ -185,6 +185,7 @@ def raise_alert_if_letter_notifications_still_sending(): ticket = NotifySupportTicket( subject=f"[{current_app.config['NOTIFY_ENVIRONMENT']}] Letters still sending", + email_ccs=current_app.config['DVLA_EMAIL_ADDRESSES'], message=message, ticket_type=NotifySupportTicket.TYPE_INCIDENT, technical_ticket=True, diff --git a/requirements-app.txt b/requirements-app.txt index fb0245219..32efa05d5 100644 --- a/requirements-app.txt +++ b/requirements-app.txt @@ -36,7 +36,7 @@ notifications-python-client==6.0.2 # PaaS awscli-cwlogs==1.4.6 -git+https://github.com/alphagov/notifications-utils.git@46.1.0#egg=notifications-utils==46.1.0 +git+https://github.com/alphagov/notifications-utils.git@47.1.0#egg=notifications-utils==47.1.0 # gds-metrics requires prometheseus 0.2.0, override that requirement as 0.7.1 brings significant performance gains prometheus-client==0.10.1 diff --git a/requirements.txt b/requirements.txt index 21ae56eb8..7514b7f7e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -38,7 +38,7 @@ notifications-python-client==6.0.2 # PaaS awscli-cwlogs==1.4.6 -git+https://github.com/alphagov/notifications-utils.git@46.1.0#egg=notifications-utils==46.1.0 +git+https://github.com/alphagov/notifications-utils.git@47.1.0#egg=notifications-utils==47.1.0 # gds-metrics requires prometheseus 0.2.0, override that requirement as 0.7.1 brings significant performance gains prometheus-client==0.10.1 @@ -52,7 +52,7 @@ attrs==21.2.0 awscli==1.21.4 bcrypt==3.2.0 billiard==3.3.0.23 -bleach==3.3.0 +bleach==4.1.0 blinker==1.4 boto==2.49.0 boto3==1.19.4 diff --git a/tests/app/celery/test_nightly_tasks.py b/tests/app/celery/test_nightly_tasks.py index b65546907..8813b92fd 100644 --- a/tests/app/celery/test_nightly_tasks.py +++ b/tests/app/celery/test_nightly_tasks.py @@ -250,6 +250,7 @@ def test_create_ticket_if_letter_notifications_still_sending(notify_api, mocker) mock_create_ticket.assert_called_once_with( ANY, subject='[test] Letters still sending', + email_ccs=current_app.config['DVLA_EMAIL_ADDRESSES'], 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"