activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject git commit: Disabled test
Date Thu, 03 Oct 2013 15:04:57 GMT
Updated Branches:
  refs/heads/trunk ac5ba4082 -> 5eb4e6b8a


Disabled test


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/5eb4e6b8
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/5eb4e6b8
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/5eb4e6b8

Branch: refs/heads/trunk
Commit: 5eb4e6b8ae6604d1eb03bb82a70657e983c5b9e3
Parents: ac5ba40
Author: Claus Ibsen <claus.ibsen@gmail.com>
Authored: Thu Oct 3 17:04:47 2013 +0200
Committer: Claus Ibsen <claus.ibsen@gmail.com>
Committed: Thu Oct 3 17:04:47 2013 +0200

----------------------------------------------------------------------
 .../ActiveMQBrokerNdWebConsoleFeatureTest.java     | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/5eb4e6b8/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java
----------------------------------------------------------------------
diff --git a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java
b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java
index 044d8b3..5067fc5 100644
--- a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java
+++ b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java
@@ -22,17 +22,17 @@ import org.apache.commons.httpclient.UsernamePasswordCredentials;
 import org.apache.commons.httpclient.auth.AuthScope;
 import org.apache.commons.httpclient.methods.GetMethod;
 import org.apache.commons.httpclient.methods.PostMethod;
-import org.apache.commons.httpclient.params.HttpConnectionManagerParams;
+import org.junit.Ignore;
 import org.junit.runner.RunWith;
 import org.ops4j.pax.exam.CoreOptions;
 import org.ops4j.pax.exam.Option;
 import org.ops4j.pax.exam.junit.Configuration;
 import org.ops4j.pax.exam.junit.JUnit4TestRunner;
 
-
 import static org.junit.Assert.assertEquals;
 
 @RunWith(JUnit4TestRunner.class)
+@Ignore("Can fail sometimes. Old web-console is also @deprecated")
 public class ActiveMQBrokerNdWebConsoleFeatureTest extends ActiveMQBrokerFeatureTest {
 
     static final String WEB_CONSOLE_URL = "http://localhost:8181/activemqweb/";
@@ -49,10 +49,17 @@ public class ActiveMQBrokerNdWebConsoleFeatureTest extends ActiveMQBrokerFeature
         HttpClient client = new HttpClient();
         client.getHttpConnectionManager().getParams().setConnectionTimeout(30000);
 
+        // set credentials
+        client.getState().setCredentials(
+                new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),
+                new UsernamePasswordCredentials(USER, PASSWORD)
+        );
+
         System.err.println(executeCommand("activemq:bstat").trim());
         System.err.println("attempting to access web console..");
 
         GetMethod get = new GetMethod(WEB_CONSOLE_URL + "index.jsp");
+        get.setDoAuthentication(true);
 
         // Give console some time to start
         boolean done = false;
@@ -78,12 +85,6 @@ public class ActiveMQBrokerNdWebConsoleFeatureTest extends ActiveMQBrokerFeature
         get = new GetMethod(WEB_CONSOLE_URL + "send.jsp");
         get.setDoAuthentication(true);
 
-        // set credentials
-        client.getState().setCredentials(
-                new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),
-                new UsernamePasswordCredentials(USER, PASSWORD)
-         );
-
         int code = client.executeMethod(get);
         assertEquals("get succeeded on " + get, 200, code);
 


Mime
View raw message