use of org.elasticsearch.action.admin.cluster.health.ClusterHealthRequestBuilder in project sonarqube by SonarSource.
the class ProxyClusterHealthRequestBuilderTest method trace_logs.
@Test
public void trace_logs() {
logTester.setLevel(LoggerLevel.TRACE);
ClusterHealthRequestBuilder requestBuilder = esTester.client().prepareHealth();
ClusterHealthResponse state = requestBuilder.get();
assertThat(state.getStatus()).isEqualTo(ClusterHealthStatus.GREEN);
assertThat(logTester.logs()).hasSize(1);
}
use of org.elasticsearch.action.admin.cluster.health.ClusterHealthRequestBuilder in project sonarqube by SonarSource.
the class ProxyClusterHealthRequestBuilderTest method state.
@Test
public void state() {
ClusterHealthRequestBuilder requestBuilder = esTester.client().prepareHealth();
ClusterHealthResponse state = requestBuilder.get();
assertThat(state.getStatus()).isEqualTo(ClusterHealthStatus.GREEN);
}
Aggregations