From 358fa38cf6180c4fe9b9432ba95bbb19c95fbef2 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Fri, 22 Apr 2016 15:12:35 +0200 Subject: [PATCH] test: fix id, script_lang mix up Original commit: elastic/x-pack-elasticsearch@7c4a3152baf7492882f6cde7442a7bcae316411e --- .../org/elasticsearch/messy/tests/SearchTransformIT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elasticsearch/qa/messy-test-xpack-with-mustache/src/test/java/org/elasticsearch/messy/tests/SearchTransformIT.java b/elasticsearch/qa/messy-test-xpack-with-mustache/src/test/java/org/elasticsearch/messy/tests/SearchTransformIT.java index ee5f7e57920..5d66aa009dc 100644 --- a/elasticsearch/qa/messy-test-xpack-with-mustache/src/test/java/org/elasticsearch/messy/tests/SearchTransformIT.java +++ b/elasticsearch/qa/messy-test-xpack-with-mustache/src/test/java/org/elasticsearch/messy/tests/SearchTransformIT.java @@ -390,8 +390,8 @@ public class SearchTransformIT extends ESIntegTestCase { "\"include_lower\":true,\"include_upper\":true}}}]}}}"; PutStoredScriptRequest indexedScriptRequest = client().admin().cluster().preparePutStoredScript() - .setId("mustache") - .setScriptLang("test-script") + .setId("test-script") + .setScriptLang("mustache") .setSource(new BytesArray(templateQuery)) .request(); assertThat(client().admin().cluster().putStoredScript(indexedScriptRequest).actionGet().isAcknowledged(), is(true)); @@ -408,7 +408,7 @@ public class SearchTransformIT extends ESIntegTestCase { .prepareSearch() .setSearchType(ExecutableSearchTransform.DEFAULT_SEARCH_TYPE) .setIndices("test-search-index") -.setTemplate(template) + .setTemplate(template) .request(); SearchTransform.Result result = executeSearchTransform(request, ctx);