Skip to content

Instantly share code, notes, and snippets.

@jbarotin
Created September 6, 2021 16:00
Show Gist options
  • Save jbarotin/89b2247efcb5f117c38e1c73dc7f372d to your computer and use it in GitHub Desktop.
Save jbarotin/89b2247efcb5f117c38e1c73dc7f372d to your computer and use it in GitHub Desktop.
Sensitive test case
package seaweedfs.client;
import org.junit.Test;
import java.io.IOException;
import java.util.List;
public class SeaweedCaseTest {
@Test
public void testCaseSensitiveFilename() throws IOException {
FilerClient filerClient = new FilerClient("mycluster", 18888);
filerClient.touch("/test/NEW_TEST_File", 0755);
filerClient.touch("/test/new_TEST_FILE", 0755);
List<FilerProto.Entry> entries = filerClient.listEntries("/test");
for (FilerProto.Entry entry : entries) {
System.out.println(entry.toString());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment