From d45484feb5cfb5d40e35330bac6c89686a9cd44c Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Mon, 16 Jan 2017 14:18:46 +0000 Subject: [PATCH 1/2] This PR allows the pentesters to operate as part of white listed root domains. Needed for full app testing. --- config.py | 1 + tests/app/main/test_validators.py | 1 + 2 files changed, 2 insertions(+) diff --git a/config.py b/config.py index a81fc4e62..4fc4fca6d 100644 --- a/config.py +++ b/config.py @@ -65,6 +65,7 @@ class Config(object): r"ucds\.email", r"naturalengland\.org\.uk", r"hmcts.net", + r"irmsecurity.com", # temp addition for pen testers to be able to create account ] diff --git a/tests/app/main/test_validators.py b/tests/app/main/test_validators.py index 09c12f3d3..f30fe04fa 100644 --- a/tests/app/main/test_validators.py +++ b/tests/app/main/test_validators.py @@ -82,6 +82,7 @@ def _gen_mock_field(x): 'test@ucds.email', 'test@naturalengland.org.uk', 'test@hmcts.net', + 'test@irmsecurity.com' # remove once pen test complete ]) def test_valid_list_of_white_list_email_domains(app_, email): with app_.test_request_context(): From d333e5a8a8b69946bd2880836120b48339c51ec4 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Mon, 16 Jan 2017 16:49:50 +0000 Subject: [PATCH 2/2] Escape the period --- config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 4fc4fca6d..8a40c51a5 100644 --- a/config.py +++ b/config.py @@ -64,8 +64,8 @@ class Config(object): r"dclgdatamart\.co\.uk", r"ucds\.email", r"naturalengland\.org\.uk", - r"hmcts.net", - r"irmsecurity.com", # temp addition for pen testers to be able to create account + r"hmcts\.net", + r"irmsecurity\.com", # temp addition for pen testers to be able to create account ]