Merge pull request #4076 from vramik/KEYCLOAK-4732

KEYCLOAK-4732 fix for wildfly
This commit is contained in:
Pavel Drozd 2017-04-27 08:06:55 +02:00 committed by GitHub
commit 51e4beccf4

View file

@ -16,6 +16,8 @@
*/
package org.keycloak.testsuite.authz;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Assert;
import org.junit.Test;
import org.keycloak.admin.client.resource.RealmResource;
@ -39,6 +41,7 @@ import org.keycloak.representations.idm.authorization.PolicyEvaluationResponse;
import org.keycloak.representations.idm.authorization.PolicyRepresentation;
import org.keycloak.representations.idm.authorization.ScopePermissionRepresentation;
import org.keycloak.testsuite.AbstractKeycloakTest;
import org.keycloak.testsuite.runonserver.RunOnServerDeployment;
import java.util.HashMap;
import java.util.List;
@ -59,6 +62,11 @@ public class PolicyEvaluationCompositeRoleTest extends AbstractKeycloakTest {
testRealmRep.setEnabled(true);
testRealms.add(testRealmRep);
}
@Deployment
public static WebArchive deploy() {
return RunOnServerDeployment.create();
}
public static void setup(KeycloakSession session) {
RealmModel realm = session.realms().getRealmByName(TEST);