test: fix id, script_lang mix up
Original commit: elastic/x-pack-elasticsearch@7c4a3152ba
This commit is contained in:
parent
4650592150
commit
358fa38cf6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue