aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-08-04 10:50:51 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-08-04 10:50:51 +0200
commit49d12257ce886a02437b3dc83c189d31bd2cfec7 (patch)
treed813199ff11bca9b2d776dd68544536056a78eea
parent4955df5e6d363887c43dcc34e4e2f393ebd60c1e (diff)
downloadsonarqube-49d12257ce886a02437b3dc83c189d31bd2cfec7.tar.gz
sonarqube-49d12257ce886a02437b3dc83c189d31bd2cfec7.zip
SONAR-7908 add some assertions to ClusterTest
-rw-r--r--it/it-tests/src/test/java/it/serverSystem/ClusterTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/it/it-tests/src/test/java/it/serverSystem/ClusterTest.java b/it/it-tests/src/test/java/it/serverSystem/ClusterTest.java
index 2344cc66389..8a792854e7e 100644
--- a/it/it-tests/src/test/java/it/serverSystem/ClusterTest.java
+++ b/it/it-tests/src/test/java/it/serverSystem/ClusterTest.java
@@ -79,7 +79,7 @@ public class ClusterTest {
}
@Test
- public void start_cluster_of_elasticsearch_and_web_nodes() {
+ public void start_cluster_of_elasticsearch_and_web_nodes() throws IOException {
Orchestrator elasticsearch = null;
Orchestrator web = null;
@@ -93,6 +93,7 @@ public class ClusterTest {
.build();
elasticsearch.start();
assertThat(esWatcher.port).isGreaterThan(0);
+ assertThat(FileUtils.readFileToString(elasticsearch.getServer().getLogs())).doesNotContain("Process[web]");
web = Orchestrator.builderEnv()
.setServerProperty("sonar.cluster.enabled", "true")
@@ -107,6 +108,7 @@ public class ClusterTest {
.build();
web.start();
+ assertThat(FileUtils.readFileToString(elasticsearch.getServer().getLogs())).doesNotContain("Process[es]");
// call a web service that requires Elasticsearch
Issues.SearchWsResponse wsResponse = ItUtils.newWsClient(web).issues().search(new org.sonarqube.ws.client.issue.SearchWsRequest());
assertThat(wsResponse.getIssuesCount()).isEqualTo(0);