[TEST] Don't wrap query in wrapper query

This is caused by a breaking change in https://github.com/elastic/elasticsearch/pull/14304

Original commit: elastic/x-pack-elasticsearch@b376ad2042
This commit is contained in:
Simon Willnauer 2015-10-27 21:47:11 +01:00
parent f16dabc2bb
commit c74ae7aad2
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ public class SearchTransformTests extends ESIntegTestCase {
// create a bad request // create a bad request
SearchRequest request = Requests.searchRequest("idx").source( SearchRequest request = Requests.searchRequest("idx").source(
new SearchSourceBuilder().query(QueryBuilders.wrapperQuery(jsonBuilder().startObject().startObject("query") new SearchSourceBuilder().query(QueryBuilders.wrapperQuery(jsonBuilder().startObject()
.startObject("_unknown_query_").endObject().endObject().endObject().bytes()))); .startObject("_unknown_query_").endObject().endObject().bytes())));
SearchTransform searchTransform = TransformBuilders.searchTransform(request).build(); SearchTransform searchTransform = TransformBuilders.searchTransform(request).build();
ExecutableSearchTransform transform = new ExecutableSearchTransform(searchTransform, logger, ClientProxy.of(client()), null); ExecutableSearchTransform transform = new ExecutableSearchTransform(searchTransform, logger, ClientProxy.of(client()), null);