From ab58779d2259b19d6e306a56a4f6684c48fb308b Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Tue, 25 Apr 2017 08:34:39 -0300 Subject: [PATCH] [KEYCLOAK-4732] - Need to run the test using the target testing realm --- .../testsuite/authz/PolicyEvaluationCompositeRoleTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/authz/PolicyEvaluationCompositeRoleTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/authz/PolicyEvaluationCompositeRoleTest.java index 74fcb7bd0b..d97cc747f7 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/authz/PolicyEvaluationCompositeRoleTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/authz/PolicyEvaluationCompositeRoleTest.java @@ -62,6 +62,9 @@ public class PolicyEvaluationCompositeRoleTest extends AbstractKeycloakTest { public static void setup(KeycloakSession session) { RealmModel realm = session.realms().getRealmByName(TEST); + + session.getContext().setRealm(realm); + ClientModel client = session.realms().addClient(realm, "myclient"); RoleModel role1 = client.addRole("client-role1");