mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 22:36:20 +00:00
Merge branch 'master' into feature/show-username
Original commit: elastic/x-pack-elasticsearch@40649abc6c
This commit is contained in:
commit
b576cccde9
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user