The hdfs and hadoop common source trees have examples of how to implement CLI tests: Regarding (1) -- SWIFT Abstract Unit tests: a) I've issued a pull request to Steve here , it shows how it works. I think its better than having a dependency on a local hadoop source build : https://github.com/steveloughran/Hadoop-and-Swift-integration/pull/2 b) Thus - the above code and tests will compile if the proper fresh hadoop dependencies are available. Regarding (2) -- CommandLine tests: a) The TestCLI classes were tricky to find. They reside **NOT** in hadoop-common, but in another jar called "hadoop-common-test". Luckily there is a maven repository for this. I'm in the process of integrating these deps into our test framework. b) The TestCLI architecture is as follows: Different hadoop source componenets use it in different ways. hadoop-hdfs implements a comprehensive hdfs test plan: https://svn.apache.org/repos/asf/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml hadoop-common has a trivial one: https://github.com/apache/hadoop-common/blob/trunk/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml *** CURRENT STATUS *** I've added these deps to the current build and am in the process of creating an XML file to test the subset of supported gluster fs functionality.
Copies email with question from brad: Do we need the /bin/hadoop shell client installed to test command line utilities? The answer is (thankfully), no - we can test the functionality of all commands without actually invoking the hadoop command line shell script. For further curiousity ~ just Compare this class (which invokes hadoop cli tasks programmatically) : https://github.com/apache/hadoop-common/blob/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/cli/util/CommandExecutor.java with this script (which is the way we invoke hadoop cli tasks in the real world) https://raw.github.com/apache/hadoop-common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop And you will see exactly whats happening.
UPDATE: So we now have a WIP that runs all the tests. Not 100% confirmed but it appears that we don't support supergroups. This has been revealed in the implementation of hdfs command line tests for glusterfs . See https://svn.apache.org/repos/asf/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml Which has many regular expression criterion for passing : one of which is "supergroup" status. SLF4J: The requested version 1.6.99 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8] SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details. /home/jvyas/Development/hadoop-glusterfs-jayunit100/testHDFSConf.xml 13/04/09 22:56:13 INFO generic.GenericFileSystemTestCLI: TestAll 13/04/09 22:56:13 INFO test.TestCLI: -touchz /file1 13/04/09 22:56:13 INFO glusterfs.GlusterFileSystem: Initializing GlusterFS 13/04/09 22:56:13 INFO glusterfs.GlusterFileSystem: mount -t glusterfs jvyas.csb:/HadoopVol /tmp/gluster-test-mount-point/mount 13/04/09 22:56:13 INFO glusterfs.GlusterFileSystem: mount -t glusterfs jvyas.csb:/HadoopVol /tmp/gluster-test-mount-point/mount 13/04/09 22:56:13 INFO glusterfs.GlusterFileSystem: Initializing GlusterFS 13/04/09 22:56:13 INFO glusterfs.GlusterFileSystem: mount -t glusterfs jvyas.csb:/HadoopVol /tmp/gluster-test-mount-point 13/04/09 22:56:13 INFO glusterfs.GlusterFileSystem: mount -t glusterfs jvyas.csb:/HadoopVol /tmp/gluster-test-mount-point 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT=Confirmed that configuration properties from gluster were found , now creating dirs Now initializing GlusterFS ! - We will mount to /tmp/gluster-test-mount-point/mount server jvyas.csb 13/04/09 22:56:13 INFO test.TestCLI: -ls /file1 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT=Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 13/04/09 22:56:13 INFO test.TestCLI: -mkdir -p dir 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:13 INFO test.TestCLI: -touchz file1 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:13 INFO test.TestCLI: -ls file1 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT=Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 13/04/09 22:56:13 INFO test.TestCLI: -mkdir -p dir 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists mkdir: cannot create directory dir: File exists 13/04/09 22:56:13 INFO test.TestCLI: -touchz file1 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:13 INFO test.TestCLI: -touchz file2 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:13 INFO test.TestCLI: -touchz file3 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:13 INFO test.TestCLI: -touchz file4 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:13 INFO test.TestCLI: -ls file* 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT=ls: String index out of range: -1 13/04/09 22:56:13 INFO test.TestCLI: -mkdir /dir1 13/04/09 22:56:13 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:13 INFO test.TestCLI: -ls / 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 9 items drwxr-xr-x - root 0 2013-04-09 22:51 /mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 drwxr-xr-x - root 0 2013-04-09 22:56 /dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 drwxr-xr-x - root 0 2013-04-09 22:56 /hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /-p -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 drwxr-xr-x - root 0 2013-04-09 22:56 /dir 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p dir1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists mkdir: cannot create directory dir1: File exists 13/04/09 22:56:14 INFO test.TestCLI: -ls 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 9 items drwxr-xr-x - root 0 2013-04-09 22:51 /tmp/gluster-test-mount-point/mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/-p -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p dir1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists mkdir: cannot create directory dir1: File exists 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p dir2 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p dir3 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p dir4 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists 13/04/09 22:56:14 INFO test.TestCLI: -ls 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 12 items drwxr-xr-x - root 0 2013-04-09 22:51 /tmp/gluster-test-mount-point/mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/-p drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir 13/04/09 22:56:14 INFO test.TestCLI: -ls /file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 13/04/09 22:56:14 INFO test.TestCLI: -ls /user 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=ls: Cannot access /user: No such file or directory. 13/04/09 22:56:14 INFO test.TestCLI: -touchz glusterfs:///file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:14 INFO test.TestCLI: -ls glusterfs:///file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 13/04/09 22:56:14 INFO test.TestCLI: -touchz /file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:14 INFO test.TestCLI: -ls /file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 13/04/09 22:56:14 INFO test.TestCLI: -touchz glusterfs:///file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:14 INFO test.TestCLI: -touchz glusterfs:///file2 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:14 INFO test.TestCLI: -touchz glusterfs:///file3 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:14 INFO test.TestCLI: -ls glusterfs:///file* 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=-rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 13/04/09 22:56:14 INFO test.TestCLI: -touchz /file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:14 INFO test.TestCLI: -touchz /file2 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:14 INFO test.TestCLI: -touchz /file3 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT= 13/04/09 22:56:14 INFO test.TestCLI: -ls /file* 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=-rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p glusterfs:///user/dir1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists 13/04/09 22:56:14 INFO test.TestCLI: -ls /user/ 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 1 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p /user/dir1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists mkdir: cannot create directory /user/dir1: File exists 13/04/09 22:56:14 INFO test.TestCLI: -ls /user/ 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 1 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p glusterfs:///user/dir1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists mkdir: cannot create directory glusterfs:///user/dir1: File exists 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p glusterfs:///user/dir2 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p glusterfs:///user/dir3 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists 13/04/09 22:56:14 INFO test.TestCLI: -ls /user/ 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p /user/dir1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists mkdir: cannot create directory /user/dir1: File exists 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p /user/dir2 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists mkdir: cannot create directory /user/dir2: File exists 13/04/09 22:56:14 INFO test.TestCLI: -mkdir -p /user/dir3 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=mkdir: cannot create directory -p: File exists mkdir: cannot create directory /user/dir3: File exists 13/04/09 22:56:14 INFO test.TestCLI: -ls /user/ 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 13/04/09 22:56:14 INFO test.TestCLI: -ls /file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 13/04/09 22:56:14 INFO test.TestCLI: -ls glusterfs:///file1 13/04/09 22:56:14 INFO test.TestCLI: OUTPUT=Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 13/04/09 22:56:14 INFO cli.CLITestHelper: Detailed results: 13/04/09 22:56:14 INFO cli.CLITestHelper: ---------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: file using absolute path] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [TokenComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [pass] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found 1 items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: file using relative path] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p dir] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [TokenComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [pass] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found 1 items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: files using globbing] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p dir] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz file2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz file3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz file4] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls file*] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm -r /user] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [ls: String index out of range: -1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [ls: String index out of range: -1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [ls: String index out of range: -1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file4] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [ls: String index out of range: -1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [4] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: directory using absolute path] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir /dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm -r /dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [TokenComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found 1 items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 9 items drwxr-xr-x - root 0 2013-04-09 22:51 /mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 drwxr-xr-x - root 0 2013-04-09 22:56 /dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 drwxr-xr-x - root 0 2013-04-09 22:56 /hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /-p -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 drwxr-xr-x - root 0 2013-04-09 22:56 /dir ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 9 items drwxr-xr-x - root 0 2013-04-09 22:51 /mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 drwxr-xr-x - root 0 2013-04-09 22:56 /dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 drwxr-xr-x - root 0 2013-04-09 22:56 /hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /-p -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 drwxr-xr-x - root 0 2013-04-09 22:56 /dir ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [5] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: directory using relative path] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm -r dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [TokenComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found 1 items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 9 items drwxr-xr-x - root 0 2013-04-09 22:51 /tmp/gluster-test-mount-point/mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/-p -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 9 items drwxr-xr-x - root 0 2013-04-09 22:51 /tmp/gluster-test-mount-point/mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/-p -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [6] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: directory using globbing] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p dir2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p dir3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p dir4] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm -r /user] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 12 items drwxr-xr-x - root 0 2013-04-09 22:51 /tmp/gluster-test-mount-point/mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/-p drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 12 items drwxr-xr-x - root 0 2013-04-09 22:51 /tmp/gluster-test-mount-point/mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/-p drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 12 items drwxr-xr-x - root 0 2013-04-09 22:51 /tmp/gluster-test-mount-point/mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/-p drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir4] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 12 items drwxr-xr-x - root 0 2013-04-09 22:51 /tmp/gluster-test-mount-point/mount -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/hadoop-temp drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/-p drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir3 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file4 -rw-r--r-- 0 root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/file1 drwxr-xr-x - root 0 2013-04-09 22:56 /tmp/gluster-test-mount-point/dir ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [7] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: file/directory that does not exist in /] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^ls: `/file1': No such file or directory] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [8] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: file/directory that does not exist in home directory (/user/username)] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /user] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^ls: `/user': No such file or directory] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [ls: Cannot access /user: No such file or directory. ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [9] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: Non-URI input file at glusterfs://'s path] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz glusterfs:///file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls glusterfs:///file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm glusterfs:///file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [TokenComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [pass] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found 1 items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*glusterfs:///file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [10] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: file at path] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [TokenComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [pass] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found 1 items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [11] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: Non-URI input file at glusterfs://'s path using globing] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz glusterfs:///file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz glusterfs:///file2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz glusterfs:///file3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls glusterfs:///file*] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm glusterfs:///file*] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*glusterfs:///file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [-rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*glusterfs:///file2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [-rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*glusterfs:///file3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [-rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [12] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: file at path using globing] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz /file2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-touchz /file3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /file*] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm /file*] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [-rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/file2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [-rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/file3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [-rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file2 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file3 -rw-r--r-- 0 root 0 2013-04-09 22:56 /file4 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [13] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: Non-URI input dir at glusterfs://'s path] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p glusterfs:///user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /user/] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm /user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [pass] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found [0-9] items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [14] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: dir at path] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p /user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /user/] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm /user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [pass] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found [0-9] items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [15] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: Non-URI input dir at glusterfs://'s path using globing] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p glusterfs:///user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p glusterfs:///user/dir2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p glusterfs:///user/dir3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /user/] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm /user/dir*] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [pass] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found [0-9] items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/user/dir2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/user/dir3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [16] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: dir at path using globing] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p /user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p /user/dir2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-mkdir -p /user/dir3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /user/] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Cleanup Commands: [-rm /user/dir*] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [pass] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [Found [0-9] items] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/user/dir1] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/user/dir2] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^drwxr-xr-x( )*-( )*[a-zA-z0-9]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/user/dir3] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 3 items drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir1 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir2 drwxr-xr-x - root 0 2013-04-09 22:56 /user/dir3 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [17] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: non-existent file/directory at path ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls /file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^ls: `/file1': No such file or directory] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: ------------------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Test ID: [18] 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Description: [ls: non-existent file/directory in glusterfs://'s path ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Test Commands: [-ls glusterfs:///file1] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparator: [RegexpComparator] 13/04/09 22:56:14 INFO cli.CLITestHelper: Comparision result: [fail] 13/04/09 22:56:14 INFO cli.CLITestHelper: Expected output: [^ls: `\w+[-.a-z0-9]*:[0-9]+/file1': No such file or directory] 13/04/09 22:56:14 INFO cli.CLITestHelper: Actual output: [Found 1 items -rw-r--r-- 0 root 0 2013-04-09 22:56 /file1 ] 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Summary results: 13/04/09 22:56:14 INFO cli.CLITestHelper: ---------------------------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: Testing mode: test 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Overall result: --- FAIL --- 13/04/09 22:56:14 INFO cli.CLITestHelper: # Tests pass: 0 (0%) 13/04/09 22:56:14 INFO cli.CLITestHelper: # Tests fail: 18 (100%) 13/04/09 22:56:14 INFO cli.CLITestHelper: # Validations done: 42 (each test may do multiple validations) 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Failing tests: 13/04/09 22:56:14 INFO cli.CLITestHelper: -------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: 1: ls: file using absolute path 13/04/09 22:56:14 INFO cli.CLITestHelper: 2: ls: file using relative path 13/04/09 22:56:14 INFO cli.CLITestHelper: 3: ls: files using globbing 13/04/09 22:56:14 INFO cli.CLITestHelper: 4: ls: directory using absolute path 13/04/09 22:56:14 INFO cli.CLITestHelper: 5: ls: directory using relative path 13/04/09 22:56:14 INFO cli.CLITestHelper: 6: ls: directory using globbing 13/04/09 22:56:14 INFO cli.CLITestHelper: 7: ls: file/directory that does not exist in / 13/04/09 22:56:14 INFO cli.CLITestHelper: 8: ls: file/directory that does not exist in home directory (/user/username) 13/04/09 22:56:14 INFO cli.CLITestHelper: 9: ls: Non-URI input file at glusterfs://'s path 13/04/09 22:56:14 INFO cli.CLITestHelper: 10: ls: file at path 13/04/09 22:56:14 INFO cli.CLITestHelper: 11: ls: Non-URI input file at glusterfs://'s path using globing 13/04/09 22:56:14 INFO cli.CLITestHelper: 12: ls: file at path using globing 13/04/09 22:56:14 INFO cli.CLITestHelper: 13: ls: Non-URI input dir at glusterfs://'s path 13/04/09 22:56:14 INFO cli.CLITestHelper: 14: ls: dir at path 13/04/09 22:56:14 INFO cli.CLITestHelper: 15: ls: Non-URI input dir at glusterfs://'s path using globing 13/04/09 22:56:14 INFO cli.CLITestHelper: 16: ls: dir at path using globing 13/04/09 22:56:14 INFO cli.CLITestHelper: 17: ls: non-existent file/directory at path 13/04/09 22:56:14 INFO cli.CLITestHelper: 18: ls: non-existent file/directory in glusterfs://'s path 13/04/09 22:56:14 INFO cli.CLITestHelper: 13/04/09 22:56:14 INFO cli.CLITestHelper: Passing tests: 13/04/09 22:56:14 INFO cli.CLITestHelper: -------------- 13/04/09 22:56:14 INFO cli.CLITestHelper: NONE
*** NEXT STEP *** As per mattf guidelines appropriate next step is to "bin" all the errors based on the cause. *** AFTER THAT *** Since "supergroup" is a major cause of failing tests, the next phase of this work will be reconciling: 1) The HDFS permissions model (which is internal to HDFS's namenode and enforced at the application layer) with 2) the OS level permissions that rule the FUSE file operasions. Some helpful links to understand whats going on: The hadoop permissions guide -- HDFS and the BSD permissions model: * http://hadoop.apache.org/docs/r1.1.2/hdfs_permissions_guide.html and This very instructive mailing-list post on "why my group privileges change when i issue copyOnLocal" which is (essentially) the same problem we're seeing here: * http://mail-archives.apache.org/mod_mbox/hadoop-common-user/201209.mbox/%3CCAOcnVr1==RLh0PThueyBha=nfqV1_6BN4S-R4B4YKt+G8N2L+Q@mail.gmail.com%3E