|
|
@@ -12,6 +12,7 @@ import org.elasticsearch.action.ActionListener;
|
|
|
import org.elasticsearch.action.ActionRequest;
|
|
|
import org.elasticsearch.action.ActionResponse;
|
|
|
import org.elasticsearch.action.ActionType;
|
|
|
+import org.elasticsearch.action.DocWriteRequest.OpType;
|
|
|
import org.elasticsearch.action.index.IndexAction;
|
|
|
import org.elasticsearch.action.index.IndexRequest;
|
|
|
import org.elasticsearch.action.index.IndexResponse;
|
|
|
@@ -162,6 +163,7 @@ public class GeoIpDownloaderTests extends ESTestCase {
|
|
|
|
|
|
client.addHandler(IndexAction.INSTANCE, (IndexRequest request, ActionListener<IndexResponse> listener) -> {
|
|
|
int chunk = chunkIndex.getAndIncrement();
|
|
|
+ assertEquals(OpType.CREATE, request.opType());
|
|
|
assertEquals("test_" + (chunk + 15), request.id());
|
|
|
assertEquals(XContentType.SMILE, request.getContentType());
|
|
|
Map<String, Object> source = request.sourceAsMap();
|