[java-idp-integration-tests] 02/02: IDP-1323 - Test for IsPassive and no consent records
Tom Zeller
tzeller at dragonacea.biz
Thu Sep 20 15:31:23 EDT 2018
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch master
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=fed9ef2200ae1749836b8d6e4c9c6a6c633bb60b
commit fed9ef2200ae1749836b8d6e4c9c6a6c633bb60b
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Thu Sep 20 14:31:10 2018 -0500
IDP-1323 - Test for IsPassive and no consent records
https://issues.shibboleth.net/jira/browse/IDP-1323
---
.../test/saml2/AbstractSAML2IntegrationTest.java | 51 ++++++++++++++++++++++
.../test/saml2/SAML2SSOPOSTIntegrationTest.java | 5 +++
.../saml2/SAML2SSORedirectIntegrationTest.java | 5 +++
3 files changed, 61 insertions(+)
diff --git a/src/test/java/net/shibboleth/idp/test/saml2/AbstractSAML2IntegrationTest.java b/src/test/java/net/shibboleth/idp/test/saml2/AbstractSAML2IntegrationTest.java
index eeca137..f2cf2b3 100644
--- a/src/test/java/net/shibboleth/idp/test/saml2/AbstractSAML2IntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/saml2/AbstractSAML2IntegrationTest.java
@@ -564,6 +564,57 @@ public abstract class AbstractSAML2IntegrationTest extends BaseIntegrationTest {
validateResponse();
}
+ /**
+ * Test SSO isPassive with a pre-existing session.
+ *
+ * @param browserData browser/os/version triplet provided by data provider
+ * @throws Exception if an error occurs
+ */
+ public void testSSOPassiveWithSessionNoConsent(@Nullable final BrowserData browserData) throws Exception {
+
+ startSeleniumClient(browserData);
+
+ startServer();
+
+ startFlow();
+
+ waitForLoginPage();
+
+ login();
+
+ // attribute release
+
+ waitForAttributeReleasePage();
+
+ releaseAllAttributes();
+
+ doNotRememberConsent();
+
+ submitForm();
+
+ // response
+
+ waitForResponsePage();
+
+ validateResponse();
+
+ // isPassive
+
+ driver.get(getBaseURL() + isPassiveRequestURLPath);
+
+ // response
+
+ waitForResponsePage();
+
+ final SAML2TestResponseValidator passiveValidator = new SAML2TestResponseValidator();
+ passiveValidator.spCredential = getSPCredential();
+ passiveValidator.statusCode = StatusCode.REQUESTER;
+ passiveValidator.statusCodeNested = StatusCode.NO_PASSIVE;
+ passiveValidator.statusMessage = "An error occurred.";
+
+ passiveValidator.validateResponse(unmarshallResponse(getPageSource()));
+ }
+
public void testSLO(@Nullable final BrowserData browserData) throws Exception {
startSeleniumClient(browserData);
diff --git a/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSOPOSTIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSOPOSTIntegrationTest.java
index 7bebca6..9b9c51b 100644
--- a/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSOPOSTIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSOPOSTIntegrationTest.java
@@ -87,6 +87,11 @@ public class SAML2SSOPOSTIntegrationTest extends AbstractSAML2IntegrationTest {
super.testSSOPassiveWithSession(browserData);
}
+ @Test(dataProvider = "sauceOnDemandBrowserDataProvider")
+ public void testSSOPassiveWithSessionNoConsent(@Nullable final BrowserData browserData) throws Exception {
+ super.testSSOPassiveWithSessionNoConsent(browserData);
+ }
+
@Test(dataProvider = "sauceOnDemandBrowserDataProvider", enabled = false)
public void testSLO(@Nullable final BrowserData browserData) throws Exception {
super.testSLO(browserData);
diff --git a/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSORedirectIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSORedirectIntegrationTest.java
index 9a3e15b..25a7298 100644
--- a/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSORedirectIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/saml2/SAML2SSORedirectIntegrationTest.java
@@ -87,6 +87,11 @@ public class SAML2SSORedirectIntegrationTest extends AbstractSAML2IntegrationTes
super.testSSOPassiveWithSession(browserData);
}
+ @Test(dataProvider = "sauceOnDemandBrowserDataProvider")
+ public void testSSOPassiveWithSessionNoConsent(@Nullable final BrowserData browserData) throws Exception {
+ super.testSSOPassiveWithSessionNoConsent(browserData);
+ }
+
@Test(dataProvider = "sauceOnDemandBrowserDataProvider", enabled = false)
public void testSLO(@Nullable final BrowserData browserData) throws Exception {
super.testSLO(browserData);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list