]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8523 Test WS api/users/search allows search on email case insensitive 1600/head
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 31 Jan 2017 11:08:34 +0000 (12:08 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 31 Jan 2017 13:19:03 +0000 (14:19 +0100)
server/sonar-server/src/test/java/org/sonar/server/user/ws/SearchActionTest.java

index ae4d0681bc773f42409fc771799312b02037fca6..ce6d5ce19954ac3b5c067f411836c31497434b08 100644 (file)
@@ -131,6 +131,8 @@ public class SearchActionTest {
         .setScmAccounts(user.getScmAccountsAsList()));
 
     ws.newGetRequest("api/users", "search").setParam("q", "user-%_%-").execute().assertJson(getClass(), "user_one.json");
+    ws.newGetRequest("api/users", "search").setParam("q", "user@MAIL.com").execute().assertJson(getClass(), "user_one.json");
+    ws.newGetRequest("api/users", "search").setParam("q", "user-name").execute().assertJson(getClass(), "user_one.json");
   }
 
   @Test