KEYCLOAK-16006. Fixed Spring Boot tests with new offset value.

This commit is contained in:
Miquel Simon 2021-03-09 13:21:27 +01:00 committed by Marek Posolda
parent 95d9cd2b38
commit 1d54dd5e8b

View file

@ -74,7 +74,7 @@ public class OfflineTokenSpringBootTest extends AbstractSpringBootTest {
String accessTokenId = tokenPage.getAccessToken().getId();
String refreshTokenId = tokenPage.getRefreshToken().getId();
setAdapterAndServerTimeOffset(9999, SERVLET_URL);
setAdapterAndServerTimeOffset(19999, SERVLET_URL);
driver.navigate().to(SERVLET_URL);
waitForPageToLoad();
@ -137,12 +137,16 @@ public class OfflineTokenSpringBootTest extends AbstractSpringBootTest {
.client("account").detail(Details.REVOKED_CLIENT, CLIENT_ID).assertEvent();
// Assert refresh doesn't work now (increase time one more time)
setAdapterAndServerTimeOffset(9999, SERVLET_URL);
setAdapterAndServerTimeOffset(19999, SERVLET_URL);
driver.navigate().to(SERVLET_URL);
waitForPageToLoad();
assertCurrentUrlStartsWith(testRealmLoginPage);
testRealmLoginPage.form().login(USER_LOGIN, USER_PASSWORD);
tokenPage.assertIsCurrent();
setAdapterAndServerTimeOffset(0, SERVLET_URL);
driver.navigate().to(logoutPage(SERVLET_URL));
}
@Test