ソースを参照

HADOOP-7645. Disable TestKerberosAuthenticator and TestKerberosAuthenticationHandler. Contributed by Jitendra Pandey and Benoy Antony.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.22@1346226 13f79535-47bb-0310-9956-ffa450edef68
Konstantin Shvachko 13 年 前
コミット
4844722c01

+ 3 - 0
common/CHANGES.txt

@@ -31,6 +31,9 @@ Release 0.22.1 - Unreleased
 
     HADOOP-7674. Fix TestKerberosName. (Benoy Antony via shv)
 
+    HADOOP-7645. Disable TestKerberosAuthenticator and
+    TestKerberosAuthenticationHandler. (Benoy Antony via shv)
+
 Release 0.22.0 - 2011-11-29
 
   INCOMPATIBLE CHANGES

+ 3 - 0
common/src/test/core/org/apache/hadoop/security/authentication/client/TestKerberosAuthenticator.java

@@ -17,12 +17,15 @@ import org.apache.hadoop.security.authentication.KerberosTestUtils;
 import org.apache.hadoop.security.authentication.server.AuthenticationFilter;
 import org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler;
 import org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler;
+import org.junit.Ignore;
 
 import java.net.HttpURLConnection;
 import java.net.URL;
 import java.util.Properties;
 import java.util.concurrent.Callable;
 
+//Disabled because kerberos setup and valid keytabs are required.
+@Ignore("requires kerberos setup")
 public class TestKerberosAuthenticator extends AuthenticatorTestCase {
 
   private Properties getAuthenticationHandlerConfiguration() {

+ 3 - 0
common/src/test/core/org/apache/hadoop/security/authentication/server/TestKerberosAuthenticationHandler.java

@@ -21,6 +21,7 @@ import org.apache.commons.codec.binary.Base64;
 import org.ietf.jgss.GSSContext;
 import org.ietf.jgss.GSSManager;
 import org.ietf.jgss.GSSName;
+import org.junit.Ignore;
 import org.mockito.Mockito;
 import sun.security.jgss.GSSUtil;
 
@@ -29,6 +30,8 @@ import javax.servlet.http.HttpServletResponse;
 import java.util.Properties;
 import java.util.concurrent.Callable;
 
+//Disabled because kerberos setup and valid keytabs are required.
+@Ignore("requires kerberos setup")
 public class TestKerberosAuthenticationHandler extends TestCase {
 
   private KerberosAuthenticationHandler handler;