Commit Graph

152 Commits

Author SHA1 Message Date
Manuele Simi f53caddced Advance maven-parent to 1.1.0. 2019-07-09 21:21:20 -04:00
Manuele Simi 367ed542a3 Correct the maven-parent version. 2019-06-03 23:02:35 -04:00
Manuele Simi 2ed8675c35 Move idea project files to root level. 2019-06-03 22:50:57 -04:00
Manuele Simi a505491803 Advance maven-parent to 1.1.0-SNAPSHOT. 2019-06-03 22:46:43 -04:00
Manuele Simi fa9f4d2d56 Add idea project files.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179404 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-05-14 03:22:38 +00:00
Manuele Simi a035814fdc Use parent version for dependency on manager-io.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179403 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-05-14 03:20:06 +00:00
Manuele Simi c5f90ae282 Fix test cases after renaming the context resource.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179402 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-05-14 03:19:03 +00:00
Manuele Simi 1fbb37defa Return the URI of the newly created context (compliance with REST).
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179219 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-05-02 03:43:10 +00:00
Manuele Simi 0c0dfc02ed Advance version for all modules to 1.0.0-SNAPSHOT.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179218 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-05-02 03:01:09 +00:00
Manuele Simi a38e34406b Rename context resource.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@179109 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-04-22 15:44:36 +00:00
Manuele Simi 79523020dd Advance dep on gxJRS.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@178674 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-03-23 20:03:13 +00:00
Manuele Simi 28f9d96b49 Invert assert on existing context test.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@178445 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-03-02 21:26:51 +00:00
Manuele Simi 8ebad38cae Improve tests on ResourceRegistryContextClient. Advance JUnit to 4.12.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@177251 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-25 03:54:52 +00:00
Manuele Simi 6a0ce9c5e7 Load the Resource Registry URL to use in the test cases from the properties file.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@177204 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-21 03:44:55 +00:00
Manuele Simi b7ef1dd99f Update to the new IS and gCube models. Upgrade dependency on resource-registry-context-client to 2.1.0-SNAPSHOT.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@177157 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-15 04:08:05 +00:00
Manuele Simi 9111ff85d8 Remove root dependencies after migrating to IntelliJ IDEA.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@176949 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-03 02:35:17 +00:00
Manuele Simi 96be6020f3 Add gxJRS depedendency to IO module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@176948 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-02 23:07:49 +00:00
Manuele Simi f9b0ba55ce Migrate to the most recent releases of gxRest, gcube-model and information-system-model. Introduce Jersey BOM.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@176875 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-01-29 20:29:12 +00:00
Manuele Simi 54e2b6bbab Update dependency on gxJRS. Remove dependency from javax.ws.rs-api.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@176583 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-01-16 02:46:53 +00:00
Manuele Simi 1a2ca30248 Update dependencies.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@174561 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-12-05 01:50:18 +00:00
Manuele Simi 26dda75f89 Rename RMContext to RMContexts (as per REST conventions). Rename Path to Access in the IO lib.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@169756 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-07-12 02:49:23 +00:00
Manuele Simi 162881f1ff Start shaping ResourcesInContext collection. Rename few path params.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@169755 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-07-12 00:44:44 +00:00
Manuele Simi 18cba050f6 Advance dependency on client context lib to 2.0.0-SNAPSHOT.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@169265 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-06-16 03:47:58 +00:00
Manuele Simi 5d65139b16 Advance dependency on gxRest to 1.0.0-SNAPSHOT also in the service module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@169231 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-06-15 03:54:08 +00:00
Manuele Simi feac11ff99 Advance dependency on gxRest to 1.0.0-SNAPSHOT.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@169230 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-06-15 03:12:36 +00:00
Manuele Simi 91821885d0 Adapt outbound responses to the latest changes in gxRest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@165682 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-04-07 03:23:39 +00:00
Manuele Simi 7aee1a7989 Temporary add a dummy resource (RMTestForGXRest) for testing purposes.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@165612 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-04-05 03:47:04 +00:00
Manuele Simi d47c03c91c Make tests compliant with the latest changes in gxRest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@165611 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-04-05 03:45:36 +00:00
Manuele Simi 14b0fbef1e Warn some exception when querying the Resource Registry.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@165594 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-04-04 03:23:07 +00:00
Manuele Simi 17d9b96aa1 Force to use the resource registry client when a FORCE_RRURL parameter is specified in the request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@165589 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-04-02 03:49:57 +00:00
Manuele Simi fecaee352c Correct inverted check on empty contexts.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@164900 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-03-10 22:51:48 +00:00
Manuele Simi 0bdbd4d6f1 Check that the context has no resources before deleting it.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@164762 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-03-07 04:24:01 +00:00
Manuele Simi 5a6ae07d22 Overload the Queries constructor to create an instance with the given context client. Add check if an context is empty before deleting it (in progress).
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@164573 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-24 05:01:11 +00:00
Manuele Simi 89f4730523 Add missing return statement in the send method for the delete request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@164572 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-24 03:54:22 +00:00
Manuele Simi 67915767e1 Adapt test cases in the RM service to the latest changes in gxRest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@163351 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-17 04:30:45 +00:00
Manuele Simi 856b10efa6 Integrate GXInboundResponse.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@163246 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-14 05:08:43 +00:00
Manuele Simi db3d6a3cf7 Use GXInboundResponse to access to the response returned by the resource methods.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@163183 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-12 05:10:11 +00:00
Manuele Simi 58e3ef8a37 Comply with the new gxRest package organization.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@163181 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-12 05:00:49 +00:00
Manuele Simi 78919bce5a Use GXErrorOutboundResponse and GXOutboundSuccessResponse from gxRest to return a response in the create and delete methods.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@163003 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-07 04:48:30 +00:00
Manuele Simi 9654a44e67 Adapt response for the create method to gxRest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162900 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-04 20:33:59 +00:00
Manuele Simi 3650407264 Clean up code moved to gxRest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162886 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-04 04:38:16 +00:00
Manuele Simi de8582c9be Migrate resource manager components to gxRest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162885 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-04 04:36:56 +00:00
Manuele Simi 3f71638206 Make the deserializers final. Reduce their visibility at package level.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162830 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-01 03:42:42 +00:00
Manuele Simi 85bacd7afe Test the ErrorCode after with the new deserialization of the entity.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162829 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-02-01 03:32:56 +00:00
Manuele Simi 3adf77e8bd Add deserializers for ErrorCode and Exception. This makes the serializable entity a POJO.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162801 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-31 14:31:01 +00:00
Manuele Simi 2d80258f83 Keep the full qualified class name and message for the exception in the response. Rebuild the response at client side with reflection.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162764 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-31 05:35:13 +00:00
Manuele Simi f2fdc26d69 Fix create context with parent. Check if the context client is null before invoking the validation of the request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162504 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-24 04:48:18 +00:00
Manuele Simi de32c0135c Load the default token from a property file for Queries test. Skip the tests if the token is null.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162503 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-24 04:10:52 +00:00
Manuele Simi 8880bdddde Handle the case when the resource registry returns an exception when checking if the parent context exists.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162454 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-23 04:35:19 +00:00
Manuele Simi 731dc6bde7 Adjust check on returned status in the create test case.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162453 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-23 04:25:25 +00:00