aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-09-07 11:02:49 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-09-13 15:50:55 +0200
commitb82b35aacc833165c53adb02cb6c8a8df7dc6f33 (patch)
tree2fd56a461084c83697656b5f86b5c1d7a4d379ea /tests
parenta444ad1e6bef78386f960acadb0fee7e0b4d8224 (diff)
downloadsonarqube-b82b35aacc833165c53adb02cb6c8a8df7dc6f33.tar.gz
sonarqube-b82b35aacc833165c53adb02cb6c8a8df7dc6f33.zip
SONAR-9741 harden ES status check when no node can be contacted
or any other Exception occuring while checking ES cluster status
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java b/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java
index 159375c9c4e..84481835063 100644
--- a/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java
@@ -30,7 +30,6 @@ import java.util.function.Consumer;
import java.util.stream.IntStream;
import org.apache.commons.io.FileUtils;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.DisableOnDebug;
@@ -249,7 +248,6 @@ public class ClusterTest {
}
@Test
- @Ignore("WS api/system/health returns 500")
public void health_becomes_RED_when_all_search_nodes_go_down() throws Exception {
try (Cluster cluster = newCluster(2, 1)) {
cluster.getNodes().forEach(Node::start);
@@ -261,7 +259,7 @@ public class ClusterTest {
app.waitForHealth(WsSystem.Health.RED);
assertThat(app.getHealth().get().getCausesList()).extracting(WsSystem.Cause::getMessage)
- .contains("Elasticsearch status is RED");
+ .contains("Elasticsearch status is RED (unavailable)");
}
}