You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Amir Sanjar (JIRA)" <ji...@apache.org> on 2012/11/08 15:31:13 UTC

[jira] [Created] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Amir Sanjar created MAPREDUCE-4781:
--------------------------------------

             Summary: Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
                 Key: MAPREDUCE-4781
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions: 1.0.3
         Environment: Fedora 17_64 on x86
            Reporter: Amir Sanjar


Problem:
JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
Solution:
Migrate the testcase to JUnit4
How:

Remove extends TestCase"

SetUp and TearDown methods

@Override
protected void setUp() throws Exception { }

replaced by:

@Before
public void setUp() throws Exception { }

Same for tearDown():

@Override
protected void tearDown() throws Exception { }

replaced by

@After
public void tearDown() throws Exception { }

Imports

The imports has to be reorganized:
    Remove import junit.framework.TestCase;
    Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493237#comment-13493237 ] 

Hadoop QA commented on MAPREDUCE-4781:
--------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12552663/MAPREDUCE-4781-branch-1.patch
  against trunk revision .

    {color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2998//console

This message is automatically generated.
                
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Sanjar updated MAPREDUCE-4781:
-----------------------------------

    Status: Patch Available  (was: Open)
    
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Sanjar updated MAPREDUCE-4781:
-----------------------------------

    Attachment: MAPREDUCE-4781-branch-1.patch
    
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Sanjar updated MAPREDUCE-4781:
-----------------------------------

    Attachment: HADOOP-4781.patch

patch for trunk
                
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: HADOOP-4781.patch, MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Sanjar updated MAPREDUCE-4781:
-----------------------------------

    Attachment:     (was: MAPREDUCE-4781-branch-1.patch)
    
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Sanjar updated MAPREDUCE-4781:
-----------------------------------

    Attachment:     (was: HADOOP-9024-branch-1.patch)
    
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495490#comment-13495490 ] 

Amir Sanjar commented on MAPREDUCE-4781:
----------------------------------------

testcases do not fail on TRUNK because  @ignore tag is not used, however it should still be migrated to JUnit4, any suggestion? 
                
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: HADOOP-9024-branch-1.patch, MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Sanjar updated MAPREDUCE-4781:
-----------------------------------

    Attachment: MAPREDUCE-4781-branch-1.patch
    
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Sanjar updated MAPREDUCE-4781:
-----------------------------------

    Status: Open  (was: Patch Available)
    
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: HADOOP-9024-branch-1.patch, MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Amir Sanjar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Sanjar updated MAPREDUCE-4781:
-----------------------------------

    Attachment: HADOOP-9024-branch-1.patch

Patch for 1.0.3 and 1.0.4
                
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: HADOOP-9024-branch-1.patch, MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MAPREDUCE-4781) Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495491#comment-13495491 ] 

Hadoop QA commented on MAPREDUCE-4781:
--------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12553149/HADOOP-9024-branch-1.patch
  against trunk revision .

    {color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/3016//console

This message is automatically generated.
                
> Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-4781
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4781
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.3
>         Environment: Fedora 17_64 on x86
>            Reporter: Amir Sanjar
>         Attachments: HADOOP-9024-branch-1.patch, MAPREDUCE-4781-branch-1.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
>     Remove import junit.framework.TestCase;
>     Add org.junit.*; or import org.junit.After; import org.junit.Before;   import org.junit.Test;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira