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

View File

@ -390,8 +390,8 @@ public class SearchTransformIT extends ESIntegTestCase {
"\"include_lower\":true,\"include_upper\":true}}}]}}}"; "\"include_lower\":true,\"include_upper\":true}}}]}}}";
PutStoredScriptRequest indexedScriptRequest = client().admin().cluster().preparePutStoredScript() PutStoredScriptRequest indexedScriptRequest = client().admin().cluster().preparePutStoredScript()
.setId("mustache") .setId("test-script")
.setScriptLang("test-script") .setScriptLang("mustache")
.setSource(new BytesArray(templateQuery)) .setSource(new BytesArray(templateQuery))
.request(); .request();
assertThat(client().admin().cluster().putStoredScript(indexedScriptRequest).actionGet().isAcknowledged(), is(true)); assertThat(client().admin().cluster().putStoredScript(indexedScriptRequest).actionGet().isAcknowledged(), is(true));
@ -408,7 +408,7 @@ public class SearchTransformIT extends ESIntegTestCase {
.prepareSearch() .prepareSearch()
.setSearchType(ExecutableSearchTransform.DEFAULT_SEARCH_TYPE) .setSearchType(ExecutableSearchTransform.DEFAULT_SEARCH_TYPE)
.setIndices("test-search-index") .setIndices("test-search-index")
.setTemplate(template) .setTemplate(template)
.request(); .request();
SearchTransform.Result result = executeSearchTransform(request, ctx); SearchTransform.Result result = executeSearchTransform(request, ctx);