Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BFE97EBA6 for ; Mon, 17 Dec 2012 21:28:20 +0000 (UTC) Received: (qmail 74129 invoked by uid 500); 17 Dec 2012 21:28:20 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 73887 invoked by uid 500); 17 Dec 2012 21:28:13 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 73878 invoked by uid 99); 17 Dec 2012 21:28:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2012 21:28:13 +0000 Date: Mon, 17 Dec 2012 21:28:13 +0000 (UTC) From: "Stephen Chu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-4237) Add unit tests for HTTP-based filesystems against secure MiniDFSCluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-4237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stephen Chu updated HDFS-4237: ------------------------------ Attachment: HDFS-4237.patch.001 I've attached a patch for secure WebHDFS unit tests. This patch edits MiniDFSCluster to allow starting multiple secure DataNodes. This involves finding free ports under 1024. Earlier, from HADOOP-9004, we could only start one secure DataNode. SecureWebHdfsFileSystemContract is ignored because it extends TestCase (JUnit3) but I use JUnit4's Assume to check if the external KDC properties are set. TestCase and Assume don't work together: http://issues.gradle.org/browse/GRADLE-1879 The test cases from SecureWebHdfsFileSystemContract are run in TestSecureWebHDFS, which also runs TestWebHDFS's _testLargeFile_. > Add unit tests for HTTP-based filesystems against secure MiniDFSCluster > ----------------------------------------------------------------------- > > Key: HDFS-4237 > URL: https://issues.apache.org/jira/browse/HDFS-4237 > Project: Hadoop HDFS > Issue Type: Test > Components: security, test, webhdfs > Affects Versions: 2.0.0-alpha > Reporter: Stephen Chu > Assignee: Stephen Chu > Fix For: 3.0.0 > > Attachments: HDFS-4237.patch.001 > > > Now that we can start a secure MiniDFSCluster (HADOOP-9004), we need more security unit tests. > A good area to add secure tests is the HTTP-based filesystems (WebHDFS, HttpFs). -- 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