You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2013/04/30 16:24:30 UTC

svn commit: r1477654 - in /cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test: java/org/apache/cxf/systest/sts/common/ resources/org/apache/cxf/systest/sts/symmetric/

Author: dkulp
Date: Tue Apr 30 14:24:29 2013
New Revision: 1477654

URL: http://svn.apache.org/r1477654
Log:
Merged revisions 1477303 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1477303 | dkulp | 2013-04-29 15:50:56 -0400 (Mon, 29 Apr 2013) | 2 lines

  [CXF-4977] Update the test config so it gets the SAML token from the STS and sends that as part of the request to get the SecureConversationToken.   The service is failing to process that token (or something).

........

Modified:
    cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/common/TokenTestUtils.java
    cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/DoubleIt.wsdl
    cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/cxf-client.xml

Modified: cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/common/TokenTestUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/common/TokenTestUtils.java?rev=1477654&r1=1477653&r2=1477654&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/common/TokenTestUtils.java (original)
+++ cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/common/TokenTestUtils.java Tue Apr 30 14:24:29 2013
@@ -83,6 +83,15 @@ public final class TokenTestUtils {
                 stsClient.setWsdlLocation(location.replace("8443", port));
             }
         }
+        stsClient = (STSClient)p.getRequestContext().get(SecurityConstants.STS_CLIENT + ".sct");
+        if (stsClient != null) {
+            String location = stsClient.getWsdlLocation();
+            if (location.contains("8080")) {
+                stsClient.setWsdlLocation(location.replace("8080", port));
+            } else if (location.contains("8443")) {
+                stsClient.setWsdlLocation(location.replace("8443", port));
+            }
+        }
     }
 
 }

Modified: cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/DoubleIt.wsdl
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/DoubleIt.wsdl?rev=1477654&r1=1477653&r2=1477654&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/DoubleIt.wsdl (original)
+++ cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/DoubleIt.wsdl Tue Apr 30 14:24:29 2013
@@ -275,8 +275,7 @@
                                                     <sp:RequireInternalReference />
                                                   </wsp:Policy>
                                                   <sp:Issuer>
-                                                    <wsaw:Address>http://localhost:8080/SecurityTokenService/UT
-                                                    </wsaw:Address>
+                                                    <wsaw:Address>http://localhost:8080/SecurityTokenService/UT</wsaw:Address>
                                                   </sp:Issuer>
                                                 </sp:IssuedToken>
                                               </wsp:Policy>

Modified: cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/cxf-client.xml
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/cxf-client.xml?rev=1477654&r1=1477653&r2=1477654&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/cxf-client.xml (original)
+++ cxf/branches/2.7.x-fixes/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/symmetric/cxf-client.xml Tue Apr 30 14:24:29 2013
@@ -99,7 +99,7 @@ http://cxf.apache.org/configuration/secu
    <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItSymmetricSAML2SecureConversationPort" 
                   createdFromAPI="true">
        <jaxws:properties>
-           <entry key="ws-security.sts.client" value-ref="stsClient"/>
+           <entry key="ws-security.sts.client.sct" value-ref="stsClient"/>
        </jaxws:properties>
    </jaxws:client>