[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:
parent
7be5ee5f28
commit
2eaf7534f3
|
@ -101,7 +101,7 @@ public final class IndexSettings {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Index setting describing the maximum value of allowed `script_fields`that can be retrieved
|
* 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.
|
* script fields is a costly operation.
|
||||||
*/
|
*/
|
||||||
public static final Setting<Integer> MAX_SCRIPT_FIELDS_SETTING =
|
public static final Setting<Integer> MAX_SCRIPT_FIELDS_SETTING =
|
||||||
|
|
|
@ -5,6 +5,7 @@ setup:
|
||||||
body:
|
body:
|
||||||
settings:
|
settings:
|
||||||
index.max_docvalue_fields_search: 2
|
index.max_docvalue_fields_search: 2
|
||||||
|
index.max_script_fields: 2
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
index:
|
index:
|
||||||
|
@ -72,21 +73,11 @@ setup:
|
||||||
|
|
||||||
---
|
---
|
||||||
"Script_fields size limit":
|
"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:
|
- 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\./
|
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:
|
search:
|
||||||
index: test_2
|
index: test_1
|
||||||
body:
|
body:
|
||||||
query:
|
query:
|
||||||
match_all: {}
|
match_all: {}
|
||||||
|
|
Loading…
Reference in New Issue