Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3163

TestHDFSCLI.testAll fails if the user name is not all lowercase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0-alpha
    • 1.2.0, 2.1.0-beta
    • test
    • None
    • Reviewed

    Description

      In the test resource file testHDFSConf.xml, the test comparators expect user name to be all lowercase.
      If the user issuing the test has an uppercase in the username (e.g., Brandon instead of brandon), many RegexpComarator tests will fail. The following is one example:

       
              <comparator>
                <type>RegexpComparator</type>
                <expected-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>
      

      Attachments

        1. HDFS-3163.branch-1-win.patch
          55 kB
          Brandon Li
        2. HDFS-3163.branch-1.patch
          57 kB
          Brandon Li
        3. HDFS-3163.patch
          371 kB
          Brandon Li

        Activity

          People

            brandonli Brandon Li
            brandonli Brandon Li
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: