Added description and URL to list-authorized-clients service (close #53)
Change-Id: I161d357e3c438817456f7cb6fae54e5c6da029e5
Change-Id: Iada426803ebc8964ecdb84d0a4e4c1ce96b22f30
diff --git a/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ClientControllerTest.java b/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ClientControllerTest.java
index f56292e..827684e 100644
--- a/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ClientControllerTest.java
+++ b/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ClientControllerTest.java
@@ -80,7 +80,7 @@
throws UniformInterfaceException, ClientHandlerException,
KustvaktException {
ClientResponse response = resource().path(API_VERSION).path("oauth2")
- .path("client").path("info").path(clientId)
+ .path("client").path(clientId)
.header(Attributes.AUTHORIZATION, HttpAuthorizationHandler
.createBasicAuthorizationHeaderValue(username, "pass"))
.get(ClientResponse.class);
@@ -98,14 +98,14 @@
assertEquals(publicClientId, clientInfo.at("/id").asText());
assertEquals("third party client", clientInfo.at("/name").asText());
assertNotNull(clientInfo.at("/description"));
- assertNotNull(clientInfo.at("/redirectURI"));
+ assertNotNull(clientInfo.at("/url"));
assertEquals("PUBLIC", clientInfo.at("/type").asText());
// confidential client
clientInfo = retrieveClientInfo(confidentialClientId, "system");
assertEquals(confidentialClientId, clientInfo.at("/id").asText());
assertEquals("non super confidential client", clientInfo.at("/name").asText());
- assertNotNull(clientInfo.at("/redirectURI"));
+ assertNotNull(clientInfo.at("/url"));
assertEquals(false,clientInfo.at("/isSuper").asBoolean());
assertEquals("CONFIDENTIAL", clientInfo.at("/type").asText());
@@ -113,7 +113,7 @@
clientInfo = retrieveClientInfo(superClientId, "system");
assertEquals(superClientId, clientInfo.at("/id").asText());
assertEquals("super confidential client", clientInfo.at("/name").asText());
- assertNotNull(clientInfo.at("/redirectURI"));
+ assertNotNull(clientInfo.at("/url"));
assertEquals("CONFIDENTIAL", clientInfo.at("/type").asText());
assertTrue(clientInfo.at("/isSuper").asBoolean());
}
@@ -263,7 +263,7 @@
.createBasicAuthorizationHeaderValue(username, "pass"))
.delete(ClientResponse.class);
- assertEquals(Status.NOT_FOUND.getStatusCode(), response.getStatus());
+ assertEquals(Status.METHOD_NOT_ALLOWED.getStatusCode(), response.getStatus());
}
private void testDeregisterPublicClient (String clientId)