Commit Graph

367 Commits

Author SHA1 Message Date
Luca Frosini 4e43217b63 Improved code 2021-09-17 10:35:57 +02:00
Luca Frosini dd88daecab Fixed AddToContext 2021-09-16 17:23:13 +02:00
Luca Frosini f17106e42e Add to context add only the ERElement in the source context #12218 2021-09-16 15:23:04 +02:00
Luca Frosini 78d1f71aa6 Add To Context adds only the ERElement in the source context #12218 2021-09-15 16:22:48 +02:00
Luca Frosini a1fbd07378 Fixed test 2021-09-14 16:34:40 +02:00
Luca Frosini 391ecce152 Fixing tests 2021-08-04 17:31:25 +02:00
Luca Frosini f44b07f9b7 Commented tests checks which causes infinite recursion 2021-08-04 16:34:06 +02:00
Luca Frosini 17096d0b4c fixed test 2021-08-04 15:41:51 +02:00
Luca Frosini e3aa414108 Fxied tests according to the fixed gcube model 2021-08-04 15:10:09 +02:00
Luca Frosini 7bb49b1f4c added test 2021-08-04 14:12:24 +02:00
Luca Frosini 6770823e29 Removed OLD query parameter in prepared query API 2021-07-07 12:01:47 +02:00
Luca Frosini ce3d021845 Instances test clean the environment before and after each test 2021-03-09 12:58:46 +01:00
Luca Frosini 43fdf5e237 Adding tests and assertion 2021-03-09 09:51:32 +01:00
Luca Frosini aa093f8e73 Improving test 2021-03-08 21:23:51 +01:00
Luca Frosini 4047e587da Improving tests 2021-03-08 20:52:12 +01:00
Luca Frosini 945a58a3fc Fixing test 2021-03-08 17:10:39 +01:00
Luca Frosini 71ad45f72b Cleaning the env before launching the test 2021-03-08 17:08:39 +01:00
Luca Frosini f80eec0301 Fixing tests 2021-03-08 17:05:56 +01:00
Luca Frosini df3d81d2bd Fixing tests 2021-03-08 16:56:35 +01:00
Luca Frosini cdd6c121e1 Restored code to be used later on 2021-03-08 14:57:16 +01:00
Luca Frosini f29d362d75 Improving tests 2021-03-08 14:56:09 +01:00
Luca Frosini b37cbb0020 Improving tests 2021-03-08 13:09:18 +01:00
Luca Frosini 8cec58eae8 Improved Tests 2021-03-08 12:27:59 +01:00
Luca Frosini c1f0a03de4 improving tests 2021-03-08 11:20:18 +01:00
Luca Frosini b19539f9e5 Improving check in tests 2021-03-08 11:02:42 +01:00
Luca Frosini d0fe1fc2ec Reorganizing tests 2021-03-08 09:56:23 +01:00
Luca Frosini 5fc6288a65 Removed ununsed class 2021-03-08 09:39:25 +01:00
Luca Frosini 5801089325 Reorganizing tests 2021-03-08 09:38:37 +01:00
Luca Frosini 23d0486f64 Fixing tests 2021-03-08 09:35:58 +01:00
Luca Frosini 5db160a2dc IMproved affected instances management 2021-03-06 10:53:45 +01:00
Luca Frosini 56265d35bc Fixing tests 2021-03-05 18:21:25 +01:00
Luca Frosini d7ed728c81 Fixing corner case 2021-03-05 18:14:07 +01:00
Luca Frosini e148a0b253 Harmonizing APIs 2021-03-05 15:14:51 +01:00
Luca Frosini 05a8825635 Reorganizing code 2021-03-05 14:41:02 +01:00
Luca Frosini 93f5999553 Added affected instances variable to ElementManagement 2021-03-05 11:59:24 +01:00
Luca Frosini 5a94aadce5 Implemented strategy to properly check resource sanity in case a delete
has been requested for a ConsistsOf or a Facet.
2021-03-04 21:57:01 +01:00
Luca Frosini dc481fbba6 Reorganizing code 2021-03-04 11:45:27 +01:00
Luca Frosini 88baf3cb90 Fixing bug and added tests 2021-03-03 17:18:36 +01:00
Luca Frosini ec9b6665ca Improving tests 2021-03-02 16:55:42 +01:00
Luca Frosini a684479858 Fixing and improving tests 2021-03-02 16:39:21 +01:00
Luca Frosini 83ca22a15e Instances are now validate with the defined schema #18216 and #7355 2021-02-23 17:31:46 +01:00
Luca Frosini d58dcc20cf Fixed bug and tests 2021-02-23 12:27:42 +01:00
Luca Frosini 2485f43510 Fixing test 2021-02-23 11:51:37 +01:00
Luca Frosini 985d37a077 Fixing test 2021-02-23 11:44:09 +01:00
Luca Frosini c443ae8c4e Fixing test 2021-02-23 11:40:44 +01:00
Luca Frosini 132f9c51c6 fixing test 2021-02-23 11:38:35 +01:00
Luca Frosini 3756439c72 Fixed tests to comply with new validation made by the service 2021-02-23 11:33:57 +01:00
Luca Frosini 30be493f4a Refactorign code 2021-02-22 16:36:19 +01:00
Luca Frosini 8822d1a40b Moved a link a in tests placeholder strings from http to https #20783 2021-02-22 09:46:00 +01:00
Luca Frosini a0ffe74776 Fixing tests 2021-02-19 16:08:57 +01:00
Luca Frosini b7a2e6c6eb Fixed bugs 2021-02-19 15:31:26 +01:00
Luca Frosini 799aa5a770 Improving code 2021-02-19 14:34:48 +01:00
Luca Frosini a553b9cd8d Reorganizing tests 2021-02-17 15:51:25 +01:00
Luca Frosini a96cd187a2 Fixed bugs introduced with refactoring 2021-02-12 17:06:12 +01:00
Luca Frosini 319fa760e3 Fixing code due to refactoring 2021-02-12 12:09:33 +01:00
Luca Frosini a518f98235 Refactoring code to simplify type management and to have a better
support for types cache.
2021-02-11 14:35:54 +01:00
Luca Frosini c21fa2aa1a Refactoring code 2021-02-08 16:26:58 +01:00
Luca Frosini 3434f373f6 Refactoring service 2021-02-05 17:50:16 +01:00
Luca Frosini 6082e3a0d6 Fixed tests 2021-01-29 17:29:49 +01:00
Luca Frosini 55b79bc835 Superclasses are now filtered (i.e. internal types are not added to the
list)and ordered (first the immediate superclass and the last the basic
type e.g. Resource, Facet, IsRelatedTo, ConsistsOf) #20319
2021-01-29 16:13:33 +01:00
Luca Frosini 58d7aa93c3 Implemented #20555 #20530 2021-01-28 22:53:10 +01:00
Luca Frosini 27cec7ec31 Add to Context deny to add a resource without adding at least a facet.
Added a test to check the service behave properly
2021-01-27 21:57:06 +01:00
Luca Frosini 376fbd1df6 Improved tests and assertion 2021-01-26 17:35:08 +01:00
Luca Frosini ab1f81fce7 Revert "Revert "Added dryRun""
This reverts commit 3585ccc197.
2021-01-26 16:54:20 +01:00
Luca Frosini 3585ccc197 Revert "Added dryRun"
This reverts commit afbc42eb8b.
2021-01-26 16:53:26 +01:00
Luca Frosini afbc42eb8b Added dryRun 2021-01-26 16:52:02 +01:00
Luca Frosini a10323735d Implementing #20530 #20531 2021-01-25 17:38:19 +01:00
Luca Frosini ab8b77ba65 Added hidden test 2021-01-21 14:44:35 +01:00
Luca Frosini 342d89185c Added fixed authorship 2021-01-20 17:08:59 +01:00
Luca Frosini 0efb8f5e08 Added assertion in junit test to properly test type update 2021-01-15 16:09:07 +01:00
Luca Frosini c1f694a9e2 Fixed type update 2021-01-14 18:26:26 +01:00
Luca Frosini 0606d291a4 Implementing update. Removed uneeded interface 2021-01-13 21:52:09 +01:00
Luca Frosini e51c635dea Added Test 2021-01-10 23:42:11 +01:00
Luca Frosini e89481a5f1 Fixed tests due to changes in the model 2020-12-23 10:55:16 +01:00
Luca Frosini 18a552a3b7 Merge remote-tracking branch 'origin/feature/20367' into feature/20298 2020-12-22 11:38:31 +01:00
Luca Frosini 10e5538c6d Fixed tests to comply with fixed model 2020-12-21 23:09:57 +01:00
Luca Frosini 7327f61370 Added test for prepared query 2020-12-10 18:16:28 +01:00
Luca Frosini daa7959a7e Fixing prepared query 2020-12-10 11:13:14 +01:00
Luca Frosini 18cd7e167e Including contexts in the instances header when requested #20012 2020-11-09 15:45:07 +01:00
Luca Frosini 1646cbe8de Fixed test 2020-11-05 17:03:05 +01:00
Luca Frosini a92f5c532c Improved test 2020-11-05 15:58:30 +01:00
Luca Frosini fd32391267 Added Context Cache 2020-11-05 12:12:19 +01:00
Luca Frosini f4fb2102d7 Added API to get the list of contexts for an instance 2020-11-03 16:30:24 +01:00
Luca Frosini a7c89cded0 Fixed name 2020-10-27 15:12:11 +01:00
Luca Frosini cb84f7aa29 Fixed test 2020-10-14 14:54:01 +02:00
lucafrosini b18ea8efdb Removed unused import 2020-10-07 16:25:19 +02:00
Luca Frosini ec73e33c5a Added suppress warning annotation 2020-07-07 17:16:30 +02:00
Luca Frosini 1e47580d39 Switching to gcube-jackson 2020-07-07 17:15:22 +02:00
Luca Frosini e5520c06c3 Improved ignore file 2020-05-14 18:25:44 +02:00
Luca Frosini 5d17c53dae Fixed commented test 2020-05-14 18:25:13 +02:00
Luca Frosini bee0017d58 Commented test 2020-05-14 18:24:14 +02:00
Luca Frosini c93cd35172 Fixed code to generate DB Key 2020-05-08 12:41:58 +02:00
Luca Frosini 64177d1c85 Changed the way to account requests.
The accounted called Methods are summarized in file ISMethods.txt in
src/test/resources
2020-03-16 14:51:13 +01:00
Luca Frosini 8413b94a86 Changed DataTime Pattern import due to changes in IS Model 2020-02-04 09:44:38 +01:00
Luca Frosini aa72d03b4f TypeBinder has been renamed to TypeMapper 2020-02-04 09:30:50 +01:00
Luca Frosini ede8f1be76 Fixed imports and class name due to IS Model refactoring 2020-02-03 10:52:09 +01:00
Luca Frosini 241b6269bc Reorganized model as following
Element
 - EntityElement
   - Entity
     - Resource
     - Facet
   - Context
   - EntityType
     - ResourceType (3 lists of PropertyDefinition, LinkedFacet,
LinkedResource)
     - FacetType (1 list of PropertyDefinition)
 - RelationElement
   - Relation
     - IsRelatedTo
     - ConsistsOf
   - IsParentOf
   - RelationType
     - IsRelatedTo (1 list of PropertyDefinition)
     - ConsistsOf (1 list of PropertyDefinition)
 - PropertyElement
   - Property
     - Header
     - PropagationConstraint
     - Encrypted
   - PropertyType (1 list of PropertyDefinition)
     - PropertyDefinition
     - LinkedEntity
       - LinkedFacet
       - LinkedResource
