From d45484feb5cfb5d40e35330bac6c89686a9cd44c Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Mon, 16 Jan 2017 14:18:46 +0000 Subject: [PATCH] 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():