From 2cbc16743508f2887ac69eb0110415205a623257 Mon Sep 17 00:00:00 2001 From: vramik Date: Tue, 24 May 2022 11:35:03 +0200 Subject: [PATCH] JPA map storage: model tests fails with NPE Closes #12165 --- .../keycloak/testsuite/model/parameters/JpaMapStorage.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testsuite/model/src/test/java/org/keycloak/testsuite/model/parameters/JpaMapStorage.java b/testsuite/model/src/test/java/org/keycloak/testsuite/model/parameters/JpaMapStorage.java index 222ebd2fa4..1a80c2517c 100644 --- a/testsuite/model/src/test/java/org/keycloak/testsuite/model/parameters/JpaMapStorage.java +++ b/testsuite/model/src/test/java/org/keycloak/testsuite/model/parameters/JpaMapStorage.java @@ -20,6 +20,7 @@ import com.google.common.collect.ImmutableSet; import java.util.Set; import org.jboss.logging.Logger; import org.keycloak.authorization.store.StoreFactorySpi; +import org.keycloak.events.EventStoreSpi; import org.keycloak.models.DeploymentStateSpi; import org.keycloak.models.UserLoginFailureSpi; import org.keycloak.models.UserSessionSpi; @@ -94,7 +95,8 @@ public class JpaMapStorage extends KeycloakModelParameters { .spi(UserLoginFailureSpi.NAME).provider(MapUserLoginFailureProviderFactory.PROVIDER_ID) .config(STORAGE_CONFIG, JpaMapStorageProviderFactory.PROVIDER_ID) .spi("dblock").provider(NoLockingDBLockProviderFactory.PROVIDER_ID) .config(STORAGE_CONFIG, ConcurrentHashMapStorageProviderFactory.PROVIDER_ID) .spi(UserSessionSpi.NAME).provider(MapUserSessionProviderFactory.PROVIDER_ID) .config("storage-user-sessions.provider", ConcurrentHashMapStorageProviderFactory.PROVIDER_ID) - .config("storage-client-sessions.provider", ConcurrentHashMapStorageProviderFactory.PROVIDER_ID); - + .config("storage-client-sessions.provider", ConcurrentHashMapStorageProviderFactory.PROVIDER_ID) + .spi(EventStoreSpi.NAME).provider(MapUserSessionProviderFactory.PROVIDER_ID) .config("storage-admin-events.provider", ConcurrentHashMapStorageProviderFactory.PROVIDER_ID) + .config("storage-auth-events.provider", ConcurrentHashMapStorageProviderFactory.PROVIDER_ID); } }