From 9cd860d69802ce4ba828661dff67888ea69a642d Mon Sep 17 00:00:00 2001 From: Vlasta Ramik Date: Thu, 19 Jan 2017 14:51:42 +0100 Subject: [PATCH] disable authorization tests in integration testsuite for product profile --- .../authorization/AbstractAuthorizationTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/authorization/AbstractAuthorizationTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/authorization/AbstractAuthorizationTest.java index ebf7144e12..2bea84360e 100644 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/authorization/AbstractAuthorizationTest.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/authorization/AbstractAuthorizationTest.java @@ -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);