Uma Maheswara Rao G created HDFS-5998:
-----------------------------------------
Summary: TestHDFSCLI tests will fail if machine user names are not
the combination of alphanumeric
Key: HDFS-5998
URL: https://issues.apache.org/jira/browse/HDFS-5998
Project: Hadoop HDFS
Issue Type: Test
Components: test
Reporter: Uma Maheswara Rao G
Priority: Minor
>From my jenkins results, I have seen the following failures
Testing mode: test
{noformat}
2014-02-21 19:45:07,448 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(212)) -
2014-02-21 19:45:07,448 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(213)) - Overall result: ---
FAIL ---
2014-02-21 19:45:07,448 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(221)) - # Tests pass: 427
(69%)
2014-02-21 19:45:07,448 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(223)) - # Tests fail: 186
(30%)
2014-02-21 19:45:07,448 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(227)) - # Validations done: 1686
(each test may do multiple validations)
==========================================================
Regex details:
2014-02-21 19:45:07,300 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(177)) - Comparator:
[RegexpComparator]
2014-02-21 19:45:07,300 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(179)) - Comparision result: [fail]
2014-02-21 19:45:07,301 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(181)) - Expected output:
[^-rw-r--r--( )*1( )*[a-zA-z0-9]*( )*supergroup( )*0(
)*[0-9]{4,}-[0-9]{2,}-[0-9]{2,} [0-9]{2,}:[0-9]{2,}( )*/dir2/file0]
2014-02-21 19:45:07,301 INFO cli.CLITestHelper
(CLITestHelper.java:displayResults(183)) - Actual output:
[drwxr-xr-x - ec2-user supergroup 0 2014-02-21 19:44 /dir0/dir1
-rw-r--r-- 1 ec2-user supergroup 0 2014-02-21 19:44 /dir0/dir1/file1
-rw-r--r-- 1 ec2-user supergroup 0 2014-02-21 19:44 /dir0/dir1/file2
-rw-r--r-- 1 ec2-user supergroup 0 2014-02-21 19:44 /dir0/file0
drwxr-xr-x - ec2-user supergroup 0 2014-02-21 19:44 /dir2/dir1
-rw-r--r-- 1 ec2-user supergroup 0 2014-02-21 19:44 /dir2/dir1/file1
-rw-r--r-- 1 ec2-user supergroup 0 2014-02-21 19:44 /dir2/dir1/file2
-rw-r--r-- 1 ec2-user supergroup 0 2014-02-21 19:44 /dir2/file0
]
{noformat}
Here in the regex related tests having the pattern for user name as [a-zA-z0-9]
But my jenkins has username as ec2-user. Since it has '-', it does not match
the regex pattern expected. Replacing with correct username regex will solve
this issue. Otherwise jenkins machine username should be only with the
combination of alphanumberic.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)