Skip to content

Commit 0a850f0

Browse files
committed
Handle deprecation warnings in a permissive manner
Relates to #37290
1 parent 7e4c0e6 commit 0a850f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/MlMigrationFullClusterRestartIT.java

+5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
import org.elasticsearch.Version;
99
import org.elasticsearch.client.Request;
10+
import org.elasticsearch.client.RequestOptions;
1011
import org.elasticsearch.client.Response;
12+
import org.elasticsearch.client.WarningsHandler;
1113
import org.elasticsearch.common.Strings;
1214
import org.elasticsearch.common.settings.Settings;
1315
import org.elasticsearch.common.unit.TimeValue;
@@ -70,6 +72,9 @@ private void createTestIndex() throws IOException {
7072
"\"airline\": {\"type\": \"keyword\"}," +
7173
"\"responsetime\": {\"type\": \"float\"}" +
7274
"}}}}");
75+
RequestOptions.Builder options = createTestIndex.getOptions().toBuilder();
76+
options.setWarningsHandler(WarningsHandler.PERMISSIVE);
77+
createTestIndex.setOptions(options);
7378
client().performRequest(createTestIndex);
7479
}
7580

0 commit comments

Comments
 (0)