It appears that the problem occurs when Knox is built with 'ant clean
release' when built with 'ant clean package' it seems to work (also works
with pure maven builds). I did not investigate why, may be target 'package'
does not execute the SecureClusterTest.

Colm,
Asking you since I see your commit since the last time 'ant clean
release' worked
:)
Do you think any changes you made could cause this to break ?

Best,
Sandeep



On Thu, Sep 7, 2017 at 9:37 AM, Sandeep More <moresand...@gmail.com> wrote:

> For some reason after I updated to master my SecureClusterTest test is
> failing. I tried checking out to a different location still the same,
> restarting had no affect still the failure.
> The test fails also when I run it in standalone more.
>
> It works when I go back to commit id f4de856.
>
> Also, note that this test is not run with Java 7.
>
> Would like to know if anyone else has the same issue (with Java 8and
> above), most likely i think this is my environment.
>
> Best,
> Sandeep
>
> Java version:
> java version "1.8.0_121"
> Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
>
> OS:
> macOS Sierra
>
> Failure:
> [exec] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
> 2.818 sec <<< FAILURE! - in org.apache.hadoop.gateway.SecureClusterTest
>      [exec] 
> basicGetUserHomeRequest(org.apache.hadoop.gateway.SecureClusterTest)
>  Time elapsed: 0.182 sec  <<< FAILURE!
>      [exec] org.junit.ComparisonFailure:
>      [exec] expected:<[{"Path":"/user/guest"}]> but was:<[<html>
>      [exec] <head>
>      [exec] <meta http-equiv="Content-Type" content="text/html;charset=
> ISO-8859-1"/>
>      [exec] <title>Error 404 </title>
>      [exec] </head>
>      [exec] <body>
>      [exec] <h2>HTTP ERROR: 404</h2>
>      [exec] <p>Problem accessing /gateway/cluster/webhdfs/v1. Reason:
>      [exec] <pre>    Not Found</pre></p>
>      [exec] <hr /><i><small>Powered by Jetty://</small></i>
>      [exec] </body>
>      [exec] </html>
>      [exec] ]>
>      [exec] at org.apache.hadoop.gateway.SecureClusterTest.
> basicGetUserHomeRequest(SecureClusterTest.java:223)
>      [exec]
>      [exec]
>      [exec] Results :
>      [exec]
>      [exec] Failed tests:
>      [exec]   SecureClusterTest.basicGetUserHomeRequest:223
> expected:<[{"Path":"/user/guest"}]> but was:<[<html>
>      [exec] <head>
>      [exec] <meta http-equiv="Content-Type" content="text/html;charset=
> ISO-8859-1"/>
>      [exec] <title>Error 404 </title>
>      [exec] </head>
>      [exec] <body>
>      [exec] <h2>HTTP ERROR: 404</h2>
>      [exec] <p>Problem accessing /gateway/cluster/webhdfs/v1. Reason:
>      [exec] <pre>    Not Found</pre></p>
>      [exec] <hr /><i><small>Powered by Jetty://</small></i>
>      [exec] </body>
>      [exec] </html>
>      [exec] ]>
>      [exec]
>      [exec] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
>
>
>

Reply via email to