hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11819) HttpServerFunctionalTest#prepareTestWebapp should create web app directory if it does not exist.
Date Tue, 14 Apr 2015 15:37:16 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494274#comment-14494274
] 

Hudson commented on HADOOP-11819:
---------------------------------

SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2113 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2113/])
HADOOP-11819. HttpServerFunctionalTest#prepareTestWebapp should create web app directory if
it does not exist. (Contributed by Rohith) (vinayakumarb: rev b5a0b24643688270e77f85aaf1af24fee2c556cc)
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java


> HttpServerFunctionalTest#prepareTestWebapp should create web app directory if it does
not exist.
> ------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-11819
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11819
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Rohith
>            Assignee: Rohith
>            Priority: Minor
>             Fix For: 2.8.0
>
>         Attachments: 0001-HADOOP-11819.patch
>
>
> Test fails if directory does not exist. Ideally Test should create the non existent directory
and execute.
> {noformat}
> java.lang.AssertionError: Test webapp dir D:\Hadoop\hadoop-common-project\hadoop-common\build\test\webapps\test
can not be created
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.apache.hadoop.http.HttpServerFunctionalTest.prepareTestWebapp(HttpServerFunctionalTest.java:127)
> 	at org.apache.hadoop.http.HttpServerFunctionalTest.createTestServer(HttpServerFunctionalTest.java:91)
> 	at org.apache.hadoop.http.TestHttpServer.setup(TestHttpServer.java:138)
> {noformat}
> And in the {{HttpServerFunctionalTest#prepareTestWebapp}} java doc says that fail if
directory can not be created but test is failing if directory does not exist.
> {code}
> /**
>    * Prepare the test webapp by creating the directory from the test properties
>    * fail if the directory cannot be created.
>    * @throws AssertionError if a condition was not met
>    */
>   protected static void prepareTestWebapp() {
> // some code
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message