test: single type defaults to true since alpha1 and not alpha3
Closes #25354
This commit is contained in:
parent
97a2c4523d
commit
343e7571b9
|
@ -218,7 +218,7 @@ public class PercolateQueryBuilderTests extends AbstractQueryTestCase<PercolateQ
|
||||||
public void testFromJsonNoDocumentType() throws IOException {
|
public void testFromJsonNoDocumentType() throws IOException {
|
||||||
QueryShardContext queryShardContext = createShardContext();
|
QueryShardContext queryShardContext = createShardContext();
|
||||||
QueryBuilder queryBuilder = parseQuery("{\"percolate\" : { \"document\": {}, \"field\":\"" + queryField + "\"}}");
|
QueryBuilder queryBuilder = parseQuery("{\"percolate\" : { \"document\": {}, \"field\":\"" + queryField + "\"}}");
|
||||||
if (indexVersionCreated.before(Version.V_6_0_0_alpha3)) {
|
if (indexVersionCreated.before(Version.V_6_0_0_alpha1)) {
|
||||||
IllegalArgumentException e = expectThrows(IllegalArgumentException.class,
|
IllegalArgumentException e = expectThrows(IllegalArgumentException.class,
|
||||||
() -> queryBuilder.toQuery(queryShardContext));
|
() -> queryBuilder.toQuery(queryShardContext));
|
||||||
assertThat(e.getMessage(), equalTo("[percolate] query is missing required [document_type] parameter"));
|
assertThat(e.getMessage(), equalTo("[percolate] query is missing required [document_type] parameter"));
|
||||||
|
|
Loading…
Reference in New Issue