From c74ae7aad2e882f70d639c488fa736097bc96d86 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 27 Oct 2015 21:47:11 +0100 Subject: [PATCH] [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@b376ad20420bf8afef369327c6610e39f21fe5f7 --- .../watcher/transform/search/SearchTransformTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watcher/src/test/java/org/elasticsearch/watcher/transform/search/SearchTransformTests.java b/watcher/src/test/java/org/elasticsearch/watcher/transform/search/SearchTransformTests.java index a975cf2cd91..5142007fcfe 100644 --- a/watcher/src/test/java/org/elasticsearch/watcher/transform/search/SearchTransformTests.java +++ b/watcher/src/test/java/org/elasticsearch/watcher/transform/search/SearchTransformTests.java @@ -169,8 +169,8 @@ public class SearchTransformTests extends ESIntegTestCase { // create a bad request SearchRequest request = Requests.searchRequest("idx").source( - new SearchSourceBuilder().query(QueryBuilders.wrapperQuery(jsonBuilder().startObject().startObject("query") - .startObject("_unknown_query_").endObject().endObject().endObject().bytes()))); + new SearchSourceBuilder().query(QueryBuilders.wrapperQuery(jsonBuilder().startObject() + .startObject("_unknown_query_").endObject().endObject().bytes()))); SearchTransform searchTransform = TransformBuilders.searchTransform(request).build(); ExecutableSearchTransform transform = new ExecutableSearchTransform(searchTransform, logger, ClientProxy.of(client()), null);