[java-idp-integration-tests] 01/02: Isolate test for troubleshooting
Tom Zeller
tzeller at dragonacea.biz
Sun Dec 17 19:47:35 UTC 2023
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch main
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=337744760fdbbdcd66ebc211eab6dd3e0738c370
commit 337744760fdbbdcd66ebc211eab6dd3e0738c370
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Sun Dec 17 13:46:57 2023 -0600
Isolate test for troubleshooting
Passes by itself, but not with others.
So move to its own class.
https://shibboleth.atlassian.net/browse/IDP-2175
---
.gitignore | 1 +
.../tests/saml2/AbstractSAML2IntegrationTest.java | 97 ----------------------
.../saml2/SAML2SSORedirectIntegrationTest.java | 5 --
3 files changed, 1 insertion(+), 102 deletions(-)
diff --git a/.gitignore b/.gitignore
index 32f0c4f..9e2fc82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,4 @@
.project
.classpath
.settings
+/tmp/
diff --git a/src/test/java/net/shibboleth/idp/integration/tests/saml2/AbstractSAML2IntegrationTest.java b/src/test/java/net/shibboleth/idp/integration/tests/saml2/AbstractSAML2IntegrationTest.java
index fae976b..382f8f5 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/saml2/AbstractSAML2IntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/saml2/AbstractSAML2IntegrationTest.java
@@ -839,101 +839,4 @@ public abstract class AbstractSAML2IntegrationTest extends BaseIntegrationTest {
validateResponse();
}
- /**
- * Test consent revocation using the user prefs page.
- *
- * Only for IdP version 5 or later.
- *
- * @param browserData browser/os/version triplet provided by data provider
- * @throws Exception if an error occurs
- */
- public void testUserPrefsRevokeConsent(@Nullable final BrowserData browserData) throws Exception {
-
- if (idpVersion.startsWith("4")) {
- return;
- }
-
- startSeleniumClient(browserData);
-
- enableModules("idp.UserPrefs");
-
- assertModulesAreEnabled("idp.UserPrefs");
-
- startServer();
-
- startFlow();
-
- waitForLoginPage();
-
- login();
-
- // attribute release
-
- waitForAttributeReleasePage();
-
- releaseAllAttributes();
-
- rememberConsent();
-
- submitForm();
-
- // response
-
- waitForResponsePage();
-
- validateResponse();
-
- // start login flow again
-
- startFlow();
-
- waitForResponsePage();
-
- validateResponse();
-
- // user prefs page
-
- getAndWaitForUserPrefsPage();
-
- // check the un-checked revoke consent checkbox
- WebElement revokeConsentCheckbox = driver.findElement(By.id(REVOKE_CONSENT_ID));
- Assert.assertFalse(revokeConsentCheckbox.isSelected());
- clickWorkaround(revokeConsentCheckbox);
-
- // start login flow again, should prompt for consent
-
- startFlow();
-
- // attribute release
-
- waitForAttributeReleasePage();
-
- releaseAllAttributes();
-
- rememberConsent();
-
- submitForm();
-
- // response
-
- waitForResponsePage();
-
- validateResponse();
-
- // start login flow again, should not prompt for consent
-
- startFlow();
-
- waitForResponsePage();
-
- validateResponse();
-
- // revoke consent checkbox should not be checked
-
- getAndWaitForUserPrefsPage();
-
- revokeConsentCheckbox = driver.findElement(By.id(REVOKE_CONSENT_ID));
- Assert.assertFalse(revokeConsentCheckbox.isSelected());
- }
-
}
diff --git a/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2SSORedirectIntegrationTest.java b/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2SSORedirectIntegrationTest.java
index 0a637a3..f1bd64e 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2SSORedirectIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2SSORedirectIntegrationTest.java
@@ -107,9 +107,4 @@ public class SAML2SSORedirectIntegrationTest extends AbstractSAML2IntegrationTes
super.testSLO(browserData);
}
- @Test(dataProvider = "sauceOnDemandBrowserDataProvider")
- public void testUserPrefsRevokeConsent(@Nullable final BrowserData browserData) throws Exception {
- super.testUserPrefsRevokeConsent(browserData);
- }
-
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list