Skip to content

Commit

Permalink
Add UT
Browse files Browse the repository at this point in the history
  • Loading branch information
e-mhui committed Jan 12, 2025
1 parent f897337 commit a0f5505
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ public void startUp() throws Exception {
"/home/seatunnel/tmp/seatunnel/read/xml/name=tyrantlucifer/hobby=coding/e2e.xml",
sftpContainer);

// Windows does not support files with wildcard characters. We can rename `e2e.txt` to
// `e*e.txt` when copying to a container
ContainerUtil.copyFileIntoContainers(
"/wildcard/e*e.txt",
"/wildcard/e2e.txt",
"/home/seatunnel/tmp/seatunnel/read/wildcard/e*e.txt",
sftpContainer);

Expand Down Expand Up @@ -208,7 +210,7 @@ public void testSftpFileWithWildcardRead(TestContainer container)
TestHelper helper = new TestHelper(container);
// test read file wit wildcard character, should match tmp/seatunnel/read/wildcard/e*e.txt
// and tmp/seatunnel/read/wildcard/e2e.txt
helper.execute("/wildcard/sftp_file_text_wildcard_character_to_assert.conf");
helper.execute("/text/sftp_file_text_wildcard_character_to_assert.conf");
}

@SneakyThrows
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit a0f5505

Please sign in to comment.