[java-idp-testbed COMMIT] /trunk/src/test/java/idp/saml1/SAML1UnsolicitedFlowTest.java

noreply at shibboleth.net noreply at shibboleth.net
Thu Feb 6 19:23:51 EST 2014


Author: tzeller
Date: Thu Feb  6 19:23:51 2014
New Revision: 143

URL: http://svn.shibboleth.net/view/java-idp-testbed?rev=143&view=rev
Log:
Added a couple of request parameters.

Modified:
    trunk/src/test/java/idp/saml1/SAML1UnsolicitedFlowTest.java

Modified: trunk/src/test/java/idp/saml1/SAML1UnsolicitedFlowTest.java
URL: http://svn.shibboleth.net/view/java-idp-testbed/trunk/src/test/java/idp/saml1/SAML1UnsolicitedFlowTest.java?rev=143&r1=142&r2=143&view=diff
==============================================================================
--- trunk/src/test/java/idp/saml1/SAML1UnsolicitedFlowTest.java (original)
+++ trunk/src/test/java/idp/saml1/SAML1UnsolicitedFlowTest.java Thu Feb  6 19:23:51 2014
@@ -20,6 +20,8 @@
 import idp.AbstractFlowTest;
 
 import javax.annotation.Nonnull;
+
+import net.shibboleth.idp.saml.impl.profile.BaseIdPInitiatedSSORequestMessageDecoder;
 
 import org.opensaml.core.xml.schema.XSString;
 import org.opensaml.profile.context.ProfileRequestContext;
@@ -53,9 +55,17 @@
     /** Flow id. */
     @Nonnull public final static String FLOW_ID = "Shibboleth/SSO";
 
+    private String entityId = "http://sp.example.org";
+
+    private String acsUrl = "http://sp.example.org/acs";
+
+    private String relayState = "myRelayState";
+
     @Test public void testFlow() {
-        // TODO more request parameters
-        request.addParameter("providerId", "https://sp.example.org");
+        // TODO time request parameter ?
+        request.addParameter(BaseIdPInitiatedSSORequestMessageDecoder.PROVIDER_ID_PARAM, entityId);
+        request.addParameter(BaseIdPInitiatedSSORequestMessageDecoder.SHIRE_PARAM, acsUrl);
+        request.addParameter(BaseIdPInitiatedSSORequestMessageDecoder.TARGET_PARAM, relayState);
 
         FlowExecutionResult result = flowExecutor.launchExecution(FLOW_ID, null, externalContext);
         Assert.assertEquals(FLOW_ID, result.getFlowId());



More information about the commits mailing list