From 61437fecb498fd1ccc6c31f3ba0fbbad893410ef Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 3 Aug 2020 07:45:13 -0500 Subject: [PATCH] Add test case https://github.com/GluuFederation/oxAuth/issues/1271 --- .../scim2/client/rest/ClientSideService.java | 16 ++++++++++++++++ scim-client/src/test/resources/testng.xml | 5 +++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/scim-client/src/main/java/gluu/scim2/client/rest/ClientSideService.java b/scim-client/src/main/java/gluu/scim2/client/rest/ClientSideService.java index 664121c..c24c0e9 100644 --- a/scim-client/src/main/java/gluu/scim2/client/rest/ClientSideService.java +++ b/scim-client/src/main/java/gluu/scim2/client/rest/ClientSideService.java @@ -129,4 +129,20 @@ public interface ClientSideService extends ClientSideUserService, ClientSideGrou @HeaderParam("Accept") @DefaultValue(MEDIA_TYPE_SCIM_JSON) Response processBulkOperations(String requestJson); + /** + * Obtains user entries that have been updated or added in the local Gluu database after a specified + * timestamp. This is NOT part of SCIM spec. See class org.gluu.oxtrust.ws.rs.scim2.ScimResourcesUpdatedWebService + * See the doc page. + * @param isoDate Represents a timestamp in ISO format (eg. 2019-12-24T12:00:03-05:00) + * @param start Integer offset from which results are output + * @param itemsPerPage Maximum number of results to retrieve + * @return An json object representing the results of the query. See the doc page for more information + */ + @Path("/scim/UpdatedUsers") + @GET + @Produces(MediaType.APPLICATION_JSON + UTF8_CHARSET_FRAGMENT) + Response usersChangedAfter(@QueryParam("timeStamp") String isoDate, + @QueryParam("start") int start, + @QueryParam("pageSize") int itemsPerPage); + } diff --git a/scim-client/src/test/resources/testng.xml b/scim-client/src/test/resources/testng.xml index 033a890..968627e 100644 --- a/scim-client/src/test/resources/testng.xml +++ b/scim-client/src/test/resources/testng.xml @@ -94,9 +94,10 @@ - + - + +