mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-26 14:00:23 -05:00
Compare commits
4 Commits
dependabot
...
v0.14.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
668380eb34 | ||
|
|
0308e8e262 | ||
|
|
8fcde439bd | ||
|
|
cc59ac0713 |
@@ -62,7 +62,7 @@ abstract public class PluginUtilsService {
|
|||||||
tempFile = File.createTempFile(s + "_", null, tempDirectory.toFile());
|
tempFile = File.createTempFile(s + "_", null, tempDirectory.toFile());
|
||||||
}
|
}
|
||||||
|
|
||||||
result.put(s, "{{workingDir}}/" + tempFile.getName());
|
result.put(s, additionalVars.get("workingDir") + "/" + tempFile.getName());
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (!isDir) {
|
if (!isDir) {
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package io.kestra.core.tasks;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import static org.hamcrest.MatcherAssert.assertThat;
|
||||||
|
import static org.hamcrest.Matchers.startsWith;
|
||||||
|
|
||||||
|
public class PluginUtilsServiceTest {
|
||||||
|
@Test
|
||||||
|
void outputFiles() throws IOException {
|
||||||
|
Path tempDirectory = Files.createTempDirectory("plugin-utils");
|
||||||
|
Map<String, String> outputFilesMap = PluginUtilsService.createOutputFiles(
|
||||||
|
tempDirectory,
|
||||||
|
List.of("out"),
|
||||||
|
new HashMap<>(Map.of("workingDir", tempDirectory.toAbsolutePath().toString()))
|
||||||
|
);
|
||||||
|
|
||||||
|
assertThat(outputFilesMap.get("out"), startsWith(tempDirectory.resolve("out_").toString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
version=0.14.0
|
version=0.14.3
|
||||||
|
|
||||||
jacksonVersion=2.15.2
|
jacksonVersion=2.15.2
|
||||||
micronautVersion=3.10.1
|
micronautVersion=3.10.1
|
||||||
|
|||||||
Reference in New Issue
Block a user