cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: Fixing a failing test
Date Fri, 26 Sep 2014 13:55:09 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 7e8b8ee78 -> d83aa2b8d


Fixing a failing test


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

Branch: refs/heads/2.7.x-fixes
Commit: d83aa2b8d6479fcf5a37d9e59412fd0b2a80f0fd
Parents: 7e8b8ee
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Sep 26 14:54:47 2014 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Sep 26 14:54:47 2014 +0100

----------------------------------------------------------------------
 .../apache/cxf/systest/ws/saml/SamlTokenTest.java    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/d83aa2b8/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/saml/SamlTokenTest.java
----------------------------------------------------------------------
diff --git a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/saml/SamlTokenTest.java
b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/saml/SamlTokenTest.java
index 1d56d95..95d8345 100644
--- a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/saml/SamlTokenTest.java
+++ b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/saml/SamlTokenTest.java
@@ -154,6 +154,21 @@ public class SamlTokenTest extends AbstractBusClientServerTestBase {
         ((BindingProvider)saml1Port).getRequestContext().put(
             "ws-security.saml-callback-handler", new SamlCallbackHandler(false)
         );
+        ((BindingProvider)saml1Port).getRequestContext().put(
+            SecurityConstants.SELF_SIGN_SAML_ASSERTION, true
+        );
+        ((BindingProvider)saml1Port).getRequestContext().put(
+            SecurityConstants.SIGNATURE_USERNAME, "alice"
+        );
+        ((BindingProvider)saml1Port).getRequestContext().put(
+            SecurityConstants.SIGNATURE_PROPERTIES, 
+            "org/apache/cxf/systest/ws/wssec10/client/alice.properties"
+        );
+        ((BindingProvider)saml1Port).getRequestContext().put(
+            SecurityConstants.CALLBACK_HANDLER, 
+            "org.apache.cxf.systest.ws.wssec10.client.KeystorePasswordCallback"
+        );
+        
         
         int result = saml1Port.doubleIt(25);
         assertTrue(result == 50);


Mime
View raw message