Ignore template warnings in IndexingIT (#59962) (#60482)

This commit is contained in:
Dan Hermann 2020-07-30 14:54:30 -05:00 committed by GitHub
parent 2d2b74dd32
commit da69644498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,7 @@ import static org.hamcrest.Matchers.equalTo;
* duplication but for now we have no real way to share code.
*/
public class IndexingIT extends AbstractRollingTestCase {
public void testIndexing() throws IOException {
switch (CLUSTER_TYPE) {
case OLD:
@ -103,11 +104,13 @@ public class IndexingIT extends AbstractRollingTestCase {
String recoverQuickly = "{\"settings\": {\"index.unassigned.node_left.delayed_timeout\": \"100ms\"}}";
Request createIndexWithReplicas = new Request("PUT", "/index_with_replicas");
createIndexWithReplicas.setJsonEntity(recoverQuickly);
useIgnoreMultipleMatchingTemplatesWarningsHandler(createIndexWithReplicas);
client().performRequest(createIndexWithReplicas);
Request createEmptyIndex = new Request("PUT", "/empty_index");
// Ask for recovery to be quick
createEmptyIndex.setJsonEntity(recoverQuickly);
useIgnoreMultipleMatchingTemplatesWarningsHandler(createEmptyIndex);
client().performRequest(createEmptyIndex);
bulk("test_index", "_OLD", 5);