| <?xml version="1.0" encoding="UTF-8"?> |
| <?xml-stylesheet type="text/xsl" href="testConf.xsl"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <configuration> |
| <!-- Normal mode is test. To run just the commands and dump the output |
| to the log, set it to nocompare --> |
| <mode>test</mode> |
| |
| <!-- Comparator types: |
| ExactComparator |
| SubstringComparator |
| RegexpComparator |
| TokenComparator |
| --> |
| <!-- Modified for Bigtop TestCLI tests to work on a real cluster. |
| Added TEST_DIR_ABSOLUTE and USER_NAME variables. |
| Added test-id in comment for easy editing. |
| Removed failing tests. |
| FIXME See BIGTOP-895 for details. |
| test-id not renumbered after test removal. |
| --> |
| <tests> |
| <!-- Tests for ls --> |
| <test> <!-- TESTED test-id=1 --> |
| <description>ls: file using absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=2 --> |
| <description>ls: file using relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -ls file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=3 --> |
| <description>ls: files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -ls file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=4 --> |
| <description>ls: directory using absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=5 --> |
| <description>ls: directory using relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir1</command> |
| <command>-fs NAMENODE -ls </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=6 --> |
| <description>ls: directory using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir3</command> |
| <command>-fs NAMENODE -mkdir -p dir4</command> |
| <command>-fs NAMENODE -ls </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=7 --> |
| <description>ls: file/directory that does not exist in TEST_DIR_ABSOLUTE</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=8 xxx --> |
| <description>ls: file/directory that does not exist in home directory (/user/username)</description> |
| <test-commands> |
| <!--<command>-fs NAMENODE -ls file1</command>--> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=9 --> |
| <description>ls: Non-URI input file at Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=10 --> |
| <description>ls: file at HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=11 --> |
| <description>ls: Non-URI input file at Namenode's path using globing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=12 --> |
| <description>ls: file at HCFS_SCHEME// path using globing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=13 xxx --> |
| <description>ls: Non-URI input dir at Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p NAMENODE/user/USER_NAME/dir1</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME///user/USER_NAME</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME///user/USER_NAME/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>Found [0-9] items</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME///user/USER_NAME/dir1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=14 --> |
| <description>ls: dir at HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p HCFS_SCHEME///user/USER_NAME/dir1</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME///user/USER_NAME</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME///user/USER_NAME/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>Found [0-9] items</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME///user/USER_NAME/dir1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=15 --> |
| <description>ls: Non-URI input dir at Namenode's path using globing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p NAMENODE/user/USER_NAME/dir1</command> |
| <command>-fs NAMENODE -mkdir -p NAMENODE/user/USER_NAME/dir2</command> |
| <command>-fs NAMENODE -mkdir -p NAMENODE/user/USER_NAME/dir3</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME///user/USER_NAME</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME///user/USER_NAME/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>Found [0-9] items</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME///user/USER_NAME/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME///user/USER_NAME/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME///user/USER_NAME/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=16 --> |
| <description>ls: dir at HCFS_SCHEME// path using globing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p HCFS_SCHEME///user/USER_NAME/dir1</command> |
| <command>-fs NAMENODE -mkdir -p HCFS_SCHEME///user/USER_NAME/dir2</command> |
| <command>-fs NAMENODE -mkdir -p HCFS_SCHEME///user/USER_NAME/dir3</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME///user/USER_NAME</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME///user/USER_NAMEdir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>Found [0-9] items</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME///user/USER_NAME/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME///user/USER_NAME/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME///user/USER_NAME/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=17 --> |
| <description>ls: non-existent file/directory at HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <!-- no cleanup --> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=18 --> |
| <description>ls: non-existent file/directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <!-- no cleanup --> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for ls -R --> |
| <test> <!-- TESTED test-id=19 --> |
| <description>ls: files/directories using absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir2/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir2/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/dir1/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir2/dir2/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir2/dir2/file2</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/dir2/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir2/dir2/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=20 --> |
| <description>ls: files/directories using relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -touchz dir0/dir2/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir2/file2</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/dir1/file2</command> |
| <command>-fs NAMENODE -touchz dir0/dir2/dir2/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir2/dir2/file2</command> |
| <command>-fs NAMENODE -ls -R dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=21 --> |
| <description>ls: files/directories using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -touchz dir0/dir2/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir2/file2</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/dir1/file2</command> |
| <command>-fs NAMENODE -touchz dir0/dir2/dir2/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir2/dir2/file2</command> |
| <command>-fs NAMENODE -ls -R dir0/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <!-- JIRA? |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^/user/[a-z]*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^/user/[a-z]*TEST_DIR_ABSOLUTE/dir0/dir2</expected-output> |
| </comparator> |
| --> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir2/dir2/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=22 --> |
| <description>ls: file/directory that does not exist in /</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=23 --> |
| <description>ls: file/directory that does not exist in home directory (/user/username)</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/user</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `TEST_DIR_ABSOLUTE/user': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=24 --> |
| <description>ls: dir at HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=25 --> |
| <description>ls: files/directories in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=26 --> |
| <description>ls: Non-existent file/directory in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=27 --> |
| <description>ls: dir at Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=28 --> |
| <description>ls: Non-URI input files/directories in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir0/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=29 --> |
| <description>ls: Non-URI input for non-existent file/directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=30 --> |
| <description>ls: Negative test for quoted /*/* globbing </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/\*/\*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>ls: `TEST_DIR_ABSOLUTE/*/*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=31 --> |
| <description>ls: Test for quoted globbing </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/\*</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/\*/file</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0/\*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/\*/file</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=32 --> |
| <description>rm: Test for quoted globbing </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/\*</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/\*/file</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0/\*</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for du --> |
| <test> <!-- TESTED test-id=33 --> |
| <description>du: file using absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+TEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=34 --> |
| <description>du: file using relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytesZZ</command> |
| <command>-fs NAMENODE -du data15bytesZZ</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm data15bytesZZ</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+data15bytesZZ</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=35 --> |
| <description>du: files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p CLITEST_DATA</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes data120bytes</command> |
| <command>-fs NAMENODE -du data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm data*bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^120\s+data120bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+data30bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^60\s+data60bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=36 --> |
| <description>du: directory using absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=37 --> |
| <description>du: directory using relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command> |
| <command>-fs NAMENODE -du dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+dir0/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=38 --> |
| <description>du: directory using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15( |\t)*TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30( |\t)*TEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^60( |\t)*TEST_DIR_ABSOLUTE/dir0/data60bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^120( |\t)*TEST_DIR_ABSOLUTE/dir0/data120bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=39 --> |
| <description>du: Test for HCFS_SCHEME// path - file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=40 --> |
| <description>du: Test for HCFS_SCHEME// path - files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data120bytes</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^120\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/data120bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/data30bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^60\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/data60bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=41 --> |
| <description>du: Test for HCFS_SCHEME// path - directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=42 --> |
| <description>duh: Test for HCFS_SCHEME// path - directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data1k HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data1k</command> |
| <command>-fs NAMENODE -du -h HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^1\.0 K\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data1k</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=43 --> |
| <description>du: Test for HCFS_SCHEME// path - directory using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15( |\t)*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30( |\t)*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^60( |\t)*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data60bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^120( |\t)*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data120bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=44 --> |
| <description>du: Test for Namenode's path - file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15( |\t)*NAMENODETEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=45 --> |
| <description>du: Test for Namenode's path - files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/data120bytes</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15( |\t)*NAMENODETEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30( |\t)*NAMENODETEST_DIR_ABSOLUTE/data30bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^60( |\t)*NAMENODETEST_DIR_ABSOLUTE/data60bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^120( |\t)*NAMENODETEST_DIR_ABSOLUTE/data120bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=46 --> |
| <description>du: Test for Namenode's path - directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=47 --> |
| <description>du: Test for Namenode's path - directory using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/dir0/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^60( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^120( |\t)*NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for dus --> |
| <test> <!-- TESTED test-id=48 --> |
| <description>dus: directories/files using absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command> |
| <command>-fs NAMENODE -du -s TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^450\s+TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=49 --> |
| <description>dus: directories/files using relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/dir1/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/dir1/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/dir2/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/dir2/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/dir1/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/dir1/dir2/data120bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/dir2/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/dir2/dir2/data120bytes</command> |
| <command>-fs NAMENODE -du -s dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^450\s+dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=50 --> |
| <description>dus: directories/files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/donotcountdir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -du -s TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/donotcountdir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^450\s+TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for dus --> |
| <test> <!-- TESTED test-id=51 --> |
| <description>dus: Test for HCFS_SCHEME// path - directories/files</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command> |
| <command>-fs NAMENODE -du -s HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^450\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=52 --> |
| <description>dus: Test for HCFS_SCHEME// path - directories/files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/donotcountdir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -du -s HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/donotcountdir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^450\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=53 --> |
| <description>dus: Test for Namenode's path - directories/files</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command> |
| <command>-fs NAMENODE -du -s NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^450\s+NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=54 --> |
| <description>dus: Test for Namenode's path - directories/files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/dir2/data120bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir1/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir2/dir2/data120bytes</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/donotcountdir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/donotcountdir0/data15bytes</command> |
| <command>-fs NAMENODE -du -s NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/donotcountdir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^450\s+NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for mv --> |
| <test> <!-- TESTED test-id=55 --> |
| <description>mv: file (absolute path) to file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file2</command> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file[^1]</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=56 --> |
| <description>mv: file (absolute path) to file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file1 file2/file3</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/* /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^mv: `file2/file3': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=57 --> |
| <description>mv: file (absolute path) to directory (absolute path); keep the same name at the destination</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=58 --> |
| <description>mv: file (absolute path) to directory (absolute path); keep the same name at the destination [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=59 --> |
| <description>mv: file (absolute path) to directory (absolute path); change the name at the destination</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0/file2</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=60 --> |
| <description>mv: file (absolute path) to directory (absolute path); change the name at the destination [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>ls: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=61 --> |
| <description>mv: files (absolute path) to directory (absolute path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv TEST_DIR_ABSOLUTE/file* TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=62 --> |
| <description>mv: files (absolute path) to directory (absolute path) using globbing [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>ls: `TEST_DIR_ABSOLUTE/file*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=63 --> |
| <description>mv: file (relative) to file (relative)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -mv file1 file2</command> |
| <command>-fs NAMENODE -ls file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file[^1]</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=64 --> |
| <description>mv: moving file to file(rename in for HCFS_SCHEME// path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mv HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file[^1]</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=65 --> |
| <description>mv: moving file to directory (keep the same name at the destination) in HCFS_SCHEME// path - </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=66 --> |
| <description>mv: moving files to directory in HCFS_SCHEME// path - [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>ls: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=67 --> |
| <description>mv: moving file that does not exist in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mv HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>mv: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=68 --> |
| <description>mv: moving file to directory (different name at the destination) in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file2</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=69 --> |
| <description>mv: moving file to directory (different name at the destination) in HCFS_SCHEME// path [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>ls: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=70 --> |
| <description>mv: moving group of files to directory using globbing in HCFS_SCHEME// path - </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv HCFS_SCHEME//TEST_DIR_ABSOLUTE/file* HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=71 --> |
| <description>mv: moving files to directory using globbing in HCFS_SCHEME// [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>ls: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=72 --> |
| <description>mv: moving file to file(rename) in Namenode's path - </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mv NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file[^1]</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=73 --> |
| <description>mv: moving file to directory (keep the same name at the destination) in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=74 --> |
| <description>mv: moving files to directory in Namenode's path - [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=75 --> |
| <description>mv: moving file that does not exist in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mv NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^mv: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=76 --> |
| <description>mv: moving file to directory (different name at the destination) in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/dir0/file2</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=77 --> |
| <description>mv: moving file to directory (different name at the destination) in Namenode's path [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `NAMENODETEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=78 --> |
| <description>mv: moving group of files to directory using globbing in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mv NAMENODETEST_DIR_ABSOLUTE/file* NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=79 --> |
| <description>mv: moving files to directory using globbing in Namenode's path [ TIED to previous test ]</description> |
| <test-commands> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^ls: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file\*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=80 --> |
| <description>mv: moving directory to directory in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -mv HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=81 --> |
| <description>mv: moving directory to directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -mv NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir1/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir1/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for cp--> |
| <test> <!-- TESTED test-id=82 --> |
| <description>cp: file (absolute path) to file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=83 --> |
| <description>cp: file (absolute path) to file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 file2</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1 file2</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/file1 file2</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=84 --> |
| <description>cp: file (relative path) to file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -cp file1 TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -ls file1 TEST_DIR_ABSOLUTE/file2</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r file1 TEST_DIR_ABSOLUTE/file2</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=85 --> |
| <description>cp: file (relative path) to file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -cp file1 file2</command> |
| <command>-fs NAMENODE -ls file1 file2</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r file1 file2</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=86 --> |
| <description>cp: file (absolute path) to directory (absolute path); keep the same name at the destination</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=87 --> |
| <description>cp: file (absolute path) to directory (absolute path); change the name at the destination</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0/file2</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=88 --> |
| <description>cp: files to directory (absolute path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file* TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=89 --> |
| <description>cp: files to directory (absolute path) without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4 TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0 TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=90 --> |
| <description>cp: copying non existent file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=91 --> |
| <description>cp: copying non existent file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -cp touchz test</command> |
| <command>-fs NAMENODE -cp file1 file2</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=92 --> |
| <description>cp: files to an existent file using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file5</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file* TEST_DIR_ABSOLUTE/file5</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `TEST_DIR_ABSOLUTE/file5': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=93 --> |
| <description>cp: files to an existent file without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file5</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4 TEST_DIR_ABSOLUTE/file5</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `TEST_DIR_ABSOLUTE/file5': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=94 --> |
| <description>cp: files to a non existent directory using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file* TEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `TEST_DIR_ABSOLUTE/dir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=95 --> |
| <description>cp: files to a non existent directory without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -cp TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4 TEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `TEST_DIR_ABSOLUTE/dir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=96 --> |
| <description>cp: file to file copy in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=97 --> |
| <description>cp: file to directory copy (same name at the destination) in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/ HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=98 --> |
| <description>cp: file to directory (different name at the destination) in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file2</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=99 --> |
| <description>cp: files to directory using globbing in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file* HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=100 --> |
| <description>cp: files to directory in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=101 --> |
| <description>cp: copying non existent file in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=102 --> |
| <description>cp: copying files to an existent file in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file5</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file* HCFS_SCHEME//TEST_DIR_ABSOLUTE//file5</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file5': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=103 --> |
| <description>cp: copying files to an existent file in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file5</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file5</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file5': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=104 --> |
| <description>cp: copying files to a non existent directory in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file* HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=105 --> |
| <description>cp: copying files to a non existent directory in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=106 --> |
| <description>cp: copying non existent directory in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=107 --> |
| <description>cp: putting file into an already existing destination with -f option(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/user</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -cp -f CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -cat TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=108 --> |
| <description>cp: copying directory to directory in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=109 --> |
| <description>cp: copying multiple directories to directory using globbing in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir* HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/d*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/d*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest/dir2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=110 --> |
| <description>cp: copying multiple directories to directory in HCFS_SCHEME// path without using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest</command> |
| <command>-fs NAMENODE -cp HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/d*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dest/dir2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=111 --> |
| <description>cp: file to file copy in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=112 --> |
| <description>cp: file to directory copy (same name at the destination) in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0/ NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=113 --> |
| <description>cp: file to directory (different name at the destination) in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/dir0/file2</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0/</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=114 --> |
| <description>cp: files to directory in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file* NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0/</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=115 --> |
| <description>cp: files to directory in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2 NAMENODETEST_DIR_ABSOLUTE/file3 NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0/</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=116 --> |
| <description>cp: copying non existent file in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands>: |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=117 --> |
| <description>cp: copying files to an existent file in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file5</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file* NAMENODETEST_DIR_ABSOLUTE/file5</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file5': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=118 --> |
| <description>cp: copying files to an existent file in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file5</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2 NAMENODETEST_DIR_ABSOLUTE/file3 NAMENODETEST_DIR_ABSOLUTE/file4 NAMENODETEST_DIR_ABSOLUTE/file5</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file5': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=119 --> |
| <description>cp: copying files to a non existent directory in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file* NAMENODETEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/dir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=120 --> |
| <description>cp: copying files to a non existent directory in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2 NAMENODETEST_DIR_ABSOLUTE/file3 NAMENODETEST_DIR_ABSOLUTE/file4 NAMENODETEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cp: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/dir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=121 --> |
| <description>cp: copying directory to directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir1/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir1/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=122 --> |
| <description>cp: copying multiple directories to directory in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dest</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/dir* NAMENODETEST_DIR_ABSOLUTE/dest</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/d*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/d*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dest/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dest/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dest/dir2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=123 --> |
| <description>cp: copying multiple directories to directory in Namenode's path without using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dest</command> |
| <command>-fs NAMENODE -cp NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir1 NAMENODETEST_DIR_ABSOLUTE/dir2 NAMENODETEST_DIR_ABSOLUTE/dest</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/d*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dest/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dest/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dest/dir2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for rm --> |
| <test> <!-- TESTED test-id=124 --> |
| <description>rm: removing a file (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=125 --> |
| <description>rm: removing a file (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0</command> |
| <command>-fs NAMENODE -rm file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=126 --> |
| <description>rm: removing files by globbing (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file3</command> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=127 --> |
| <description>rm: removing files by globbing (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir dir</command> |
| <command>-fs NAMENODE -touchz file0</command> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -rm file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=128 --> |
| <description>rm: removing a directory (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `TEST_DIR_ABSOLUTE/dir0': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=129 --> |
| <description>rm: removing a directory (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE mkdir -p dir0</command> |
| <command>-fs NAMENODE -rm dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `dir0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=130 --> |
| <description>rm: removing a nonexistent file (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir0/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `TEST_DIR_ABSOLUTE/dir0/file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=131 --> |
| <description>rm: removing a nonexistent file (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -rm file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=132 --> |
| <description>rm: removing a file in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=133 --> |
| <description>rm: removing files by globbing in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=134 --> |
| <description>rm: removing a directory in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| |
| <test> <!-- TESTED test-id=135 --> |
| <description>rm: removing a nonexistent file or dirctory in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=136 --> |
| <description>rm: removing files without globbing in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=137 --> |
| <description>rm: removing a file in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=138 --> |
| <description>rm: removing files by globbing in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=139 --> |
| <description>rm: removing a directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>rm: `NAMENODETEST_DIR_ABSOLUTE/dir0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| |
| <test> <!-- TESTED test-id=140 --> |
| <description>rm: removing a nonexistent file or directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `NAMENODETEST_DIR_ABSOLUTE/file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=141 --> |
| <description>rm: Tremoving files without globbing in Namenode path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file0 NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2 NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!--Tests for rmr--> |
| <test> <!-- TESTED test-id=142 --> |
| <description>rm: removing a file (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=143 --> |
| <description>rm: removing a file (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0</command> |
| <command>-fs NAMENODE -rm -r file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=144 --> |
| <description>rm: removing a directory (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=145 --> |
| <description>rm: removing a directory (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -rm -r dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=146 --> |
| <description>rm: removing directories by globbing (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=147 --> |
| <description>rm: removing directories by globbing (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir3</command> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!--TESTEDtest-id=148 --> |
| <description>rm: removing a nonexistent file (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `TEST_DIR_ABSOLUTE/dir0/file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=149 --> |
| <description>rm: removing a nonexistent file (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -rm -r file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=150 --> |
| <description>rm: removing a file in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=151 --> |
| <description>rm: removing a directory in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=152 --> |
| <description>rm: removing directories by globbing in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!--TESTEDtest-id=153 --> |
| <description>rm: removing a nonexistent file or directory in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=154 --> |
| <description>rm: removing directories without globbing in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=155 --> |
| <description>rm: Test for Namenode's path - removing a file</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=156 --> |
| <description>rm: Test for Namenode's path - removing a directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=157 --> |
| <description>rm: removing directories by globbing in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!--TESTEDtest-id=158 --> |
| <description>rm: removing a nonexistent file or directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^rm: `NAMENODETEST_DIR_ABSOLUTE/file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=159 --> |
| <description>rm: removing directories without globbing in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir1 NAMENODETEST_DIR_ABSOLUTE/dir2 NAMENODETEST_DIR_ABSOLUTE/dir3</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Deleted NAMENODETEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for expunge --> |
| <!-- Not yet implemented --> |
| |
| <!-- Tests for put --> |
| <test> <!-- TESTED test-id=160 --> |
| <description>put: putting file into a file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+TEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=161 --> |
| <description>put: putting file into a file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> |
| <command>-fs NAMENODE -du data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=162 --> |
| <description>put: putting file into a directory(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p TEST_DIR_ABSOLUTE/dir0/dir1/data</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir1/data</command> --> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0/dir1/data</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+TEST_DIR_ABSOLUTE/dir0/dir1/data/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=163 --> |
| <description>put: putting file into a directory(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1/data</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/dir1/data</command> |
| <command>-fs NAMENODE -du dir0/dir1/data</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+dir0/dir1/data/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=164 --> |
| <description>put: putting many files into an existing directory(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+TEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=165 --> |
| <description>put: putting many files into an existing directory(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes dir0</command> |
| <command>-fs NAMENODE -du dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+dir0/data30bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=166 --> |
| <description>put: putting non existent file(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -put TEST_DIR_ABSOLUTE/user/wrongdata file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>put: `TEST_DIR_ABSOLUTE/user/wrongdata': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=167 --> |
| <description>put: putting non existent file(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -put wrongdata file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>put: `wrongdata': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=168 --> |
| <description>put: putting file into an already existing destination(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/user</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>put: `TEST_DIR_ABSOLUTE/user/file0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=169 --> |
| <description>put: putting file into an already existing destination with -f option(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/user</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -put -f CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -cat TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=170 --> |
| <description>put: putting file into an already existing destination(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>put: `file0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=171 --> |
| <description>put: putting many files into an existing file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/data30bytes</command> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0</command> |
| <command>-fs NAMENODE -put TEST_DIR_ABSOLUTE/data15bytes /data30bytes file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^put: `file0': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=172 --> |
| <description>put: putting many files into a non existent directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/data30bytes</command> |
| <command>-fs NAMENODE -put TEST_DIR_ABSOLUTE/data15bytes /data30bytes wrongdir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^put: `wrongdir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=173 --> |
| <description>put: putting a local file into HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=174 --> |
| <description>put: putting file into a directory in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p TEST_DIR_ABSOLUTE/dir1/data</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1/data</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1/data/</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1/data</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1/data/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=175 --> |
| <description>put: putting many local files into an existing directory in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=176 --> |
| <description>put: putting non existent file in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -put TEST_DIR_ABSOLUTE/user/wrongdata HCFS_SCHEME//TEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>put: `TEST_DIR_ABSOLUTE/user/wrongdata': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=177 --> |
| <description>put: putting local file into an already existing destination in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>put: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=178 --> |
| <description>put: putting many local files into an existing file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^put: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=179 --> |
| <description>put: putting file into a non existent directory in HCFS_SCHEME// path </description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/wrongdir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^put: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/wrongdir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=180 --> |
| <description>put: putting a local file into in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+NAMENODETEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=181 --> |
| <description>put: putting file into a directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p TEST_DIR_ABSOLUTE/dir1/data</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir1/data</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/dir1/data</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir1/data</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+NAMENODETEST_DIR_ABSOLUTE/dir1/data/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=182 --> |
| <description>put: putting many local files into an existing directory in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=183 --> |
| <description>put: putting non existent file in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -put TEST_DIR_ABSOLUTE/user/wrongdata NAMENODETEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^put: `TEST_DIR_ABSOLUTE/user/wrongdata': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=184 --> |
| <description>put: putting local file into an already existing destination in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir /user/USER_NAME/dir0</command> |
| <command>-fs NAMENODE -touchz /user/USER_NAME/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes /user/USER_NAME/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^put: `/user/USER_NAME/file0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=185 --> |
| <description>put: putting many local files into an existing file in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^put: `HCFS_SCHEME//HCFS_NNMATCH+TEST_DIR_ABSOLUTE/file0': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=186 --> |
| <description>put: putting many files into a non existent directory in Namenode's path </description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/wrongdir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^put: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/wrongdir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for copyFromLocal --> |
| <test> <!-- TESTED test-id=187 --> |
| <description>copyFromLocal: copying file into a file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+TEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=188 --> |
| <description>copyFromLocal: copying file into a file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes data15bytes</command> |
| <command>-fs NAMENODE -du data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=189 --> |
| <description>copyFromLocal: copying file into a directory(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p TEST_DIR_ABSOLUTE/dir0/dir1/data</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/dir1/data</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0/dir1/data/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+TEST_DIR_ABSOLUTE/dir0/dir1/data/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=190 --> |
| <description>copyFromLocal: copying file into a directory(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1/data</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes dir0/dir1/data</command> |
| <command>-fs NAMENODE -du dir0/dir1/data/*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+dir0/dir1/data/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=191 --> |
| <description>copyFromLocal: copying many files into an existing directory(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+TEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=192 --> |
| <description>copyFromLocal: copying many files into an existing directory(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes dir0</command> |
| <command>-fs NAMENODE -du dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+dir0/data30bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=193 --> |
| <description>copyFromLocal: copying non existent file(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -copyFromLocal TEST_DIR_ABSOLUTE/user/wrongdata file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>copyFromLocal: `TEST_DIR_ABSOLUTE/user/wrongdata': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=194 --> |
| <description>copyFromLocal: copying non existent file(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -copyFromLocal wrongdata file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>copyFromLocal: `wrongdata': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=195 --> |
| <description>copyFromLocal: copying file into an already existing destination(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/user</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>copyFromLocal: `TEST_DIR_ABSOLUTE/user/file0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=196 --> |
| <description>copyFromLocal: copying file into an already existing destination with -f option(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/user</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -copyFromLocal -f CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -cat TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=197 --> |
| |
| <description>copyFromLocal: copying file into an already existing destination(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>copyFromLocal: `file0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=198 --> |
| <description>copyFromLocal: copying many files into an existing file</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/data30bytes</command> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0</command> |
| <command>-fs NAMENODE -copyFromLocal TEST_DIR_ABSOLUTE/data15bytes /data30bytes file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^copyFromLocal: `file0': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=199 --> |
| <description>copyFromLocal: copying many files into a non existent directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/data30bytes</command> |
| <command>-fs NAMENODE -copyFromLocal TEST_DIR_ABSOLUTE/data15bytes /data30bytes wrongdir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^copyFromLocal: `wrongdir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=200 --> |
| <description>copyFromLocal: Test for HCFS_SCHEME// path - copying local file into a HCFS_SCHEME//file</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=201 --> |
| <description>copyFromLocal: Test for HCFS_SCHEME// path - copying local file into a hdfs directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/data</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/data/</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/data/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/data/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=202 --> |
| <description>copyFromLocal: Test for HCFS_SCHEME// path copying many local files into an existing hdfs directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=203 --> |
| <description>copyFromLocal: Test for HCFS_SCHEME// path - copying non existent file</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal TEST_DIR_ABSOLUTE/user/wrongdata HCFS_SCHEME//TEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>copyFromLocal: `TEST_DIR_ABSOLUTE/user/wrongdata': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=204 --> |
| <description>copyFromLocal: Test for HCFS_SCHEME// path - copying local file into an already existing destination</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>copyFromLocal: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=205 --> |
| <description>copyFromLocal: Test for HCFS_SCHEME// path - copying many local files into an existing file</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^copyFromLocal: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=206 --> |
| <description>copyFromLocal: Test for HCFS_SCHEME// path - copying many local files into a non existent directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/wrongdir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^copyFromLocal: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/wrongdir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for copyFromLocal using Namenode's path--> |
| <test> <!-- TESTED test-id=207 --> |
| <description>copyFromLocal: Test for Namenode's path - copying local file into a HCFS_SCHEME//file</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+NAMENODETEST_DIR_ABSOLUTE/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=208 --> |
| <description>copyFromLocal: Test for Namenode's path - copying local file into a hdfs directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data/</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/data/data15bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=209 --> |
| <description>copyFromLocal: Test for Namenode's path copying many local files into an existing hdfs directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^15\s+NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^30\s+NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=210 --> |
| <description>copyFromLocal: Test for Namenode's path - copying non existent file</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal TEST_DIR_ABSOLUTE/user/wrongdata NAMENODETEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>copyFromLocal: `TEST_DIR_ABSOLUTE/user/wrongdata': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=211 --> |
| <description>copyFromLocal: Test for Namenode's path - copying local file into an already existing destination</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/user/</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>copyFromLocal: `HCFS_SCHEME//HCFS_NNMATCH+TEST_DIR_ABSOLUTE/user/file0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=212 --> |
| <description>copyFromLocal: Test for Namenode's path - copying many local files into an existing file</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^copyFromLocal: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file0': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=213 --> |
| <description>copyFromLocal: Test for Namenode's path - copying many local files into a non existent directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/wrongdir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^copyFromLocal: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/wrongdir': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for get --> |
| <test> <!-- TESTED test-id=214 --> |
| <description>get: getting non existent(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -get TEST_DIR_ABSOLUTE/user/file CLITEST_DATA/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>get: `.*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=215 --> |
| <description>get: getting non existent file(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -get file CLITEST_DATA/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>get: `.*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=216 --> |
| <description>get: Test for HCFS_SCHEME// path - getting non existent</description> |
| <test-commands> |
| <command>-fs NAMENODE -get HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file CLITEST_DATA/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>get: `.*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=217 --> |
| <description>get: Test for Namenode's path - getting non existent</description> |
| <test-commands> |
| <command>-fs NAMENODE -get NAMENODETEST_DIR_ABSOLUTE/user/file CLITEST_DATA/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>get: `.*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for getmerge --> |
| <!-- Manual Testing --> |
| |
| <!-- Tests for cat --> |
| <test> <!-- TESTED test-id=218 --> |
| <description>cat: contents of file(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -cat TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> |
| <description>cat: contents of file(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> |
| <command>-fs NAMENODE -cat data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=220 --> |
| <description>cat: contents of files(absolute path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -cat TEST_DIR_ABSOLUTE/dir0/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234.*</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTEDtest-id=221 --> |
| <description>cat: contents of files(relative path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/data120bytes</command> |
| <command>-fs NAMENODE -cat dir0/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234.*</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=222 --> |
| <description>cat: contents of files(absolute path) without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -cat TEST_DIR_ABSOLUTE/dir0/data15bytes TEST_DIR_ABSOLUTE/dir0/data30bytes TEST_DIR_ABSOLUTE/dir0/data60bytes TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234.*</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTEDtest-id=223 --> |
| <description>cat: contents of files(relative path) without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/data120bytes</command> |
| <command>-fs NAMENODE -cat dir0/data15bytes dir0/data30bytes dir0/data60bytes dir0/data120bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234.*</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| |
| <test> <!-- TESTED test-id=224 --> |
| <description>cat: contents of file(absolute path) that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -cat TEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cat: `TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=225 --> |
| <description>cat: contents of file(relative path) that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -cat file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cat: `file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=226 --> |
| <description>cat: contents of directory(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -cat TEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cat: `TEST_DIR_ABSOLUTE/dir1': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=227 --> |
| <description>cat: contents of directory(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir1</command> |
| <command>-fs NAMENODE -cat dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cat: `dir1': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=228 --> |
| <description>cat: Test for HCFS_SCHEME// path - content of file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -cat HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=229 --> |
| <description>cat: Test for HCFS_SCHEME// path - contents of files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -cat HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234.*</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=230 --> |
| <description>cat: Test for HCFS_SCHEME// path - contents of files without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -cat HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234.*</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=231 --> |
| <description>cat: Test for HCFS_SCHEME// path - contents of file that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -cat HCFS_SCHEME//TEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cat: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=232 --> |
| <description>cat: Test for HCFS_SCHEME// path - contents of directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -cat HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cat: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for cat using Namenode's path --> |
| <test> <!-- TESTED test-id=233 --> |
| <description>cat: Test for Namenode's path - content of file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -cat NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=234 --> |
| <description>cat: Test for Namenode's path - contents of files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -cat NAMENODETEST_DIR_ABSOLUTE/dir0/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234.*</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=235 --> |
| <description>cat: Test for Namenode's path - contents of files without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -cat NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>12345678901234.*</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=236 --> |
| <description>cat: Test for Namenode's path - contents of file that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -cat NAMENODETEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cat: `NAMENODETEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=237 --> |
| <description>cat: Test for Namenode's path - contents of directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -cat NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^cat: `NAMENODETEST_DIR_ABSOLUTE/dir1': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for copyToLocal --> |
| <test> <!-- TESTED test-id=238 --> |
| <description>copyToLocal: non existent relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyToLocal file CLITEST_DATA/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>copyToLocal: `.*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=239 --> |
| <description>copyToLocal: non existent absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyToLocal TEST_DIR_ABSOLUTE/user/file CLITEST_DATA/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>copyToLocal: `.*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=240 --> |
| <description>copyToLocal: Test for HCFS_SCHEME// path - non existent file/directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyToLocal HCFS_SCHEME//TEST_DIR_ABSOLUTE/file CLITEST_DATA/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>copyToLocal: `.*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=241 --> |
| <description>copyToLocal: Test for Namenode's path - non existent file/directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -copyToLocal NAMENODETEST_DIR_ABSOLUTE/file CLITEST_DATA/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>copyToLocal: `.*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- TESTEDtest-id=242 not appliable for HCFS |
| <test> |
| <description>checksum: checksum of files(relative path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes dir0/data120bytes</command> |
| <command>-fs NAMENODE -checksum dir0/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^dir0/data120bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000a58cdc3c0967fc8cddb7fed5960d06f2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^dir0/data15bytes\tMD5-of-0MD5-of-512CRC32C\t0000020000000000000000007267e9528002723a30939aefc238d665</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^dir0/data30bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000fc09371298117c4943cf089b4bd79c96</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^dir0/data60bytes\tMD5-of-0MD5-of-512CRC32C\t000002000000000000000000009476431d851dd7b0a8d057a404d7b9</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <!-- Tests for moveToLocal --> |
| <!-- Not yet implemented --> |
| |
| <!-- Tests for mkdir --> |
| <test> <!-- TESTED test-id=243 --> |
| <description>mkdir: creating directory (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du -s TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=244 --> |
| <description>mkdir: creating directory (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/b/</command> |
| <command>-fs NAMENODE -du -s TEST_DIR_ABSOLUTE/dir0/b</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+TEST_DIR_ABSOLUTE/dir0/b</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| |
| <test> <!-- TESTED test-id=245 --> |
| <description>mkdir: creating directory (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0 </command> |
| <command>-fs NAMENODE -du -s dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=246 --> |
| <description>mkdir: creating many directories (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0 </command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1 </command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2 </command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir3 </command> |
| <command>-fs NAMENODE -du -s TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=247 --> |
| <description>mkdir: creating many directories (relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0 </command> |
| <command>-fs NAMENODE -mkdir -p dir1 </command> |
| <command>-fs NAMENODE -mkdir -p dir2 </command> |
| <command>-fs NAMENODE -mkdir -p dir3 </command> |
| <command>-fs NAMENODE -du -s dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=248 --> |
| <description>mkdir: creating a directory with the name of an already existing directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>mkdir: `TEST_DIR_ABSOLUTE/dir0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=249 --> |
| <description>mkdir: creating a directory with the name of an already existing file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> |
| <command>-fs NAMENODE -mkdir -p data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>mkdir: `data15bytes': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=250 --> |
| <description>mkdir: Test for HCFS_SCHEME// path - creating directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du -s HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=251 --> |
| <description>mkdir: Test for HCFS_SCHEME// path - creating many directories</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3 </command> |
| <command>-fs NAMENODE -du -s HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=252 --> |
| <description>mkdir: Test for HCFS_SCHEME// path - creating a directory with the name of an already existing directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>mkdir: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=253 --> |
| <description>mkdir: Test for HCFS_SCHEME// path - creating a directory with the name of an already existing file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>mkdir: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=254 --> |
| <description>mkdir: Test for Namenode's path - creating directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -du -s NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=255 --> |
| <description>mkdir: Test for Namenode's path - creating many directories</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir1 NAMENODETEST_DIR_ABSOLUTE/dir2 NAMENODETEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -du -s NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+NAMENODETEST_DIR_ABSOLUTE/dir0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+NAMENODETEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+NAMENODETEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+NAMENODETEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=256 --> |
| <description>mkdir: Test for NAMENODE path - creating a directory with the name of an already existing directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>mkdir: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/dir0': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=257 --> |
| <description>mkdir: Test for Namenode's path - creating a directory with the name of an already existing file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>mkdir: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/data15bytes': Is not a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=258 --> |
| <description>mkdir: Test create of directory with no parent and no -p fails</description> |
| <test-commands> |
| <command>-fs NAMENODE -rm -r -f dir0</command> |
| <command>-fs NAMENODE -mkdir dir0/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>mkdir: `dir0/dir1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=259 --> |
| <description>mkdir: Test recreate of existing directory fails</description> |
| <test-commands> |
| <command>-fs NAMENODE -rm -r -f dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir dir0/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>mkdir: `dir0/dir1': File exists</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=260 --> |
| <description>mkdir: Test recreate of existing directory with -p succeeds</description> |
| <test-commands> |
| <command>-fs NAMENODE -rm -r -f dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!--Tests for setrep--> |
| <test> <!-- TESTED test-id=261 --> |
| <description>setrep: existent file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -setrep 2 TEST_DIR_ABSOLUTE/dir0/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=262 --> |
| <description>setrep: existent file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0</command> |
| <command>-fs NAMENODE -setrep 2 file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=263 --> |
| <description>setrep: existent directory (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -setrep -R 2 TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=264 --> |
| <description>setrep: existent directory (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/file1</command> |
| <command>-fs NAMENODE -setrep -R 2 dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=265 --> |
| <description>setrep: non existent file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -setrep 2 TEST_DIR_ABSOLUTE/dir0/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^setrep: `TEST_DIR_ABSOLUTE/dir0/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=266 --> |
| <description>setrep: non existent file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -setrep 2 file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^setrep: `file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=267 --> |
| <description>setrep: Test for HCFS_SCHEME// path - existent file</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -setrep 2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=268 --> |
| <description>setrep: Test for HCFS_SCHEME// path - existent directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -setrep -R 2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=269 --> |
| <description>setrep: Test for HCFS_SCHEME// path - non existent file</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/</command> |
| <command>-fs NAMENODE -setrep 2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^setrep: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=270 --> |
| <description>setrep: Test for Namenode's path - existent file</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -setrep 2 NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=271 --> |
| <description>setrep: Test for Namenode's path - existent directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file1</command> |
| <command>-fs NAMENODE -setrep -R 2 NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^Replication 2 set: NAMENODETEST_DIR_ABSOLUTE/dir0/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=272 --> |
| <description>setrep: Test for Namenode's path - non existent file</description> |
| <test-commands> |
| <command>-fs NAMENODE -setrep 2 NAMENODETEST_DIR_ABSOLUTE/dir0/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^setrep: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/dir0/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for touchz--> |
| <test> <!-- TESTED test-id=273 --> |
| <description>touchz: touching file (absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/user</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -du TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+TEST_DIR_ABSOLUTE/user/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=274 --> |
| <description>touchz: touching file in non-existent directory </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz dir0/file0 </command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>touchz: `dir0/file0': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=275 --> |
| <description>touchz: touching file(relative path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0 </command> |
| <command>-fs NAMENODE -du file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=276 --> |
| <description>touchz: touching many files </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file0 file1 file2</command> |
| <command>-fs NAMENODE -du file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0( |\t)*file0</expected-output> |
| <expected-output>^0( |\t)*file1</expected-output> |
| <expected-output>^0( |\t)*file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=277 --> |
| <description>touchz: touching already existing file </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> |
| <command>-fs NAMENODE -touchz data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>touchz: `data15bytes': Not a zero-length file</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=278 --> |
| <description>touchz: Test for HCFS_SCHEME// path - touching file</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+HCFS_SCHEME//TEST_DIR_ABSOLUTE/user/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=279 --> |
| <description>touchz: Test for HCFS_SCHEME// path - touching many files </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -du HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0( |\t)*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file0</expected-output> |
| <expected-output>^0( |\t)*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| <expected-output>^0( |\t)*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=280 --> |
| <description>touchz: Test for HCFS_SCHEME// path - touching already existing file </description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>touchz: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes': Not a zero-length file</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=281 --> |
| <description>touchz: Test for Namenode's path - touching file</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/user/file0</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/user/file0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+NAMENODETEST_DIR_ABSOLUTE/user/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=282 --> |
| <description>touchz: Test for Namenode path - touching many files </description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file0 NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -du NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^0\s+HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file0</expected-output> |
| <expected-output>^0\s+HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file1</expected-output> |
| <expected-output>^0\s+HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=283 --> |
| <description>touchz: Test for Namenode's path - touching already existing file </description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>touchz: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/data15bytes': Not a zero-length file</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!--Tests for test--> |
| <test> <!-- TESTED test-id=284 --> |
| <description>test: non existent file (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -test -z TEST_DIR_ABSOLUTE/dir0/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=285 --> |
| <description>test: non existent file (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -test -z file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=286 --> |
| <description>test: non existent directory (absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -test -d TEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=287 --> |
| <description>test: non existent directory (relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -test -d dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=288 --> |
| <description>test: Test for HCFS_SCHEME// path - non existent file</description> |
| <test-commands> |
| <command>-fs NAMENODE -test -z HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=289 --> |
| <description>test: Test for HCFS_SCHEME// path - non existent directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -test -d HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=290 --> |
| <description>test: Test for Namenode's path - non existent file</description> |
| <test-commands> |
| <command>-fs NAMENODE -test -z NAMENODETEST_DIR_ABSOLUTE/dir0/file</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=291 --> |
| <description>test: Test for Namenode's path - non existent directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -test -d NAMENODETEST_DIR_ABSOLUTE/dir</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>ExactComparator</type> |
| <expected-output></expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!--Tests for stat --> |
| <test> <!-- TESTED test-id=292 --> |
| <description>stat: statistics about file(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/data60bytes</command> |
| <command>-fs NAMENODE -stat "%n-%b" TEST_DIR_ABSOLUTE/data60bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/data60bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>data60bytes-60</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=293 --> |
| <description>stat: statistics about file(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes data60bytes</command> |
| <command>-fs NAMENODE -stat "%n-%b" data60bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>data60bytes-60</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| |
| <!-- TESTEDtest-id=294 not appliable for HCFS |
| <test> |
| <description>stat: statistics about directory(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dirtest</command> |
| <command>-fs NAMENODE -stat "%n-%b-%o" TEST_DIR_ABSOLUTE/dirtest</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dirtest</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>dirtest-0-0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <!-- TESTEDtest-id=295 not appliable for HCFS |
| <test> |
| <description>stat: statistics about directory(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dirtest</command> |
| <command>-fs NAMENODE -stat "%n-%b-%o" dirtest</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>dirtest-0-0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <!-- TESTEDtest-id=296 not appliable for HCFS |
| <test> |
| <description>stat: statistics about files (absolute path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes TEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes TEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/datadir</command> |
| <command>-fs NAMENODE -stat "%n-%b" TEST_DIR_ABSOLUTE/dir0/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data15bytes-15"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data30bytes-30"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data60bytes-60"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data120bytes-120"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"datadir-0"</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <!-- TESTEDtest-id=297 not appliable for HCFS |
| <test> |
| <description>stat: statistics about files (relative path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes data120bytes</command> |
| <command>-fs NAMENODE -mkdir -p datadir</command> |
| <command>-fs NAMENODE -stat "%n-%b" data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data15bytes-15"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data30bytes-30"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data60bytes-60"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data120bytes-120"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"datadir-0"</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <test> <!-- TESTED test-id=298 --> |
| <description>stat: statistics about file or directory(absolute path) that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -stat TEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^stat: `TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=299 --> |
| <description>stat: statistics about file or directory(relative path) that does not exist </description> |
| <test-commands> |
| <command>-fs NAMENODE -stat file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^stat: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=300 --> |
| <description>stat: Test for HCFS_SCHEME// path - statistics about file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data60bytes</command> |
| <command>-fs NAMENODE -stat "%n-%b" HCFS_SCHEME//TEST_DIR_ABSOLUTE/data60bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/data60bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>data60bytes-60</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- TESTEDtest-id=301 not appliable for HCFS |
| <test> |
| <description>stat: Test for HCFS_SCHEME// path - statistics about directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dirtest</command> |
| <command>-fs NAMENODE -stat "%n-%b-%o" HCFS_SCHEME//TEST_DIR_ABSOLUTE/dirtest</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dirtest</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>dirtest-0-0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <!-- TESTEDtest-id=302 not appliable for HCFS |
| <test> |
| <description>stat: Test for HCFS_SCHEME// path - statistics about files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -mkdir -p HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/datadir</command> |
| <command>-fs NAMENODE -stat "%n-%b" HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data15bytes-15"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data30bytes-30"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data60bytes-60"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data120bytes-120"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"datadir-0"</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <test> <!-- TESTED test-id=303 --> |
| <description>stat: Test for HCFS_SCHEME// path - statistics about file or directory that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -stat HCFS_SCHEME//TEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^stat: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=304 --> |
| <description>stat: Test for Namenode's path - statistics about file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/data60bytes</command> |
| <command>-fs NAMENODE -stat "%n-%b" NAMENODETEST_DIR_ABSOLUTE/data60bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/data60bytes</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>data60bytes-60</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- TESTEDtest-id=305 not appliable for HCFS |
| <test> |
| <description>stat: Test for Namenode's path - statistics about directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dirtest</command> |
| <command>-fs NAMENODE -stat "%n-%b-%o" NAMENODETEST_DIR_ABSOLUTE/dirtest</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dirtest</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>dirtest-0-0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <!-- TESTEDtest-id=306 not appliable for HCFS |
| <test> |
| <description>stat: Test for Namenode's path - statistics about files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data15bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data30bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data30bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data60bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data60bytes</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data120bytes NAMENODETEST_DIR_ABSOLUTE/dir0/data120bytes</command> |
| <command>-fs NAMENODE -mkdir -p NAMENODETEST_DIR_ABSOLUTE/dir0/datadir</command> |
| <command>-fs NAMENODE -stat "%n-%b" NAMENODETEST_DIR_ABSOLUTE/dir0/data*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data15bytes-15"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data30bytes-30"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data60bytes-60"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"data120bytes-120"</expected-output> |
| </comparator> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>"datadir-0"</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| --> |
| |
| <test> <!-- TESTED test-id=307 --> |
| <description>stat: Test for Namenode's path - statistics about file or directory that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -stat NAMENODETEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^stat: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for tail --> |
| <test> <!-- TESTED test-id=308 --> |
| <description>tail: contents of file(absolute path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -tail TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!--TESTEDtest-id=309 --> |
| <description>tail: contents of file(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz test</command> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes data15bytes</command> |
| <command>-fs NAMENODE -tail data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=310 --> |
| <description>tail: contents of files(absolute path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -tail TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/user</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `TEST_DIR_ABSOLUTE/file\*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=311 --> |
| <description>tail: contents of files(relative path) using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -tail file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `file\*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=312 --> |
| <description>tail: contents of file(absolute path) that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -tail TEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=313 --> |
| <description>tail: contents of file(relative path) that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -tail file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=314 --> |
| <description>tail: contents of directory(absolute path) </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -tail TEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `TEST_DIR_ABSOLUTE/dir1': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=315 --> |
| <description>tail: contents of directory(relative path)</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir1</command> |
| <command>-fs NAMENODE -tail dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `dir1': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=316 --> |
| <description>tail: Test for HCFS_SCHEME// path - contents of file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -tail HCFS_SCHEME//TEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=317 --> |
| <description>tail: Test for HCFS_SCHEME// path - contents of files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -tail HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file\*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=318 --> |
| <description>tail: Test for HCFS_SCHEME// path - contents of file that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -tail HCFS_SCHEME//TEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=319 --> |
| <description>tail: Test for HCFS_SCHEME// path - contents of directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -tail HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=320 --> |
| <description>tail: Test for Namenode's path - contents of file</description> |
| <test-commands> |
| <command>-fs NAMENODE -put CLITEST_DATA/data15bytes NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| <command>-fs NAMENODE -tail NAMENODETEST_DIR_ABSOLUTE/data15bytes</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>12345678901234</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=321 --> |
| <description>tail: Test for Namenode's path - contents of files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -tail NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file\*': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=322 --> |
| <description>tail: Test for Namenode's path - contents of file that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -tail NAMENODETEST_DIR_ABSOLUTE/file</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/file': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=323 --> |
| <description>tail: Test for Namenode's path - contents of directory</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -tail NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^tail: `HCFS_SCHEME//HCFS_NNMATCHTEST_DIR_ABSOLUTE/dir1': Is a directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for count --> |
| <test> <!-- TESTED test-id=324 --> |
| <description>count: file using absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -count TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=325 --> |
| <description>count: file using relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -count file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=326 --> |
| <description>count: directory using absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -count TEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=327 --> |
| <description>count: directory using relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir1</command> |
| <command>-fs NAMENODE -count dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=328 --> |
| <description>count: absolute path to file/directory that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -count TEST_DIR_ABSOLUTE/file1 </command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>count: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=329 --> |
| <description>count: relative path to file/directory that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -count file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>count: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=330 --> |
| <description>count: absolute path to multiple files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=331 --> |
| <description>count: relative path to multiple files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -count file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=332 --> |
| <description>count: absolute path to multiple files without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=333 --> |
| <description>count: relative path to multiple files without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -count file1 file2 file3 file4</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=334 --> |
| <description>count: absolute path to multiple directories using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir4</command> |
| <command>-fs NAMENODE -count TEST_DIR_ABSOLUTE/dir* </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=335 --> |
| <description>count: relative path to multiple directories using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir3</command> |
| <command>-fs NAMENODE -mkdir -p dir4</command> |
| <command>-fs NAMENODE -count dir* </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=336 --> |
| <description>count: absolute path to multiple directories without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir4</command> |
| <command>-fs NAMENODE -count TEST_DIR_ABSOLUTE/dir1 TEST_DIR_ABSOLUTE/dir2 TEST_DIR_ABSOLUTE/dir3 TEST_DIR_ABSOLUTE/dir4 </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 TEST_DIR_ABSOLUTE/dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=337 --> |
| <description>count: relative path to multiple directories without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir1</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir3</command> |
| <command>-fs NAMENODE -mkdir -p dir4</command> |
| <command>-fs NAMENODE -count dir1 dir2 dir3 dir4 </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=338 --> |
| <description>count: file using absolute path with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -count -q TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=339 --> |
| <description>count: file using relative path with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -count -q file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=342 --> |
| <description>count: absolute path to file/directory that does not exist with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -count -q TEST_DIR_ABSOLUTE/file1 </command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>count: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=343 --> |
| <description>count: relative path to file/directory that does not exist with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -count -q file1</command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>count: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=344 --> |
| <description>count: absolute path to multiple files using globbing with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count -q TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=345 --> |
| <description>count: relative path to multiple files using globbing with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -count -q file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=346 --> |
| <description>count: absolute path to multiple files without globbing with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count -q TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=347 --> |
| <description>count: relative path to multiple files without globbing with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -count -q file1 file2 file3 file4</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r /user/USER_NAME/*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=352 --> |
| <description>count: Test for file using HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -count HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=353 --> |
| <description>count: Test for directory using HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -count HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=354 --> |
| <description>count: Test for HCFS_SCHEME// path - file/directory that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -count HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 </command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>count: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=355 --> |
| <description>count: Test for HCFS_SCHEME// path - multiple files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=356 --> |
| <description>count: Test for HCFS_SCHEME// path - multiple files without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=357 --> |
| <description>count: Test for HCFS_SCHEME// path - multiple directories using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir4</command> |
| <command>-fs NAMENODE -count HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir* </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=358 --> |
| <description>count: Test for HCFS_SCHEME// path - multiple directories without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir4</command> |
| <command>-fs NAMENODE -count HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir4 </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=359 --> |
| <description>count: Test for file using HCFS_SCHEME// path with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -count -q HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=361 --> |
| <description>count: Test for HCFS_SCHEME// path - file/directory that does not exist with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -count -q HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 </command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>TokenComparator</type> |
| <expected-output>count: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=362 --> |
| <description>count: Test for HCFS_SCHEME// path - multiple files using globbing with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count -q HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=363 --> |
| <description>count: Test for HCFS_SCHEME// path - multiple files without globbing with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count -q HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=366 --> |
| <description>count: Test for file using Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -count NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=367 --> |
| <description>count: Test for directory using Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -count NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=368 --> |
| <description>count: Test for Namenode's path - file/directory that does not exist</description> |
| <test-commands> |
| <command>-fs NAMENODE -count NAMENODETEST_DIR_ABSOLUTE/file1 </command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>count: `NAMENODETEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=369 --> |
| <description>count: Test for Namenode's path - multiple files using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=370 --> |
| <description>count: Test for Namenode's path - multiple files without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2 NAMENODETEST_DIR_ABSOLUTE/file3 NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=371 --> |
| <description>count: Test for Namenode's path - multiple directories using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir4</command> |
| <command>-fs NAMENODE -count NAMENODETEST_DIR_ABSOLUTE/dir* </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=372 --> |
| <description>count: Test for Namenode's path - multiple directories without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir1</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir3</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir4</command> |
| <command>-fs NAMENODE -count NAMENODETEST_DIR_ABSOLUTE/dir1 NAMENODETEST_DIR_ABSOLUTE/dir2 NAMENODETEST_DIR_ABSOLUTE/dir3 NAMENODETEST_DIR_ABSOLUTE/dir4 </command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*1( |\t)*0( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/dir4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=373 --> |
| <description>count: Test for file using Namenode's path with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -count -q NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=375 --> |
| <description>count: Test for Namenode's path - file/directory that does not exist with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -count -q NAMENODETEST_DIR_ABSOLUTE/file1 </command> |
| </test-commands> |
| <cleanup-commands> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>count: `NAMENODETEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=376 --> |
| <description>count: Test for Namenode's path - multiple files using globbing with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count -q NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=377 --> |
| <description>count: Test for Namenode's path - multiple files without globbing with -q option</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -count -q NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2 NAMENODETEST_DIR_ABSOLUTE/file3 NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>( |\t)*none( |\t)*inf( |\t)*none( |\t)*inf( |\t)*0( |\t)*1( |\t)*0 NAMENODETEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for chmod --> |
| <test> <!-- TESTED test-id=380 --> |
| <description>chmod: change permission(octal mode) of file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod 777 TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=381 --> |
| <description>chmod: change permission(octal mode) of file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir</command> <!-- make sure user home dir exists --> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -chmod 666 file1</command> |
| <command>-fs NAMENODE -ls file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=382 --> |
| <description>chmod: change permission(octal mode) of directory in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=383 --> |
| <description>chmod: change permission(octal mode) of directory in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=384 --> |
| <description>chmod: change permission(normal mode) of file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod a+rw TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=385 --> |
| <description>chmod: change permission(normal mode) of file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -chmod a+rw file1</command> |
| <command>-fs NAMENODE -ls file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=386 --> |
| <description>chmod: change permission(normal mode) of directory in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=387 --> |
| <description>chmod: change permission(normal mode) of directory in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=388 --> |
| <description>chmod: change permission(octal mode) of directory in absolute path recursively </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=389 --> |
| <description>chmod: change permission(octal mode) of directory in relative path recursively</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=390 --> |
| <description>chmod: change permission(normal mode) of directory in absolute path recursively</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=391 --> |
| <description>chmod: change permission(normal mode) of directory in relative path recursively</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=392 --> |
| <description>chmod: change permission(octal mode) of non existent file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chmod 777 TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chmod: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=393 --> |
| <description>chmod: change permission(octal mode) of non existent file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chmod 666 file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chmod: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=394 --> |
| <description>chmod: change permission(normal mode) of non existent file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chmod a+rw TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chmod: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=395 --> |
| <description>chmod: change permission(normal mode) of non existent file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chmod a+rw file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chmod: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=396 --> |
| <description>chmod: change permission(octal mode) of multiple files in absolute path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod 777 TEST_DIR_ABSOLUTE/file* </command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=397 --> |
| <description>chmod: change permission(octal mode) of multiple files in relative path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -chmod 777 file* </command> |
| <command>-fs NAMENODE -ls -R file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=398 --> |
| <description>chmod: change permission(octal mode) of multiple directories in absolute path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=399 --> |
| <description>chmod: change permission(octal mode) of multiple directories in relative path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 dir*</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=400 --> |
| <description>chmod: change permission(octal mode) of multiple files in absolute path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod 777 TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4 </command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=401 --> |
| <description>chmod: change permission(octal mode) of multiple files in relative path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -chmod 777 file1 file2 file3 file4 </command> |
| <command>-fs NAMENODE -ls -R file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=402 --> |
| <description>chmod: change permission(octal mode) of multiple directories in absolute path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 TEST_DIR_ABSOLUTE/dir0 TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=403 --> |
| <description>chmod: change permission(octal mode) of multiple directories in relative path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 dir0 dir2</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=404 --> |
| <description>chmod: change permission(normal mode) of multiple files in absolute path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod a+rw TEST_DIR_ABSOLUTE/file* </command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=405 --> |
| <description>chmod: change permission(normal mode) of multiple files in relative path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -chmod a+rw file* </command> |
| <command>-fs NAMENODE -ls -R file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=406 --> |
| <description>chmod: change permission(normal mode) of multiple directories in absolute path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=407 --> |
| <description>chmod: change permission(normal mode) of multiple directories in relative path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx dir*</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=408 --> |
| <description>chmod: change permission(normal mode) of multiple files in absolute path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod a+rw TEST_DIR_ABSOLUTE/file1 TEST_DIR_ABSOLUTE/file2 TEST_DIR_ABSOLUTE/file3 TEST_DIR_ABSOLUTE/file4 </command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=409 --> |
| <description>chmod: change permission(normal mode) of multiple files in relative path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -touchz file2</command> |
| <command>-fs NAMENODE -touchz file3</command> |
| <command>-fs NAMENODE -touchz file4</command> |
| <command>-fs NAMENODE -chmod a+rw file1 file2 file3 file4 </command> |
| <command>-fs NAMENODE -ls -R file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=410 --> |
| <description>chmod: change permission(normal mode) of multiple directories in absolute path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx TEST_DIR_ABSOLUTE/dir0 TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=411 --> |
| <description>chmod: change permission(normal mode) of multiple directories in relative path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx dir0 dir2</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=412 --> |
| <description>chmod: change permission(octal mode) of multiple directories in absolute path recursively using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=413 --> |
| <description>chmod: change permission(octal mode) of multiple directories in relative path recursively using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 dir*</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=414 --> |
| <description>chmod: change permission(octal mode) of multiple directories in absolute path recursively without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 TEST_DIR_ABSOLUTE/dir0 TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=415 --> |
| <description>chmod: change permission(octal mode) of multiple directories in relative path recursively without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 dir0 dir2</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=416 --> |
| <description>chmod: change permission(normal mode) of multiple directories in absolute path recursively using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=417 --> |
| <description>chmod: change permission(normal mode) of multiple directories in relative path recursively using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx dir*</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=418 --> |
| <description>chmod: change permission(normal mode) of multiple directories in absolute path recursively without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx TEST_DIR_ABSOLUTE/dir0 TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=419 --> |
| <description>chmod: change permission(normal mode) of multiple directories in relative path recursively without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx dir0 dir2</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=420 --> |
| <description>chmod: invalid value in octal mode of file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod 999 TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chmod: chmod : mode '999' does not match the expected pattern.</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=421 --> |
| <description>chmod: invalid value in octal mode of file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -chmod 999 file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chmod: chmod : mode '999' does not match the expected pattern.</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=422 --> |
| <description>chmod: invalid value in normal mode of file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod r+def TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chmod: chmod : mode \'r\+def\' does not match the expected pattern.</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=423 --> |
| <description>chmod: invalid value in normal mode of file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -chmod r+def file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chmod: chmod : mode \'r\+def\' does not match the expected pattern.</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=424 --> |
| <description>chmod: change permission(octal mode) of file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=425 --> |
| <description>chmod: change permission(octal mode) of directory in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=426 --> |
| <description>chmod: change permission(normal mode) of file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod a+rw HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=427 --> |
| <description>chmod: change permission(normal mode) of directory in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=428 --> |
| <description>chmod: change permission(octal mode) of directory in HCFS_SCHEME// path recursively </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=429 --> |
| <description>chmod: change permission(normal mode) of directory in HCFS_SCHEME// path recursively</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=430 --> |
| <description>chmod: change permission(octal mode) of non existent file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chmod 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chmod: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=431 --> |
| <description>chmod: change permission(normal mode) of non existent file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chmod a+rw HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chmod: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=432 --> |
| <description>chmod: change permission(octal mode) of multiple files in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file* </command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=433 --> |
| <description>chmod: change permission(octal mode) of multiple directories in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=434 --> |
| <description>chmod: change permission(octal mode) of multiple files in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4 </command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=435 --> |
| <description>chmod: change permission(octal mode) of multiple directories in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=436 --> |
| <description>chmod: change permission(normal mode) of multiple files in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod a+rw HCFS_SCHEME//TEST_DIR_ABSOLUTE/file* </command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=437 --> |
| <description>chmod: change permission(normal mode) of multiple directories in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=438 --> |
| <description>chmod: change permission(normal mode) of multiple files in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod a+rw HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4 </command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=439 --> |
| <description>chmod: change permission(normal mode) of multiple directories in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=440 --> |
| <description>chmod: change permission(octal mode) of multiple directories in HCFS_SCHEME// path recursively using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=441 --> |
| <description>chmod: change permission(octal mode) of multiple directories in HCFS_SCHEME// path recursively without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=442 --> |
| <description>chmod: change permission(normal mode) of multiple directories in HCFS_SCHEME// path recursively using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=443 --> |
| <description>chmod: change permission(normal mode) of multiple directories in HCFS_SCHEME// path recursively without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=444 --> |
| <description>chmod: invalid value in octal mode of file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod 999 HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chmod: chmod : mode '999' does not match the expected pattern.</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=445 --> |
| <description>chmod: invalid value in normal mode of file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod rdef HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chmod: chmod : mode \'rdef\' does not match the expected pattern.</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <!-- Tests for chmod --> |
| <test> <!-- TESTED test-id=446 --> |
| <description>chmod: change permission(octal mode) of file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod 777 NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=447 --> |
| <description>chmod: change permission(octal mode) of directory in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=448 --> |
| <description>chmod: change permission(normal mode) of file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod a+rw NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -ls NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=449 --> |
| <description>chmod: change permission(normal mode) of directory in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=450 --> |
| <description>chmod: change permission(octal mode) of directory in Namenode's path recursively </description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=451 --> |
| <description>chmod: change permission(normal mode) of directory in Namenode's path recursively</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=452 --> |
| <description>chmod: change permission(octal mode) of non existent file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chmod 777 NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chmod: `NAMENODETEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=453 --> |
| <description>chmod: change permission(normal mode) of non existent file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chmod a+rw NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chmod: `NAMENODETEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=454 --> |
| <description>chmod: change permission(octal mode) of multiple files in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod 777 NAMENODETEST_DIR_ABSOLUTE/file* </command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=455 --> |
| <description>chmod: change permission(octal mode) of multiple directories in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=456 --> |
| <description>chmod: change permission(octal mode) of multiple files in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod 777 NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2 NAMENODETEST_DIR_ABSOLUTE/file3 NAMENODETEST_DIR_ABSOLUTE/file4 </command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=457 --> |
| <description>chmod: change permission(octal mode) of multiple directories in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod 777 NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=458 --> |
| <description>chmod: change permission(normal mode) of multiple files in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod a+rw NAMENODETEST_DIR_ABSOLUTE/file* </command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=459 --> |
| <description>chmod: change permission(normal mode) of multiple directories in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=460 --> |
| <description>chmod: change permission(normal mode) of multiple files in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file2</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file3</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file4</command> |
| <command>-fs NAMENODE -chmod a+rw NAMENODETEST_DIR_ABSOLUTE/file1 NAMENODETEST_DIR_ABSOLUTE/file2 NAMENODETEST_DIR_ABSOLUTE/file3 NAMENODETEST_DIR_ABSOLUTE/file4 </command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file3</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-rw-rw-( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/file4</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=461 --> |
| <description>chmod: change permission(normal mode) of multiple directories in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod a+rwx NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=462 --> |
| <description>chmod: change permission(octal mode) of multiple directories in Namenode's path recursively using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=463 --> |
| <description>chmod: change permission(octal mode) of multiple directories in Namenode's path recursively without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R 777 NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=464 --> |
| <description>chmod: change permission(normal mode) of multiple directories in Namenode's path recursively using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=465 --> |
| <description>chmod: change permission(normal mode) of multiple directories in Namenode's path recursively without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chmod -R a+rwx NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxrwxrwx( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rwxrwxrwx( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=466 --> |
| <description>chmod: invalid value in octal mode of file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod 999 NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chmod: chmod : mode '999' does not match the expected pattern.</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=467 --> |
| <description>chmod: invalid value in normal mode of file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chmod rdef NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chmod: chmod : mode \'rdef\' does not match the expected pattern.</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=471 --> |
| <description>chown: change ownership of non existent file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chown newowner:newgroup HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chown: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=473 --> |
| <description>chown: change ownership of multiple directories in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chown newowner:newgroup HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=475 --> |
| <description>chown: change ownership of multiple directories in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chown newowner:newgroup HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=478 --> |
| <description>chown: invalid option for owner of file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chown %:newgroup HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chown: '%:newgroup' does not match expected pattern for \[owner\]\[:group\].</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=479 --> |
| <description>chown: invalid option for group of file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chown newowner:% HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chown: 'newowner:%' does not match expected pattern for \[owner\]\[:group\].</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=486 --> |
| <description>chown: change ownership of non existent file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chown newowner:newgroup TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chown: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=487 --> |
| <description>chown: change ownership of non existent file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chown newowner:newgroup file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chown: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=490 --> |
| <description>chown: change ownership of multiple directories in absolute path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chown newowner:newgroup TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=491 --> |
| <description>chown: change ownership of multiple directories in relative path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chown newowner:newgroup dir*</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=494 --> |
| <description>chown: change ownership of multiple directories in absolute path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chown newowner:newgroup TEST_DIR_ABSOLUTE/dir0 TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=495 --> |
| <description>chown: change ownership of multiple directories in relative path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chown newowner:newgroup dir0 dir2</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=500 --> |
| <description>chown: invalid option for owner of file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chown %:newgroup TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chown: '%:newgroup' does not match expected pattern for \[owner\]\[:group\].</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=501 --> |
| <description>chown: invalid option for owner of file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -chown %:newgroup file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chown: '%:newgroup' does not match expected pattern for \[owner\]\[:group\].</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=502 --> |
| <description>chown: invalid option for group of file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chown newowner:% TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chown: 'newowner:%' does not match expected pattern for \[owner\]\[:group\].</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=503 --> |
| <description>chown: invalid option for group of file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -chown newowner:% file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chown: 'newowner:%' does not match expected pattern for \[owner\]\[:group\].</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=507 --> |
| <description>chown: change ownership of non existent file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chown newowner:newgroup NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chown: `NAMENODETEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=509 --> |
| <description>chown: change ownership of multiple directories in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chown newowner:newgroup NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=511 --> |
| <description>chown: change ownership of multiple directories in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chown newowner:newgroup NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=514 --> |
| <description>chown: invalid option for owner of file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chown %:newgroup NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chown: '%:newgroup' does not match expected pattern for \[owner\]\[:group\].</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=515 --> |
| <description>chown: invalid option for group of file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chown newowner:% NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chown: 'newowner:%' does not match expected pattern for \[owner\]\[:group\].</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=522 --> |
| <description>chgrp: change group of non existent file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chgrp newgroup TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chgrp: `TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=523 --> |
| <description>chgrp: change group of non existent file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chgrp newgroup file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chgrp: `file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=526 --> |
| <description>chgrp: change group of multiple directories in absolute path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chgrp newgroup TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=527 --> |
| <description>chgrp: change group of multiple directories in relative path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chgrp newgroup dir*</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=530 --> |
| <description>chgrp: change group of multiple directories in absolute path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chgrp newgroup TEST_DIR_ABSOLUTE/dir0 TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=531 --> |
| <description>chgrp: change group of multiple directories in relative path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir -p dir0</command> |
| <command>-fs NAMENODE -mkdir -p dir0/dir1</command> |
| <command>-fs NAMENODE -touchz dir0/file0</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir -p dir2</command> |
| <command>-fs NAMENODE -mkdir -p dir2/dir1</command> |
| <command>-fs NAMENODE -touchz dir2/file0</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chgrp newgroup dir0 dir2</command> |
| <command>-fs NAMENODE -ls -R dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=536 --> |
| <description>chgrp: invalid option for group of file in absolute path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chgrp % TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chgrp: '%' does not match expected pattern for group</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=537 --> |
| <description>chgrp: invalid option for group of file in relative path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz file1</command> |
| <command>-fs NAMENODE -chgrp % file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chgrp: '%' does not match expected pattern for group</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=541 --> |
| <description>chgrp: change group of non existent file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chgrp newgroup HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chgrp: `HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=543 --> |
| <description>chgrp: change group of multiple directories in HCFS_SCHEME// path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chgrp newgroup HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=545 --> |
| <description>chgrp: change group of multiple directories in HCFS_SCHEME// path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chgrp newgroup HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0 HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*HCFS_SCHEME//TEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=548 --> |
| <description>chgrp: invalid option for group of file in HCFS_SCHEME// path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chgrp % HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm HCFS_SCHEME//TEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chgrp: '%' does not match expected pattern for group</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=552 --> |
| <description>chgrp: change group of non existent file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -chgrp newgroup NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^chgrp: `NAMENODETEST_DIR_ABSOLUTE/file1': No such file or directory</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=554 --> |
| <description>chgrp: change group of multiple directories in Namenode's path using globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chgrp newgroup NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=556 --> |
| <description>chgrp: change group of multiple directories in Namenode's path without globbing</description> |
| <test-commands> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -mkdir NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/file0</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</command> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</command> |
| <command>-fs NAMENODE -chgrp newgroup NAMENODETEST_DIR_ABSOLUTE/dir0 NAMENODETEST_DIR_ABSOLUTE/dir2</command> |
| <command>-fs NAMENODE -ls -R NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm -r NAMENODETEST_DIR_ABSOLUTE/dir*</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir0/file0</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^drwxr-xr-x( )*-( )*[a-z]*( )*supergroup( )*HCFS_DIRSIZE( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file1</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/dir1/file2</expected-output> |
| </comparator> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-rw-r--r--( )*1( )*[a-z]*( )*supergroup( )*0( )*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*NAMENODETEST_DIR_ABSOLUTE/dir2/file0</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| |
| <test> <!-- TESTED test-id=559 --> |
| <description>chgrp: invalid option for group of file in Namenode's path</description> |
| <test-commands> |
| <command>-fs NAMENODE -touchz NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| <command>-fs NAMENODE -chgrp % NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </test-commands> |
| <cleanup-commands> |
| <command>-fs NAMENODE -rm NAMENODETEST_DIR_ABSOLUTE/file1</command> |
| </cleanup-commands> |
| <comparators> |
| <comparator> |
| <type>RegexpComparator</type> |
| <expected-output>^-chgrp: '%' does not match expected pattern for group</expected-output> |
| </comparator> |
| </comparators> |
| </test> |
| </tests> |
| </configuration> |