use of org.elasticsearch.client.Request in project datashare by ICIJ.
the class ElasticsearchConfigurationTest method test_create_client_creates_settings.
@Test
public void test_create_client_creates_settings() throws Exception {
ElasticsearchConfiguration.createESClient(new PropertiesProvider());
Response response = es.client.getLowLevelClient().performRequest(new Request("GET", TEST_INDEX));
assertThat(EntityUtils.toString(response.getEntity())).contains("settings");
}
Aggregations