You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by km...@apache.org on 2015/11/06 23:42:02 UTC
knox git commit: KNOX-620: Jenkins Knox-master-verify failing since
#725 due to JDK version issues. Third attempt, added debugging.
Repository: knox
Updated Branches:
refs/heads/master 0aa422e64 -> e38562500
KNOX-620: Jenkins Knox-master-verify failing since #725 due to JDK version issues. Third attempt, added debugging.
Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/e3856250
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/e3856250
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/e3856250
Branch: refs/heads/master
Commit: e385625006829bfd3373645c08471dd75473f6a6
Parents: 0aa422e
Author: Kevin Minder <ke...@hortonworks.com>
Authored: Fri Nov 6 17:41:58 2015 -0500
Committer: Kevin Minder <ke...@hortonworks.com>
Committed: Fri Nov 6 17:41:58 2015 -0500
----------------------------------------------------------------------
.../gateway/GatewayAdminTopologyFuncTest.java | 40 +++++++++++++-------
1 file changed, 26 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/knox/blob/e3856250/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayAdminTopologyFuncTest.java
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayAdminTopologyFuncTest.java b/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayAdminTopologyFuncTest.java
index 4b81a5e..98f66a9 100644
--- a/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayAdminTopologyFuncTest.java
+++ b/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayAdminTopologyFuncTest.java
@@ -37,7 +37,6 @@ import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.AfterClass;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -266,14 +265,14 @@ public class GatewayAdminTopologyFuncTest {
return RESOURCE_BASE_CLASS.getName().replaceAll( "\\.", "/" ) + "/";
}
- @Ignore
- @Test
+ //@Test
public void waitForManualTesting() throws IOException {
System.in.read();
}
- @Test
+ @Test( timeout = 30*1000 )
public void testTopologyCollection() throws ClassNotFoundException {
+ ENTER( "testTopologyCollection" );
String username = "admin";
String password = "admin-password";
@@ -330,8 +329,9 @@ public class GatewayAdminTopologyFuncTest {
}
- @Test
+ @Test( timeout = 30*1000 )
public void testTopologyObject() throws ClassNotFoundException {
+ ENTER( "testTopologyObject" );
String username = "admin";
String password = "admin-password";
@@ -390,9 +390,9 @@ public class GatewayAdminTopologyFuncTest {
}
- @Test
+ @Test( timeout = 30*1000 )
public void testPositiveAuthorization() throws ClassNotFoundException{
-
+ ENTER( "testPositiveAuthorization" );
String adminUser = "admin";
String adminPass = "admin-password";
@@ -417,8 +417,9 @@ public class GatewayAdminTopologyFuncTest {
}
- @Test
+ @Test( timeout = 30*1000 )
public void testNegativeAuthorization() throws ClassNotFoundException{
+ ENTER( "testNegativeAuthorization" );
String guestUser = "guest";
String guestPass = "guest-password";
@@ -498,8 +499,9 @@ public class GatewayAdminTopologyFuncTest {
return topology;
}
- @Test
+ @Test( timeout = 30*1000 )
public void testDeployTopology() throws ClassNotFoundException {
+ ENTER( "testDeployTopology" );
Topology testTopology = createTestTopology();
@@ -549,8 +551,9 @@ public class GatewayAdminTopologyFuncTest {
.get(url);
}
- @Test
+ @Test( timeout = 30*1000 )
public void testDeleteTopology() throws ClassNotFoundException {
+ ENTER( "testDeleteTopology" );
Topology test = createTestTopology();
@@ -589,8 +592,9 @@ public class GatewayAdminTopologyFuncTest {
.get(url);
}
- @Test
+ @Test( timeout = 30*1000 )
public void testPutTopology() throws ClassNotFoundException {
+ ENTER( "testPutTopology" ) ;
String username = "admin";
String password = "admin-password";
@@ -654,8 +658,9 @@ public class GatewayAdminTopologyFuncTest {
}
- @Test
+ @Test( timeout = 30*1000 )
public void testXForwardedHeaders() {
+ ENTER( "testXForwardedHeaders" );
String username = "admin";
String password = "admin-password";
@@ -768,9 +773,9 @@ public class GatewayAdminTopologyFuncTest {
}
- @Test
+ @Test( timeout = 30*1000 )
public void testGatewayPathChange() throws Exception {
-
+ ENTER( "testGatewayPathChange" );
String username = "admin";
String password = "admin-password";
String url = clusterUrl + "/api/v1/topologies";
@@ -813,5 +818,12 @@ public class GatewayAdminTopologyFuncTest {
}
+ private static final String CLASS = GatewayAdminTopologyFuncTest.class.getCanonicalName();
+
+ private static void ENTER( String method ) {
+ String message = String.format( "Running %s#%s ", CLASS, method );
+ System.out.println( message );
+ LOG.info( message );
+ }
}