aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2017-06-29 21:41:53 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-07-05 21:02:58 +0200
commit4b08d04bb8db93c40fa7cffe05ed51dbdac4b81d (patch)
treea2955745a2aad070de89638bb1e22f83288ce8a6 /tests
parentcd5bbe9a4d96efc6e6371436645de9a1d72c6f78 (diff)
downloadsonarqube-4b08d04bb8db93c40fa7cffe05ed51dbdac4b81d.tar.gz
sonarqube-4b08d04bb8db93c40fa7cffe05ed51dbdac4b81d.zip
SONAR-9480 make WS operations on rules resilient to Elasticsearch errors
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/user/UserEsResilienceTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/user/UserEsResilienceTest.java b/tests/src/test/java/org/sonarqube/tests/user/UserEsResilienceTest.java
index 10c3a441a53..6232cf1c2d5 100644
--- a/tests/src/test/java/org/sonarqube/tests/user/UserEsResilienceTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/user/UserEsResilienceTest.java
@@ -92,8 +92,7 @@ public class UserEsResilienceTest {
public void creation_and_update_of_user_are_resilient_to_indexing_crash() throws Exception {
String login = "crash";
- // creation of user succeeds but index is not up-to-date (indexing
- // crashes are not propagated to web services)
+ // creation of user succeeds in db but indexing crashes --> ws fails
expectHttpError(500, () -> tester.users().generate(u -> u.setLogin(login)));
// user exists in db, it can't be created again.