From 6605ba1362176bf591196fbf874042c6ecda9017 Mon Sep 17 00:00:00 2001 From: mhajas Date: Thu, 3 Nov 2016 09:43:49 +0100 Subject: [PATCH] KEYCLOAK-3854 Move EnfrocerConfigTest out from adapter tests --- .../client}/authorization/EnforcerConfigTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/{adapter/example => admin/client}/authorization/EnforcerConfigTest.java (90%) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/authorization/EnforcerConfigTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/client/authorization/EnforcerConfigTest.java similarity index 90% rename from testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/authorization/EnforcerConfigTest.java rename to testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/client/authorization/EnforcerConfigTest.java index 3231beb7ea..f1e407f9f0 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/authorization/EnforcerConfigTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/client/authorization/EnforcerConfigTest.java @@ -14,8 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.keycloak.testsuite.adapter.example.authorization; +package org.keycloak.testsuite.admin.client.authorization; +import org.junit.BeforeClass; import org.junit.Test; import org.keycloak.adapters.KeycloakDeployment; import org.keycloak.adapters.KeycloakDeploymentBuilder; @@ -23,6 +24,7 @@ import org.keycloak.adapters.authorization.PolicyEnforcer; import org.keycloak.representations.adapters.config.PolicyEnforcerConfig; import org.keycloak.representations.idm.RealmRepresentation; import org.keycloak.testsuite.AbstractKeycloakTest; +import org.keycloak.testsuite.ProfileAssume; import java.util.List; @@ -34,6 +36,9 @@ import static org.keycloak.testsuite.util.IOUtil.loadRealm; */ public class EnforcerConfigTest extends AbstractKeycloakTest { + @BeforeClass + public static void enabled() { ProfileAssume.assumePreview(); } + @Override public void addTestRealms(List testRealms) { RealmRepresentation realm = loadRealm(getClass().getResourceAsStream("/authorization-test/test-authz-realm.json"));