KEYCLOAK-7816 Assume preview profile in authz tests

This commit is contained in:
mhajas 2018-07-13 14:28:43 +02:00 committed by Pedro Igor
parent b520dda3ef
commit 432ea277a7

View file

@ -53,7 +53,7 @@ import org.keycloak.util.JsonSerialization;
/** /**
* @author <a href="mailto:psilva@redhat.com">Pedro Igor</a> * @author <a href="mailto:psilva@redhat.com">Pedro Igor</a>
*/ */
public abstract class AbstractResourceServerTest extends AbstractKeycloakTest { public abstract class AbstractResourceServerTest extends AbstractAuthzTest {
protected static final String REALM_NAME = "authz-test"; protected static final String REALM_NAME = "authz-test";
@ -176,10 +176,6 @@ public abstract class AbstractResourceServerTest extends AbstractKeycloakTest {
} }
} }
protected AccessToken toAccessToken(String rpt) throws Exception {
return JsonSerialization.readValue(new JWSInput(rpt).getContent(), AccessToken.class);
}
protected void assertPermissions(List<Permission> permissions, String expectedResource, String... expectedScopes) { protected void assertPermissions(List<Permission> permissions, String expectedResource, String... expectedScopes) {
Iterator<Permission> iterator = permissions.iterator(); Iterator<Permission> iterator = permissions.iterator();