test: single type defaults to true since alpha1 and not alpha3

Closes #25354
This commit is contained in:
Martijn van Groningen 2017-06-22 16:29:08 +02:00
parent 97a2c4523d
commit 343e7571b9
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 1 additions and 1 deletions

View File

@ -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"));