From 3fff9f6df174e8f88e0beaceedc615301a70f873 Mon Sep 17 00:00:00 2001 From: Dai MIKURUBE Date: Thu, 8 Feb 2024 19:48:59 +0900 Subject: [PATCH] Fix environment-dependent test failures for the default ssh directory of Apache Commons VFS https://github.com/apache/commons-vfs/blob/rel/commons-vfs-2.9.0/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpClientFactory.java#L281-L293 --- .../java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java b/src/test/java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java index d8be7d5..c4d2e68 100644 --- a/src/test/java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java +++ b/src/test/java/org/embulk/output/sftp/TestSftpFileOutputPlugin.java @@ -165,6 +165,7 @@ public class TestSftpFileOutputPlugin public void createResources() throws IOException { + System.setProperty("vfs.sftp.sshdir", testFolder.newFolder("dotssh").getAbsolutePath()); // setup the plugin SftpFileOutputPlugin sftpFileOutputPlugin = new SftpFileOutputPlugin(); runner = new FileOutputRunner(sftpFileOutputPlugin);