Tests: Fix failing test

Caused by removing search QUERY_AND_FETCH

Original commit: elastic/x-pack-elasticsearch@18070b40bb
This commit is contained in:
Alexander Reelsen 2017-02-06 19:40:15 +01:00
parent 14e97565fa
commit 752356916d
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ public class HistoryTemplateSearchInputMappingsTests extends AbstractWatcherInte
Terms terms = aggs.get("input_search_type");
assertThat(terms, notNullValue());
assertThat(terms.getBuckets().size(), is(1));
assertThat(terms.getBucketByKey("query_and_fetch"), notNullValue());
assertThat(terms.getBucketByKey("query_and_fetch").getDocCount(), is(1L));
assertThat(terms.getBucketByKey("query_then_fetch"), notNullValue());
assertThat(terms.getBucketByKey("query_then_fetch").getDocCount(), is(1L));
terms = aggs.get("input_indices");
assertThat(terms, notNullValue());