diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-09-15 14:05:57 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-09-26 23:49:37 +0200 |
commit | e4c401f8bc9100fec7fd28bb93469d3de199f5f7 (patch) | |
tree | e07cd247c43059bedf5b0bc5c85c12d232c8f82a /tests | |
parent | f6226c06c40855028ae7f8266e9ae36c8eeca618 (diff) | |
download | sonarqube-e4c401f8bc9100fec7fd28bb93469d3de199f5f7.tar.gz sonarqube-e4c401f8bc9100fec7fd28bb93469d3de199f5f7.zip |
SONAR-9802 replace Hazelcast clients by members
Web Server and Compute Engine processes must use
plain HZ members but not clients so that they can
be involved in distributed computing (contribute to
api/system/info response)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java | 19 |
1 files changed, 19 insertions, 0 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 1626f3525b8..5bf9ac21c7b 100644 --- a/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java +++ b/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java @@ -38,6 +38,7 @@ import org.junit.rules.TemporaryFolder; import org.junit.rules.TestRule; import org.junit.rules.Timeout; import org.sonarqube.ws.WsSystem; +import org.sonarqube.ws.client.GetRequest; import static com.google.common.base.Preconditions.checkState; import static org.assertj.core.api.Assertions.assertThat; @@ -68,6 +69,24 @@ public class ClusterTest { db.stop(); } + /** + * TODO WIP + */ + @Test + public void wip() throws Exception { + try (Cluster cluster = newCluster(3, 2)) { + cluster.getNodes().forEach(Node::start); + + Node app = cluster.getAppNode(0); + app.waitForHealthGreen(); + + System.out.println("-----------------------------------------------------------------------"); + String json = app.wsClient().wsConnector().call(new GetRequest("api/system/cluster_info")).content(); + System.out.println(json); + System.out.println("-----------------------------------------------------------------------"); + } + } + @Test public void test_high_availability_topology() throws Exception { try (Cluster cluster = newCluster(3, 2)) { |