KEYCLOAK-8944 Fix ProfileAssume for backward adapter compat. testing

This commit is contained in:
vmuzikar 2018-11-23 11:41:48 +01:00 committed by Pavel Drozd
parent 3c8dddf33e
commit 7d75377813

View file

@ -39,10 +39,11 @@ public class ProfileAssume {
static {
String host = System.getProperty("auth.server.host", "localhost");
String port = System.getProperty("auth.server.http.port", "8180");
boolean adapterCompatTesting = Boolean.parseBoolean(System.getProperty("testsuite.adapter.compat.testing"));
String authServerContextRoot = "http://" + host + ":" + port;
try {
Keycloak adminClient = AdminClientUtil.createAdminClient(false, authServerContextRoot);
Keycloak adminClient = AdminClientUtil.createAdminClient(adapterCompatTesting, authServerContextRoot);
ProfileInfoRepresentation profileInfo = adminClient.serverInfo().getInfo().getProfileInfo();
profile = profileInfo.getName();
List<String> disabled = profileInfo.getDisabledFeatures();