Commit Graph

98 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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
Manuele Simi 5fe6234303 Add logger to RMContextTest.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162452 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-23 04:23:20 +00:00
Manuele Simi 34dcfec6e6 Load the default token from a property file. Skip the tests if the token is null.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162451 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-23 03:48:33 +00:00
Manuele Simi 4a7df8b36d Update tests for create context with or without parent. Still some pitfalls to address.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162408 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-22 04:31:01 +00:00
Manuele Simi eb900141e2 Validate the parent exists in the create operation, if specified in the input context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162406 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-21 20:38:19 +00:00
Manuele Simi 97e9f88f70 Use LocalCodeExceptions across delete and create contexts.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162405 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-21 20:34:21 +00:00
Manuele Simi 865c2255f7 Introduce error codes for the delete context method. Query the RR to validate the delete request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162342 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-19 05:05:49 +00:00
Manuele Simi f1e50d4d15 Add step2_Delete test case to delete a context. The sequential tests now are able to create and delete the test contexts.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162341 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-19 04:15:31 +00:00
Manuele Simi 9c3f356eb4 Change UUID param for context delete to be a @PathParam.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162340 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-19 04:13:45 +00:00
Manuele Simi 53f07d6d61 RMContextTest: extend step0 to check the validity of UUID and name.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162339 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-19 03:13:34 +00:00
Manuele Simi f08c550f1d Rename RMCode to RMCreateContextCode.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162299 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-18 05:05:35 +00:00
Manuele Simi 60a49651a5 More work on delete method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162207 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-16 03:57:22 +00:00
Manuele Simi b4faa918a5 Improve test cases for resource methods and queries.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162206 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-16 03:34:25 +00:00
Manuele Simi 54f89d7681 Migrate to use ResourceRegistryContextClient to query Contexts.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162169 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-15 12:14:41 +00:00
Manuele Simi 4336297bcd Starting to shape the DeleteRequest and delete resource method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162161 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-15 03:55:32 +00:00
Manuele Simi 4c161325cd Add test case to fetch the Context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162160 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-15 03:29:33 +00:00