|
@@ -33,15 +33,10 @@ import org.elasticsearch.client.ResponseException;
|
|
|
import org.elasticsearch.client.RestClient;
|
|
|
import org.elasticsearch.client.RestClientBuilder;
|
|
|
import org.elasticsearch.client.WarningsHandler;
|
|
|
-import org.elasticsearch.core.CharArrays;
|
|
|
-import org.elasticsearch.core.CheckedRunnable;
|
|
|
-import org.elasticsearch.core.Nullable;
|
|
|
import org.elasticsearch.common.Strings;
|
|
|
-import org.elasticsearch.core.PathUtils;
|
|
|
import org.elasticsearch.common.settings.SecureString;
|
|
|
import org.elasticsearch.common.settings.Settings;
|
|
|
import org.elasticsearch.common.ssl.PemUtils;
|
|
|
-import org.elasticsearch.core.TimeValue;
|
|
|
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
|
|
import org.elasticsearch.common.util.set.Sets;
|
|
|
import org.elasticsearch.common.xcontent.DeprecationHandler;
|
|
@@ -52,6 +47,11 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|
|
import org.elasticsearch.common.xcontent.XContentType;
|
|
|
import org.elasticsearch.common.xcontent.json.JsonXContent;
|
|
|
import org.elasticsearch.common.xcontent.support.XContentMapValues;
|
|
|
+import org.elasticsearch.core.CharArrays;
|
|
|
+import org.elasticsearch.core.CheckedRunnable;
|
|
|
+import org.elasticsearch.core.Nullable;
|
|
|
+import org.elasticsearch.core.PathUtils;
|
|
|
+import org.elasticsearch.core.TimeValue;
|
|
|
import org.elasticsearch.core.internal.io.IOUtils;
|
|
|
import org.elasticsearch.index.IndexSettings;
|
|
|
import org.elasticsearch.index.seqno.ReplicationTracker;
|
|
@@ -64,7 +64,6 @@ import org.junit.After;
|
|
|
import org.junit.AfterClass;
|
|
|
import org.junit.Before;
|
|
|
|
|
|
-import javax.net.ssl.SSLContext;
|
|
|
import java.io.BufferedReader;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
@@ -97,6 +96,7 @@ import java.util.function.Consumer;
|
|
|
import java.util.function.Predicate;
|
|
|
import java.util.regex.Pattern;
|
|
|
import java.util.stream.Collectors;
|
|
|
+import javax.net.ssl.SSLContext;
|
|
|
|
|
|
import static java.util.Collections.sort;
|
|
|
import static java.util.Collections.unmodifiableList;
|
|
@@ -1010,6 +1010,7 @@ public abstract class ESRestTestCase extends ESTestCase {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
private static void deleteAllAutoFollowPatterns() throws IOException {
|
|
|
final List<Map<?, ?>> patterns;
|
|
|
|