test: fix id, script_lang mix up

Original commit: elastic/x-pack-elasticsearch@7c4a3152ba
This commit is contained in:
Martijn van Groningen 2016-04-22 15:12:35 +02:00
parent 4650592150
commit 358fa38cf6
1 changed files with 3 additions and 3 deletions

View File

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