You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2018/02/28 20:38:02 UTC

[2/3] qpid-broker-j git commit: QPID-8083: [System Tests] [REST/HTTP] Check whether sun.security API is available

QPID-8083: [System Tests] [REST/HTTP] Check whether sun.security API is available


Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/f50be6e3
Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/f50be6e3
Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/f50be6e3

Branch: refs/heads/master
Commit: f50be6e3a1fc3a3405a0ce985a768523da25f6d8
Parents: 8dd9bd6
Author: Alex Rudyy <or...@apache.org>
Authored: Wed Feb 28 15:32:49 2018 +0000
Committer: Alex Rudyy <or...@apache.org>
Committed: Wed Feb 28 20:34:10 2018 +0000

----------------------------------------------------------------------
 .../tests/http/authentication/PreemptiveAuthenticationTest.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/f50be6e3/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java
----------------------------------------------------------------------
diff --git a/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java b/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java
index 40c655c..c7d0146 100644
--- a/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java
+++ b/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java
@@ -23,6 +23,7 @@ package org.apache.qpid.tests.http.authentication;
 import static javax.servlet.http.HttpServletResponse.SC_CREATED;
 import static javax.servlet.http.HttpServletResponse.SC_OK;
 import static javax.servlet.http.HttpServletResponse.SC_UNAUTHORIZED;
+import static org.apache.qpid.server.transport.network.security.ssl.SSLUtil.canGenerateCerts;
 import static org.apache.qpid.server.transport.network.security.ssl.SSLUtil.generateSelfSignedCertificate;
 import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.greaterThan;
@@ -32,6 +33,7 @@ import static org.hamcrest.Matchers.not;
 import static org.hamcrest.Matchers.startsWith;
 import static org.junit.Assert.assertThat;
 import static org.junit.Assert.fail;
+import static org.junit.Assume.assumeThat;
 
 import java.io.ByteArrayOutputStream;
 import java.net.HttpURLConnection;
@@ -105,6 +107,7 @@ public class PreemptiveAuthenticationTest extends HttpTestBase
     @Test
     public void clientAuthSuccess() throws Exception
     {
+        assumeThat(canGenerateCerts(), is(true));
         HttpTestHelper helper = configForClientAuth("CN=foo");
 
         String userId = helper.getJson("broker/getUser", STRING_TYPE_REF, SC_OK);
@@ -114,6 +117,7 @@ public class PreemptiveAuthenticationTest extends HttpTestBase
     @Test
     public void clientAuthUnrecognisedCert() throws Exception
     {
+        assumeThat(canGenerateCerts(), is(true));
         HttpTestHelper helper = configForClientAuth("CN=foo");
 
         String keyStore = createKeyStoreDataUrl(getKeyCertPair("CN=bar"), STORE_PASSWORD);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org