Always use mustache language

Using a null language just defaults to painless which is wrong for
watcher.

Original commit: elastic/x-pack-elasticsearch@48bdc31695
This commit is contained in:
Nik Everett 2016-09-06 15:45:23 -04:00
parent 05222b0d3f
commit edb8c12f75
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public class WatcherUtilsTests extends ESTestCase {
} }
String text = randomAsciiOfLengthBetween(1, 5); String text = randomAsciiOfLengthBetween(1, 5);
ScriptService.ScriptType scriptType = randomFrom(ScriptService.ScriptType.values()); ScriptService.ScriptType scriptType = randomFrom(ScriptService.ScriptType.values());
template = new Script(text, scriptType, randomBoolean() ? null : "mustache", params); template = new Script(text, scriptType, "mustache", params);
builder.field("template", template); builder.field("template", template);
} }
builder.endObject(); builder.endObject();