Fix Watcher tests for 'sandbox' option removal

Relates to https://github.com/elastic/elasticsearch/pull/18226

Original commit: elastic/x-pack-elasticsearch@b30d623dfb
This commit is contained in:
Lee Hinman 2016-05-09 15:49:52 -06:00
parent a37cc72329
commit 6e70856cf5
2 changed files with 1 additions and 5 deletions

View File

@ -54,11 +54,6 @@ public class SleepScriptEngine implements ScriptEngineService {
return TYPES;
}
@Override
public boolean isSandboxed() {
return true;
}
@Override
public Object compile(String script, Map<String, String> params) {
return script;

View File

@ -136,6 +136,7 @@ public abstract class AbstractWatcherIntegrationTestCase extends ESIntegTestCase
.put("xpack.watcher.watch.scroll.size", randomIntBetween(1, 100))
.put(ShieldSettings.settings(shieldEnabled))
.put("xpack.watcher.trigger.schedule.engine", scheduleImplName)
.put("script.inline", "true")
.build();
}