From 3d45454330e812fb46062fd22747708a77dead63 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 5 Jun 2017 13:51:53 +0100 Subject: [PATCH] Add Care Quality Commission to email whitelist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CQC is an executive non-departmental public body, sponsored by the Department of Health. They have asked to be allowed to register for Notify using the `cqc.org.uk` and `digital.cqc.org.uk` domains. We know that this really is there domain because it’s linked to from here: https://www.gov.uk/government/organisations/care-quality-commission --- app/config.py | 1 + tests/app/main/test_validators.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index f9b737929..c19849a7e 100644 --- a/app/config.py +++ b/app/config.py @@ -82,6 +82,7 @@ class Config(object): r"scotent\.co\.uk", r"assembly\.wales", r"cjsm\.net", + r"cqc\.org\.uk", ] diff --git a/tests/app/main/test_validators.py b/tests/app/main/test_validators.py index 1a77885a9..e9bf96db2 100644 --- a/tests/app/main/test_validators.py +++ b/tests/app/main/test_validators.py @@ -90,7 +90,9 @@ def _gen_mock_field(x): 'test@hmcts.net', 'test@scotent.co.uk', 'test@assembly.wales', - 'test@cjsm.net' + 'test@cjsm.net', + 'test@cqc.org.uk', + 'test@digital.cqc.org.uk', ]) def test_valid_list_of_white_list_email_domains( client,