Types removal fix FullClusterRestartIT warnings (#38445)

Backport PR #38389 for 6.7 produces warnings for rollover test.
This fixes FullClusterRestartIT warning expectations
for rollover request

Relates to #38389
This commit is contained in:
Mayya Sharipova 2019-02-05 14:15:43 -05:00 committed by GitHub
parent 3ce7d2c9b6
commit e4fa32470b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -518,6 +518,7 @@ public class FullClusterRestartIT extends AbstractFullClusterRestartTestCase {
if (isRunningAgainstOldCluster()) {
Request rolloverRequest = new Request("POST", "/" + index + "_write/_rollover");
rolloverRequest.setOptions(allowTypeRemovalWarnings());
rolloverRequest.setJsonEntity("{"
+ " \"conditions\": {"
+ " \"max_docs\": 5"