[KEYCLOAK-11330] - Fixing client and realm tests
This commit is contained in:
parent
42b9141326
commit
56574afbeb
1 changed files with 5 additions and 2 deletions
|
@ -126,7 +126,10 @@ public class TestApplicationResourceProvider implements RealmResourceProvider {
|
||||||
@Consumes(javax.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED)
|
@Consumes(javax.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED)
|
||||||
@Produces(MediaType.TEXT_HTML_UTF_8)
|
@Produces(MediaType.TEXT_HTML_UTF_8)
|
||||||
@Path("/{action}")
|
@Path("/{action}")
|
||||||
public String post(@PathParam("action") String action) {
|
public Response post(@PathParam("action") String action) {
|
||||||
|
if ("clear-admin-actions".equals(action)) {
|
||||||
|
return clearAdminActions();
|
||||||
|
}
|
||||||
MultivaluedMap<String, String> formParams = request.getDecodedFormParameters();
|
MultivaluedMap<String, String> formParams = request.getDecodedFormParameters();
|
||||||
String title = "APP_REQUEST";
|
String title = "APP_REQUEST";
|
||||||
if (action.equals("auth")) {
|
if (action.equals("auth")) {
|
||||||
|
@ -151,7 +154,7 @@ public class TestApplicationResourceProvider implements RealmResourceProvider {
|
||||||
sb.append("<a href=\"" + RealmsResource.accountUrl(base).build("test").toString() + "\" id=\"account\">account</a>");
|
sb.append("<a href=\"" + RealmsResource.accountUrl(base).build("test").toString() + "\" id=\"account\">account</a>");
|
||||||
|
|
||||||
sb.append("</body></html>");
|
sb.append("</body></html>");
|
||||||
return sb.toString();
|
return Response.ok(sb.toString()).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
|
|
Loading…
Reference in a new issue