mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 00:49:11 +00:00
Test: pass down parameters
Original commit: elastic/x-pack-elasticsearch@2210246872
This commit is contained in:
parent
4934267789
commit
42716a5adb
@ -39,11 +39,11 @@ public abstract class AbstractAlertsSingleNodeTests extends ElasticsearchSingleN
|
||||
}
|
||||
|
||||
protected IndexResponse index(String index, String type, String id) {
|
||||
return index(index, type, id, Collections.EMPTY_MAP);
|
||||
return index(index, type, id, Collections.<String, Object>emptyMap());
|
||||
}
|
||||
|
||||
protected IndexResponse index(String index, String type, String id, Map<String, Object> doc) {
|
||||
return client().prepareIndex("idx", "type", "1").setSource(doc).get();
|
||||
return client().prepareIndex(index, type, id).setSource(doc).get();
|
||||
}
|
||||
|
||||
protected ClusterHealthStatus ensureGreen(String... indices) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user