Merge branch 'master' into feature/show-username

Original commit: elastic/x-pack-elasticsearch@40649abc6c
This commit is contained in:
Lukas Olson 2016-05-13 12:54:48 -07:00
commit b576cccde9
2 changed files with 4 additions and 5 deletions

View File

@ -46,12 +46,11 @@ public class MockMustacheScriptEngine extends MockScriptEngine {
} }
@Override @Override
public Object compile(String script, Map<String, String> params) { public Object compile(String name, String script, Map<String, String> params) {
if (script.contains("{{") && script.contains("}}")) { if (script.contains("{{") && script.contains("}}")) {
throw new IllegalArgumentException("Fix your test to not rely on mustache"); throw new IllegalArgumentException("Fix your test to not rely on mustache");
} }
return script; return super.compile(name, script, params);
} }
} }

View File

@ -55,8 +55,8 @@ public class SleepScriptEngine implements ScriptEngineService {
} }
@Override @Override
public Object compile(String script, Map<String, String> params) { public Object compile(String scriptName, String scriptSource, Map<String, String> params) {
return script; return scriptSource;
} }
@Override @Override