Skip to content

Commit

Permalink
Added index creation and removed TODOs for TransportClient
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonygauthier committed Mar 21, 2018
1 parent e1e6d72 commit 523d23e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import com.google.gson.Gson;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.HttpStatus;
Expand Down Expand Up @@ -62,9 +61,6 @@ public Arguments getDefaultParameters() {
parameters.addArgument(ES_TIMEOUT_MS, Long.toString(DEFAULT_TIMEOUT_MS));
parameters.addArgument(ES_SAMPLE_FILTER, null);
parameters.addArgument(ES_TEST_MODE, "info");
//TODO. In future version - add the support for TransportClient as well for the possibility to choose the ElasticSearch version
//parameters.addArgument(ES_TRANSPORT_CLIENT, "false");
//parameters.addArgument(ES_TRANSPORT_VERSION, "6.2.0");
return parameters;
}

Expand Down Expand Up @@ -97,6 +93,7 @@ public void onFailure(HttpHost host) {
this.filters.add(filter);
}
}
this.client.performRequest("PUT", "/"+ this.index);
super.setupTest(context);
} catch (Exception e) {
throw new IllegalStateException("Unable to connect to the ElasticSearch engine", e);
Expand Down

0 comments on commit 523d23e

Please sign in to comment.