Commit Graph

63 Commits

Author SHA1 Message Date
Manuele Simi 9e6e2299c8 Adjust the RM codes creation. Add test case.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161896 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-26 03:42:12 +00:00
Manuele Simi 9a9e0a0a06 Improve CodeExceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161895 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-23 04:26:08 +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 57d6749dea Instead of creating separate classes for each exception type, create just one. Use enums to indicate the exception’s type. This reduces the class count and remove the need to declare ad-hoc exceptions.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@161800 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-22 04:48:51 +00:00
Manuele Simi 4b98621cc8 Create a failure response when the new context already exists.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160691 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-20 04:12:05 +00:00
Manuele Simi eb160612be Gives a chance to each request to validate the response from the RR.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160673 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-19 04:02:42 +00:00
Manuele Simi 5ad360fbb2 Remove unused test.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160672 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-19 03:57:44 +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 f4e1170f78 Avoid exceptions with Optional objects with no value.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160621 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-18 03:46:32 +00:00
Manuele Simi 6db70871b8 Different instantiations for RRContextClient according to the forceURL parameter.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160619 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-17 03:42:14 +00:00
Manuele Simi d6bdcd615f Create and initialize the context client in the base request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160618 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-17 02:44:39 +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
Manuele Simi ac8d0cf465 Introduce the validation step for the request. Handle exceptions. More structure on the response.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160614 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-16 03:29:16 +00:00
Manuele Simi 7f5de4c5af Make sure the context holder is not null in the request.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160526 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-15 04:21:47 +00:00
Manuele Simi 265dca22df Handle null exceptions in the response with Optional.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160525 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-15 04:17:24 +00:00
Manuele Simi b6b7e25d32 Update test cases.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160524 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-15 04:11:36 +00:00
Manuele Simi ca5bc87382 Start to model the request/response interactions with the Resource Registry.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160523 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-15 04:04:27 +00:00
Manuele Simi 34bb1f57ff Fix the application path (was clashing with jersey) and move the declaration to the io module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160249 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-10 03:26:37 +00:00
Manuele Simi 83ad08446c Adjust poms, modules and paths.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160098 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-06 04:07:39 +00:00
Manuele Simi d2c5d692f6 Complete the renaming of context and resource paths.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@160035 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-05 04:27:51 +00:00
Manuele Simi da7841fd0f Rename Context to RMContext to avoid to fully qualify the Context in the model.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158933 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-30 04:10:26 +00:00
Manuele Simi f841ccffa6 Fix the test case with the invalid parent scope.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158932 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-30 04:07:05 +00:00
Manuele Simi 3683a3d602 Resolve the jersey dependencies through the jersey-bom.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158931 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-30 03:41:01 +00:00
Manuele Simi 70e6b303b8 Unmarshal the context in the create method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158883 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-29 04:41:59 +00:00
Manuele Simi a4e32dd47a Add test cases for parent context and marshaling/unmarshaling of a simple context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158882 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-29 04:41:27 +00:00
Manuele Simi 047ed63b59 Exploit the latest gcube-resources in the context tests.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158881 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-29 03:45:35 +00:00
Manuele Simi 38aaad7f83 Add dependency on the RR context-library.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158880 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-29 03:43:47 +00:00
Manuele Simi 77831c3367 Add tests based on the Jersey Test Framework for Context methods. Simple container seems a good compromise for testing the methods.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158849 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-28 04:06:10 +00:00
Manuele Simi 362743bed2 Remove path for the create method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158801 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-25 03:47:48 +00:00
Manuele Simi 87de702639 Stub implementation of the create method.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158800 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-25 03:45:53 +00:00
Manuele Simi b3c66a742f Add dependency on RR context client.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158799 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-25 03:28:52 +00:00
Manuele Simi 46e739e086 Rename Root path to Resource.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158769 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 02:55:25 +00:00
Manuele Simi 400cfe78ee Add stubs for Resource and ResourcePath.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158768 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 02:38:04 +00:00
Manuele Simi 01b55f0327 Rename voidMethod to create in Context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158758 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-22 21:11:54 +00:00
Manuele Simi 3d2aea155e Rename Access to Context.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158636 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-18 04:46:11 +00:00
Manuele Simi abbcc67660 Clean up Maven dependencies.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158607 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-17 14:34:27 +00:00
Manuele Simi b0828f88ff Remove full coordinates from sub-modules.They inherit the parent's version and groupId.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@158539 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-16 03:13:35 +00:00
Manuele Simi e48c8eeb8e Remove outdated rest package.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156280 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-15 11:51:04 +00:00
Manuele Simi 5e62131194 Rename rest packages to rs, as per convention from java.ws.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156279 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-15 11:46:25 +00:00
Manuele Simi 3d16c2ff4f Add dependency on manager I/O to the webapp module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156264 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-14 02:36:34 +00:00
Manuele Simi c7e06b968c Move AccessPath to manager I/O module.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156263 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-14 02:33:37 +00:00
Manuele Simi 6c6657d741 New Manager I/O module. This module will collect I/O definitions shared among the webapp and its libraries/other clients.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@156262 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-14 02:24:49 +00:00
Manuele Simi 6ce0b715e2 Remove the root src folder.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@155187 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-13 03:40:07 +00:00
Manuele Simi dcfede1e17 Refactor the project as a Maven multiple module project. This will separate the webapp (the only module now in the project) with common parts reusable by the clients.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@155186 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-13 03:33:30 +00:00
Manuele Simi 0b9b9dc976 Refactor the project as a Maven multiple module project. This will separate the webapp (the only module now in the project) with common parts reusable by the clients.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@155185 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-13 03:28:11 +00:00
Manuele Simi 9b6fa80091 Set svn:ignore on webapp/WEB-INF.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@155165 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-12 02:40:12 +00:00
Manuele Simi 37e0ceede2 Remove the content of webapp/WEB-INF from the repository.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@155164 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-10-12 02:15:41 +00:00