KEYCLOAK-7816 Assume preview profile in authz tests
This commit is contained in:
parent
b520dda3ef
commit
432ea277a7
1 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue