Modified session length
This commit is contained in:
parent
973619d7c0
commit
a80a65c525
1 changed files with 2 additions and 6 deletions
|
@ -56,7 +56,7 @@ public class ModAuthMellonTest extends AbstractAuthTest {
|
||||||
modAuthMellonProtectedResourcePage2.navigateTo();
|
modAuthMellonProtectedResourcePage2.navigateTo();
|
||||||
URLAssert.assertCurrentUrlStartsWith(testRealmSAMLRedirectLoginPage);
|
URLAssert.assertCurrentUrlStartsWith(testRealmSAMLRedirectLoginPage);
|
||||||
|
|
||||||
pause(2000); //session length
|
pause(5000); //session length
|
||||||
|
|
||||||
modAuthMellonProtectedResourcePage.navigateTo();
|
modAuthMellonProtectedResourcePage.navigateTo();
|
||||||
URLAssert.assertCurrentUrlStartsWith(testRealmSAMLRedirectLoginPage);
|
URLAssert.assertCurrentUrlStartsWith(testRealmSAMLRedirectLoginPage);
|
||||||
|
@ -76,15 +76,11 @@ public class ModAuthMellonTest extends AbstractAuthTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void sessionExpiration() {
|
public void sessionExpiration() {
|
||||||
RealmRepresentation realm = testRealmResource().toRepresentation();
|
|
||||||
realm.setSsoSessionIdleTimeout(2);
|
|
||||||
testRealmResource().update(realm);
|
|
||||||
|
|
||||||
modAuthMellonProtectedResourcePage.navigateTo();
|
modAuthMellonProtectedResourcePage.navigateTo();
|
||||||
testRealmSAMLRedirectLoginPage.form().login(bburkeUser);
|
testRealmSAMLRedirectLoginPage.form().login(bburkeUser);
|
||||||
assertTrue(driver.getPageSource().contains("Protected resource"));
|
assertTrue(driver.getPageSource().contains("Protected resource"));
|
||||||
|
|
||||||
pause(2000); //session length
|
pause(5000); //session length
|
||||||
|
|
||||||
modAuthMellonProtectedResourcePage.navigateTo();
|
modAuthMellonProtectedResourcePage.navigateTo();
|
||||||
URLAssert.assertCurrentUrlStartsWith(testRealmSAMLRedirectLoginPage);
|
URLAssert.assertCurrentUrlStartsWith(testRealmSAMLRedirectLoginPage);
|
||||||
|
|
Loading…
Reference in a new issue