Handle Mustache not using Settings any more
It didn't need them so now it doesn't take them.
Original commit: elastic/x-pack-elasticsearch@f047c3926beff68274461a46d43f69da2b9fe7a4
package org.elasticsearch.smoketest;
import com.fasterxml.jackson.core.io.JsonStringEncoder;
+
import org.elasticsearch.common.Nullable;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentType;
@@ -18,9 +19,8 @@ import org.elasticsearch.script.ScriptSettings;
import org.elasticsearch.script.mustache.MustacheScriptEngineService;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.watcher.ResourceWatcherService;
-import org.elasticsearch.xpack.XPackPlugin;
-import org.elasticsearch.xpack.common.text.TextTemplateEngine;
import org.elasticsearch.xpack.common.text.TextTemplate;
+import org.elasticsearch.xpack.common.text.TextTemplateEngine;
import org.junit.Before;
import org.mockito.Mockito;
@@ -47,7 +47,7 @@ public class WatcherTemplateIT extends ESTestCase {
ScriptContextRegistry registry = new ScriptContextRegistry(Collections.singletonList(new ScriptContext.Plugin("xpack", "watch")));
ScriptEngineRegistry scriptEngineRegistry = new ScriptEngineRegistry(
- Collections.singleton(new MustacheScriptEngineService(setting))
+ Collections.singleton(new MustacheScriptEngineService())
);
ScriptSettings scriptSettings = new ScriptSettings(scriptEngineRegistry, registry);
ScriptService scriptService = new ScriptService(setting, environment, resourceWatcherService, scriptEngineRegistry,
