Commit Graph

40 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 4e6d0a1192 Rename package exceptions to codeexceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162028 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-10 04:12:00 +00:00
Manuele Simi 3b4e4b17a8 Improve javadoc. Rename one of the values for RMCode.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161971 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-04 20:09:37 +00:00
Manuele Simi 5c9549160c Move RMCode to rs package. This keeps the exceptions package as more generic as possible.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161929 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-01-01 20:37:28 +00:00
Manuele Simi f94fd01063 Fix javadoc.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161928 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-29 19:21:11 +00:00
Manuele Simi c1c79bf30d Add CodeFinder helper class to find codes and convert them into their equivalent enum value.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161927 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-29 17:46:27 +00:00
Manuele Simi 0dbd823c26 Convert back the SerializableErrorCode to the correspondent RMCode.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161926 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-29 04:28:16 +00:00
Manuele Simi 33c6212530 Rewrite CodeException as a specialized WebApplicationException. Integrate CodeException in the create context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161922 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-28 05:06:00 +00:00
Manuele Simi 36dd483b04 Integrate CodeExceptions in the webapp.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161909 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 12:23:48 +00:00
Manuele Simi 7b31392c6f Improve formatting.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161894 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-22 20:30:28 +00:00
Manuele Simi 4dccab1032 Skip tests that require a connection to Resource Registry when the token is not set.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161893 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-22 20:27:25 +00:00
Manuele Simi 76183b49f2 Configure the jersey tests for RMContext resource with authorization permission.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160671 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-19 03:52:21 +00:00
Manuele Simi b95522d5ac Add a query parameter to context creation to force use a given RR instance. Mainly for testing purposes. Adjust the test accordingly.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160622 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-18 05:01:43 +00:00
Manuele Simi 6f73b07dcb Manage more response cases. Adjust tests accordingly.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160616 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-16 04:02:32 +00:00
Manuele Simi 4b9abb09f0 Move the RMContextTest to the same package of the webapp. This way tests can access protected functionalities.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160615 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-16 03:37:45 +00:00