[TEST] renamed variables in ScriptServiceTests
This commit is contained in:
parent
6aec68cd29
commit
ebe1a4663d
|
@ -99,10 +99,10 @@ public class ScriptServiceTests extends ElasticsearchTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testScriptsSameNameDifferentLanguage() throws IOException {
|
public void testScriptsSameNameDifferentLanguage() throws IOException {
|
||||||
Path testFileNoExt = scriptsFilePath.resolve("script.groovy");
|
Path groovyScriptPath = scriptsFilePath.resolve("script.groovy");
|
||||||
Path testFileWithExt = scriptsFilePath.resolve("script.expression");
|
Path expScriptPath = scriptsFilePath.resolve("script.expression");
|
||||||
Streams.copy("10".getBytes("UTF-8"), Files.newOutputStream(testFileNoExt));
|
Streams.copy("10".getBytes("UTF-8"), Files.newOutputStream(groovyScriptPath));
|
||||||
Streams.copy("20".getBytes("UTF-8"), Files.newOutputStream(testFileWithExt));
|
Streams.copy("20".getBytes("UTF-8"), Files.newOutputStream(expScriptPath));
|
||||||
resourceWatcherService.notifyNow();
|
resourceWatcherService.notifyNow();
|
||||||
|
|
||||||
CompiledScript groovyScript = scriptService.compile(GroovyScriptEngineService.NAME, "script", ScriptService.ScriptType.FILE);
|
CompiledScript groovyScript = scriptService.compile(GroovyScriptEngineService.NAME, "script", ScriptService.ScriptType.FILE);
|
||||||
|
@ -120,8 +120,8 @@ public class ScriptServiceTests extends ElasticsearchTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFileScriptCompiledOnceMultipleLangAcronyms() throws IOException {
|
public void testFileScriptCompiledOnceMultipleLangAcronyms() throws IOException {
|
||||||
Path testFileWithExt = scriptsFilePath.resolve("test_script.tst");
|
Path scriptPath = scriptsFilePath.resolve("test_script.tst");
|
||||||
Streams.copy("test_file".getBytes("UTF-8"), Files.newOutputStream(testFileWithExt));
|
Streams.copy("test_file".getBytes("UTF-8"), Files.newOutputStream(scriptPath));
|
||||||
resourceWatcherService.notifyNow();
|
resourceWatcherService.notifyNow();
|
||||||
|
|
||||||
CompiledScript compiledScript1 = scriptService.compile("test", "test_script", ScriptService.ScriptType.FILE);
|
CompiledScript compiledScript1 = scriptService.compile("test", "test_script", ScriptService.ScriptType.FILE);
|
||||||
|
|
Loading…
Reference in New Issue