[
https://issues.apache.org/jira/browse/HDFS-4237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559231#comment-13559231
]
Andy Isaacson commented on HDFS-4237:
-------------------------------------
{noformat}
+ String address = "127.0.0.1:" + port;
{noformat}
this line grew some trailing whitespace.
{{SecureHdfsTestUtil.java}} license comment has trailing whitespace.
{noformat}
+ * Our unit tests use 127.0.0.1/localhost to address the host running
+ * the tests. However, WebHDFS secure authentication using localhost is
+ * not allowed (kerberos authentication will complain it can't find
+ * the server). The actual hostname must be used. Therefore, to run
+ * the secure WebHDFS tests in your test environment, make 127.0.0.1
+ * resolve to the actual hostname.
{noformat}
I'm not sure this is an acceptable requirement, but let's go ahead and get it
checked in as is. Worst case we just back out this code.
(It would be better to teach the tests how to run in a reasonable environment
where the hostname resolves to the actual eth0 address or similar. This may
mean that it's impossible to do jUnit style tests of Kerberized security.)
bq. How does me adding a section on running/developing secure unit tests in the
Developer Documentation in http://wiki.apache.org/hadoop/ sound? Is there a
better place for documentation?
A wiki page sounds like an excellent start. I think it belongs on a new page
but you can use your judgment if you find a page where it fits in.
> 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
> Attachments: HDFS-4237.patch.001, HDFS-4237.patch.007
>
>
> 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