KEYCLOAK-11725 Removed VaultRealmModel from tests

This commit is contained in:
Sebastian Laskawiec 2019-10-15 09:48:26 +02:00 committed by Stian Thorgersen
parent c16cfe9696
commit b6b7c11517
2 changed files with 11 additions and 1182 deletions

View file

@ -30,7 +30,7 @@ public class FilesPlainTextVaultProviderFactory implements VaultProviderFactory
logger.debug("Can not create a vault since it's disabled or not initialized correctly");
return null;
}
return new FilesPlainTextVaultProvider(vaultPath, session.getContext().getRealm().getName());
return new FilesPlainTextVaultProvider(vaultPath, getRealmName(session));
}
@Override
@ -60,4 +60,8 @@ public class FilesPlainTextVaultProviderFactory implements VaultProviderFactory
public String getId() {
return PROVIDER_ID;
}
protected String getRealmName(KeycloakSession session) {
return session.getContext().getRealm().getName();
}
}