fixed errors after cherry-picking 2 commits

This commit is contained in:
Martijn van Groningen 2019-08-23 13:51:00 +02:00
parent 6067065ed6
commit a38e6850a5
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,6 @@ import org.elasticsearch.ingest.ConfigurationUtils;
import org.elasticsearch.ingest.Processor;
import org.elasticsearch.xpack.core.enrich.EnrichPolicy;
import java.util.Collections;
import java.util.Map;
import java.util.function.Consumer;

View File

@ -19,6 +19,7 @@ import org.elasticsearch.xpack.core.enrich.EnrichPolicy;
import org.elasticsearch.xpack.core.enrich.action.ExecuteEnrichPolicyAction;
import org.elasticsearch.xpack.core.enrich.action.PutEnrichPolicyAction;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
@ -29,7 +30,7 @@ public class EnrichPolicyUpdateTests extends ESSingleNodeTestCase {
@Override
protected Collection<Class<? extends Plugin>> getPlugins() {
return Collections.singleton(LocalStateEnrich.class, ReindexPlugin.class);
return Arrays.asList(LocalStateEnrich.class, ReindexPlugin.class);
}
public void testUpdatePolicyOnly() {