mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Merge pull request #991 from alphagov/add-ucds-domain
Update email domain list.
This commit is contained in:
@@ -59,10 +59,9 @@ class Config(object):
|
|||||||
"bitzesty\.com",
|
"bitzesty\.com",
|
||||||
"dclgdatamart\.co\.uk",
|
"dclgdatamart\.co\.uk",
|
||||||
"valtech\.co\.uk",
|
"valtech\.co\.uk",
|
||||||
"gofreerange\.com",
|
|
||||||
"cgi\.com",
|
"cgi\.com",
|
||||||
"unboxed\.com",
|
"capita\.co\.uk",
|
||||||
"capita\.co\.uk"]
|
"ucds.email"]
|
||||||
|
|
||||||
|
|
||||||
class Development(Config):
|
class Development(Config):
|
||||||
|
|||||||
@@ -80,9 +80,8 @@ def _gen_mock_field(x):
|
|||||||
'test@gov.police.uk',
|
'test@gov.police.uk',
|
||||||
'test@GOV.PoliCe.uk',
|
'test@GOV.PoliCe.uk',
|
||||||
'test@valtech.co.uk',
|
'test@valtech.co.uk',
|
||||||
'test@gofreerange.com',
|
|
||||||
'test@cgi.com',
|
'test@cgi.com',
|
||||||
'test@unboxed.com'
|
'test@ucds.email'
|
||||||
])
|
])
|
||||||
def test_valid_list_of_white_list_email_domains(app_, email):
|
def test_valid_list_of_white_list_email_domains(app_, email):
|
||||||
with app_.test_request_context():
|
with app_.test_request_context():
|
||||||
@@ -113,7 +112,8 @@ def test_valid_list_of_white_list_email_domains(app_, email):
|
|||||||
'test@nhs.test.net',
|
'test@nhs.test.net',
|
||||||
'test@ukpolice.uk',
|
'test@ukpolice.uk',
|
||||||
'test@police.uk.uk',
|
'test@police.uk.uk',
|
||||||
'test@police.test.uk'
|
'test@police.test.uk',
|
||||||
|
'test@ucds.com'
|
||||||
])
|
])
|
||||||
def test_invalid_list_of_white_list_email_domains(app_, email):
|
def test_invalid_list_of_white_list_email_domains(app_, email):
|
||||||
with app_.test_request_context():
|
with app_.test_request_context():
|
||||||
|
|||||||
Reference in New Issue
Block a user