2020-01-30 11:04:16 +01:00
Luca Frosini 58488f743e fixed test compiling 2020-01-29 16:33:18 +01:00
Luca Frosini 1e02edd42c Used switch case in place of if else if 2020-01-28 10:09:58 +01:00
Luca Frosini d780357089 Fixed bug which does not allow to create PropertyTypeDefiniton of
Property during DB initialization
2020-01-27 17:57:24 +01:00
Luca Frosini d5c2ecd896 Reorganizing packages 2020-01-27 17:07:37 +01:00
Luca Frosini eb99996c62 Reorganized Packages 2020-01-27 17:04:45 +01:00
Luca Frosini 96439e829e Splitted test 2020-01-24 16:54:44 +01:00
Luca Frosini 5d9da98508 Fixed Schema management and test 2020-01-24 11:25:13 +01:00
Luca Frosini ecc047889e Fixed types creations 2020-01-23 17:15:02 +01:00
Luca Frosini a825fe51af Fixed types creation to support resource schema definition. 2020-01-20 10:29:56 +01:00
Luca Frosini 72f2ee3e15 Removed restriction annotation which is not needed with open JDK 2019-12-13 10:19:52 +01:00
Luca Frosini 9b3b2e2a95 Commmented test 2019-12-05 17:01:35 +01:00
Luca Frosini a830b8de37 Fixed imports and code to comply with IsIdentifiedBy relation which has
been moved from IS Model to gCube Model
2019-12-05 12:09:23 +01:00
Luca Frosini 7e602b72bd Fixed type schema serialization 2019-11-11 16:09:47 +01:00
Luca Frosini 6354f99103 Fixing Type definition 2019-11-08 18:14:45 +01:00
Luca Frosini f8427ea85b Fixing database initializations 2019-11-08 12:29:32 +01:00
Luca Frosini c6ddf6da91 Fixed package name 2019-11-06 12:14:27 +01:00
Luca Frosini e59af36a4f Changed orientdb deprecated api for query 2019-11-06 12:13:19 +01:00
Luca Frosini f683681a8a Switched from OrientGraph to oDatabaseDocument to have one interface for
managing vertexes, edges and properties.
Moreover, switched from Element to OElement, Vertex to OVertex, Edge to
OEdge to have the same APIs to manage instances, and to be able to
directly use oDatabaseDocument instead of frequent casts to
OrientElement to perform operations not supported by thinkerpop standard
interface.
2019-11-05 18:36:44 +01:00
Luca Frosini 383887e7d2 Refactoring service to be aligned with IS model refactorign 2019-11-04 18:01:20 +01:00
Luca Frosini 914f267c29 All tests are back to normal 2019-10-30 12:43:30 +01:00
Luca Frosini 495cba3145 Fixing resource-registry due to model redesign 2019-10-30 09:57:36 +01:00
Luca Frosini 10e5feb9d9 Changed the way to set context for tests 2019-10-28 15:06:31 +01:00
Luca Frosini b599c27351 Fixing imports and code to be aligned with model reorganization 2019-10-25 17:45:59 +02:00
Luca Frosini 74581f132e Added test 2019-10-03 14:54:37 +02:00
Luca Frosini 3e91d58900 Remvoed worng test 2019-07-30 16:48:18 +02:00
Luca Frosini d75b7810d5 Fixed test 2019-07-30 16:47:15 +02:00
Luca Frosini 53cb5e45a8 Removed unneded annotation from tests 2019-07-19 12:22:03 +02:00
Luca Frosini 04b50ebc89 Ignored tests resources and generated files 2019-07-18 16:58:34 +02:00
Luca Frosini 6a16d77b70 Changed strategy to set the DateTimeFormat and added test for that
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@177238 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-22 13:35:56 +00:00
Luca Frosini e7e7cc588e Fixes #13180: Migrate OrientDB from version 2.2.X to 3.0.X
Task-Url: https://support.d4science.org/issues/13180

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@177123 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-13 15:53:17 +00:00
Luca Frosini 1e14003aa8 Merged from private branch used to refactor and add features
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@177107 82a268e6-3cf1-43bd-a215-b396298e98cf
2019-02-13 11:33:29 +00:00
Luca Frosini 0195a58bd6 Merged changes made in branch caused by is-model and gcube-model repackaging
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@171802 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-10-02 07:17:58 +00:00
Luca Frosini f8480f0c43 Fixed test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@168994 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-06-08 16:28:08 +00:00
Luca Frosini cba560a6e8 Refs #11288: Made resource-registry more RESTful
Task-Url: https://support.d4science.org/issues/11288

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@168993 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-06-08 16:18:48 +00:00
Luca Frosini 047f1a678d Refs #11288: Made resource-registry more RESTful
Task-Url: https://support.d4science.org/issues/11288

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@168989 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-06-08 13:47:05 +00:00
Luca Frosini 4cd64f8094 Refs #11288: Made resource-registry more RESTful
Task-Url: https://support.d4science.org/issues/11288

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@168986 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-06-08 13:05:47 +00:00
Luca Frosini 5590c79548 Refs #11288: Made resource-registry more RESTful
Task-Url: https://support.d4science.org/issues/11288

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@167900 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-06-06 17:26:19 +00:00
Luca Frosini a82ec92870 Removed old test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@166937 82a268e6-3cf1-43bd-a215-b396298e98cf
2018-04-12 12:46:43 +00:00
Luca Frosini eabfa329d2 Fixed test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@160157 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-07 12:51:57 +00:00
Luca Frosini 263bcf07c9 Fixes #10435: Add support for hierarchical roles to support child context overview
Task-Url: https://support.d4science.org/issues/10435

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@160040 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-12-05 09:10:34 +00:00
Luca Frosini 1fcdccd7af Refs #10435: Add support for hierarchical roles to support child context overview
Task-Url: https://support.d4science.org/issues/10435

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158968 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-30 17:06:08 +00:00
Luca Frosini d1fe6daa64 Fixed test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158885 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-29 08:25:17 +00:00
Luca Frosini f754bf7dda Refs #10435: Add support for hierarchical roles to support child context overview
Task-Url: https://support.d4science.org/issues/10435

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158879 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-28 16:34:43 +00:00
Luca Frosini bbef5ed1d3 Refs #10238: Refactor Context Port Type
Task-Url: https://support.d4science.org/issues/10238

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158790 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 16:09:19 +00:00
Luca Frosini d9fe526386 Refs #10238: Refactor Context Port Type
Task-Url: https://support.d4science.org/issues/10238

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158787 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 15:25:16 +00:00
Luca Frosini bdf17da9aa Refs #10247: Create Resource Registry Context Client
Task-Url: https://support.d4science.org/issues/10247


