This commit is contained in:
Bill Burke 2017-12-08 02:30:48 -05:00
parent 67149ce3c3
commit fce16fe030

View file

@ -49,6 +49,7 @@ import org.keycloak.representations.idm.UserRepresentation;
import org.keycloak.services.managers.RealmManager;
import org.keycloak.storage.StorageId;
import org.keycloak.storage.UserStorageProviderModel;
import org.keycloak.testsuite.ApplicationServlet;
import org.keycloak.testsuite.AssertEvents;
import org.keycloak.testsuite.Constants;
import org.keycloak.testsuite.OAuthClient;
@ -181,6 +182,7 @@ public class UserStorageFailureTest {
// restart server to make sure we can still boot if user storage is down
keycloakRule.restartServer();
keycloakRule.deployServlet("app", "/app", ApplicationServlet.class);
toggleForceFail(false);
@ -231,6 +233,7 @@ public class UserStorageFailureTest {
System.out.println(driver.getCurrentUrl());
System.out.println(driver.getPageSource());
Assert.assertTrue(appPage.isCurrent());
Assert.assertEquals(AppPage.RequestType.AUTH_RESPONSE, appPage.getRequestType());
Assert.assertNotNull(oauth.getCurrentQuery().get(OAuth2Constants.CODE));
oauth.openLogout();
}