Merge pull request #3774 from vramik/KEYCLOAK-4263

KEYCLOAK-4263 disable authorization tests in integration testsuite for product profile
This commit is contained in:
Pavel Drozd 2017-01-23 14:05:14 +01:00 committed by GitHub
commit 4868918f94

View file

@ -18,10 +18,13 @@
package org.keycloak.testsuite.authorization;
import org.junit.Assume;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.keycloak.admin.client.Keycloak;
import org.keycloak.authorization.AuthorizationProvider;
import org.keycloak.common.Profile;
import org.keycloak.models.ClientModel;
import org.keycloak.models.Constants;
import org.keycloak.models.KeycloakSession;
@ -51,6 +54,11 @@ public abstract class AbstractAuthorizationTest {
private Keycloak adminClient;
@BeforeClass
public static void enabled() {
Assume.assumeTrue("Ignoring test as community/preview profile is not enabled", !Profile.getName().equals("product"));
}
@Before
public void onBefore() {
adminClient = Keycloak.getInstance(AUTH_SERVER_ROOT, MASTER, ADMIN, ADMIN, Constants.ADMIN_CLI_CLIENT_ID);