git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158786 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 14:10:08 +00:00
Luca Frosini 96b98199e8 Refs #10238: Refactor Context Port Type
Task-Url: https://support.d4science.org/issues/10238

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158776 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 09:17:38 +00:00
Luca Frosini c4116ed127 Refs #10238: Refactor Context Port Type
Task-Url: https://support.d4science.org/issues/10238

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158775 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 09:14:28 +00:00
Luca Frosini 33f4264348 Refs #10238: Refactor Context Port Type
Task-Url: https://support.d4science.org/issues/10238

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158773 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-23 08:39:21 +00:00
Luca Frosini c4a2a28b68 Refs #10238: Refactor Context Port Type
Task-Url: https://support.d4science.org/issues/10238

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158741 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-21 17:35:12 +00:00
Luca Frosini 92075c38b3 Refs #10390: The serialized resource is the old verson in some cases after update
Task-Url: https://support.d4science.org/issues/10390

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158739 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-21 17:18:11 +00:00
Luca Frosini 93187f062d Refs #10238: Refactor Context Port Type
Task-Url: https://support.d4science.org/issues/10238

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158635 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-17 17:42:30 +00:00
Luca Frosini 008f621677 Commented Test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158628 82a268e6-3cf1-43bd-a215-b396298e98cf
2017-11-17 16:10:54 +00:00