From 9c4721b0960e8f5f09cc9628fe968e8603c2c04f Mon Sep 17 00:00:00 2001 From: jonathan-ryding Date: Fri, 3 Nov 2023 16:14:23 +0000 Subject: [PATCH] ZD5545187: Add the domain ukaea.uk to allow list so that users with email addresses ending in ukaea.uk can create test accounts --- .../java/uk/gov/pay/adminusers/utils/email/EmailValidator.java | 1 + .../utils/email/EmailValidatorIsPublicSectorEmailTest.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/java/uk/gov/pay/adminusers/utils/email/EmailValidator.java b/src/main/java/uk/gov/pay/adminusers/utils/email/EmailValidator.java index 05fe827f4..a128ca3e1 100644 --- a/src/main/java/uk/gov/pay/adminusers/utils/email/EmailValidator.java +++ b/src/main/java/uk/gov/pay/adminusers/utils/email/EmailValidator.java @@ -63,6 +63,7 @@ public class EmailValidator { "sssc.uk.com", "tfgm.com", "ucds.email", + "ukaea.uk", "uksbs.co.uk", "wmca.org.uk", "york.ac.uk" diff --git a/src/test/java/uk/gov/pay/adminusers/utils/email/EmailValidatorIsPublicSectorEmailTest.java b/src/test/java/uk/gov/pay/adminusers/utils/email/EmailValidatorIsPublicSectorEmailTest.java index bad8bb30d..7cebe3d44 100644 --- a/src/test/java/uk/gov/pay/adminusers/utils/email/EmailValidatorIsPublicSectorEmailTest.java +++ b/src/test/java/uk/gov/pay/adminusers/utils/email/EmailValidatorIsPublicSectorEmailTest.java @@ -93,6 +93,7 @@ static Collection data() { {"valid@sssc.uk.com", true}, {"valid@tfgm.com", true}, {"valid@ucds.email", true}, + {"valid@ukaea.uk", true}, {"valid@uksbs.co.uk", true}, {"valid@wmca.org.uk", true}, {"valid@york.ac.uk", true}, @@ -143,6 +144,7 @@ static Collection data() { {"valid@subdomain.socialworkengland.org.uk", true}, {"valid@subdomain.tfgm.com", true}, {"valid@subdomain.ucds.email", true}, + {"valid@subdomain.ukaea.uk", true}, {"valid@subdomain.uksbs.co.uk", true}, {"valid@subdomain.sssc.uk.com", true}, {"valid@subdomain.wmca.org.uk", true},