[Tests] Removing skipping tests in search rest tests

After backporting the script_field soft limit to the 6.x branches, this test can
now also run in a mixed cluster.

Relates to #26598

 enter the commit message for your changes. Lines starting
This commit is contained in:
Christoph Büscher 2017-09-13 18:21:15 +02:00
parent 7be5ee5f28
commit 2eaf7534f3
2 changed files with 3 additions and 12 deletions

View File

@ -101,7 +101,7 @@ public final class IndexSettings {
/**
* Index setting describing the maximum value of allowed `script_fields`that can be retrieved
* per search request. The default maximum of 50 is defensive for the reason that retrieving
* per search request. The default maximum of 32 is defensive for the reason that retrieving
* script fields is a costly operation.
*/
public static final Setting<Integer> MAX_SCRIPT_FIELDS_SETTING =

View File

@ -5,6 +5,7 @@ setup:
body:
settings:
index.max_docvalue_fields_search: 2
index.max_script_fields: 2
- do:
index:
@ -72,21 +73,11 @@ setup:
---
"Script_fields size limit":
- skip:
version: " - 6.99.99"
reason: soft limit for script_fields only available as of 7.0.0
- do:
indices.create:
index: test_2
body:
settings:
index.max_script_fields: 2
- do:
catch: /Trying to retrieve too many script_fields\. Must be less than or equal to[:] \[2\] but was \[3\]\. This limit can be set by changing the \[index.max_script_fields\] index level setting\./
search:
index: test_2
index: test_1
body:
query:
match_all: {}