]> source.dussan.org Git - sonarqube.git/commitdiff
[NO-JIRA] Update valid user email list
authorJacek <jacek.poreda@sonarsource.com>
Thu, 3 Feb 2022 09:26:24 +0000 (10:26 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 4 Feb 2022 20:02:50 +0000 (20:02 +0000)
- required to upgrade javax.mail

server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/EmailValidatorTest.java

index 450d707c125ae38dbb253baa6553ef8bdca056df..82bbb832cc537dfff16056bbd981b32b89fe445a 100644 (file)
@@ -36,6 +36,8 @@ public class EmailValidatorTest {
   public void various_examples_of_unusual_but_valid_emails() {
     assertThat(isValidIfPresent("info@sonarsource.com")).isTrue();
     assertThat(isValidIfPresent("guillaume.jambet+sonarsource-emailvalidatortest@gmail.com")).isTrue();
+    assertThat(isValidIfPresent("webmaster@kiné-beauté.fr")).isTrue();
+    assertThat(isValidIfPresent("Chuck Norris <coup-de-pied-retourné@chucknorris.com>")).isTrue();
     assertThat(isValidIfPresent("\"Fred Bloggs\"@example.com")).isTrue();
     assertThat(isValidIfPresent("pipo@127.0.0.1")).isTrue();
     assertThat(isValidIfPresent("admin@admin")).isTrue();
@@ -46,8 +48,6 @@ public class EmailValidatorTest {
     assertThat(isValidIfPresent("infosonarsource.com")).isFalse();
     assertThat(isValidIfPresent("info@.sonarsource.com")).isFalse();
     assertThat(isValidIfPresent("info\"@.sonarsource.com")).isFalse();
-    assertThat(isValidIfPresent("webmaster@kiné-beauté.fr")).isFalse();
-    assertThat(isValidIfPresent("Chuck Norris <coup-de-pied-retourné@chucknorris.com>")).isFalse();
   }
 
 }