summaryrefslogtreecommitdiffstats
path: root/cps-ri
AgeCommit message (Collapse)AuthorFilesLines
2022-05-12Add graceful shutdown for Session Manageremaclee6-42/+181
Introduce singleton session manager Add unit test for session manager Issue-Id: CPS-898 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Iaf91f1aa6c1ebfe0ab907e7f7d80a01e940a0fdd
2022-05-11Update DMI Registry yang to support DataStoreSyncStateLathish3-0/+238
- Added dmi-registry@2022-05-10 yang to support DataStoreSyncState - Added changelog 14 to add the dmi-registry Issue-ID: CPS-1014 Change-Id: I910d2496a359fdf2441e172ca270036272d31dc6 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-04-27Add methods to Lock Anchor entityemaclee6-35/+272
Added separate integration and mock-based unit tests Issue-ID: CPS-898 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I14d1d1c41759ce028e2417fdd2df001280e19ab2
2022-04-25Fix Absolute Path to list with Integer/String keyLathish6-95/+117
- Introduced normalizedXpath to normalize the xpath and cpspath - Introduced normalizedAncestorpath to normalize the ancestor path in xpath and cpspath - Added new condition in the ANTLR Grammar to capture the invalid path in the xpath - Introduced PathParsingException to replace the IllegalStateException Issue-ID: CPS-961 Change-Id: Ie10f5c6cfc466387e79eec184b933297d1d79587 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-04-08Fix Sonar Qube Violations - Recurring taskDylanB95EST1-2/+2
Fix sonar issues in CPS. - Remove Unnecessary cast to List - Immediately return expession Issue-ID: CPS-475 Change-Id: Ic3fa2f3f92784682045a780d87c6737d04f37659 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-04-08Refactoring/ Adding Tests for ValidationDylanB95EST1-3/+3
Refactored classes affected by validation Have added tests for anywhere where validation is used Have refactored the parse and sync modules validation to be validated at the public api method Issue-ID: CPS-322 Change-Id: I4989cfd03300fbdca41571d0aa2d0b96978858ba Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-04-06Query based on Public CM PropertiesJosephKeenan6-8/+123
-Updated OpenAPI for new Endpoint -Will replace SQL with CPSPathQuery once investigation is complete -Functionality in place to determine if public properties match - -Added Unit and CSIT tests - small modifications may need to be made -CSIT tests enhanced to add additional nodes and tests Issue-ID: CPS-731 Change-Id: I403e603ce79c4a4a6994d51b459b5703510d5a83 Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-03-25Add Start and Stop sessions on JAVA APIemaclee6-44/+247
Issue-ID: CPS-899 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Idbeb922790824b1ca601d6d4798df45efa57d685
2022-03-21Update versions for next releaseToineSiebelink1-1/+1
Update Minor version number (on master) for next release as part of creating Jakarta release branch Issue-ID: CPS-952 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ie96ae7ce8997774d3ea27275c73e7d0703257e5e
2022-03-16Upgrade to next snapshot versionBruno Sakoto1-1/+1
Issue-ID: CPS-933 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I5ba87c850aa932737cc62e312a825c69a3db5a02
2022-03-10Replacing ModelMapper with MapStructlukegleeson1-5/+1
- Removed Model Mapper from pom files - Replaced ModelMapper with MapStruct - Added Tests for MapStruct - Changed mapstruct annotations for individual variables to be null safe rather than all variables - Excluded generated code from code coverage - Set ModuleReferences input to required for SchemaSet so that ModuleReferences list set to empty list rather than null Issue-ID: CPS-127 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I43f874aea79f58dda5526c6fdead27d8474d90af
2022-03-10Removed ExtendedModuleReference Objectsourabh_sourabh2-12/+1
-Introduced ModuleReference with 2 prop name and revision -Removed default constructor of ModuleReference Issue-ID: CPS-592 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I27a8a521f133c0773ef0aa0b9700ac42f6bc613b
2022-03-04Updating sequences in db migration scriptDylanB95EST2-1/+26
Added a dynamic set value changeset for sequence id to both changelog 05 and 10. Issue-ID: CPS-900 Change-Id: Ia3ec0b66a89b151435acfa4ebaed3886307b75ea Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-03-03Merge "Update dmi-registry yang to support cmHandle State"Bruno Sakoto6-11/+348
2022-03-03Merge "Bug fix for delete data node not working for root node"Renu Kumari1-2/+2
2022-03-03Bug fix for delete data node not working for root nodeputhuparambil.aditya1-2/+2
Fixing event for deletion of container node Fixing event for deletion of root node when '' is passed as xpath Issue-ID: CPS-895 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I0676aec29e7b7e12bef2300219207ddc22414daa
2022-03-03Update dmi-registry yang to support cmHandle Statelukegleeson6-11/+348
- Added dmi-registry@2022-02-10 which contains the new dmi-registry yang model to support the cmHandle State. - Added changelog 12 which removes previous dmi-registries from the db - Added changelog 13 which adds new dmi-registry - Edited yangResourceCsvGenerator.py so that it generates for each argument given and does not generate the module_name and revision for dmi-registry@2021-12-13. - Updated rollback for changeset 11.1 Issue-ID: CPS-874 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I4ab949f0bc00a52376b42a5ac8a33d397eefcedf
2022-03-02Merge "CPS-475 - Fix SQ codesmells introduced as aprt of CPS-887"Toine Siebelink1-2/+2
2022-03-02CPS-475 - Fix SQ codesmells introduced as aprt of CPS-887JosephKeenan1-2/+2
Issue-ID: CPS-475 Change-Id: If277242bd84e6c53d1ce288ac2a3803f99740ab2 Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-03-02Addressed refactoring comments related to method namempriyank3-13/+17
- YangRepository method names streamlined as per JPA Issue-ID: CPS-647 Change-Id: Ifd514947944131894d849bdbf1b7ec52959b0164 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-03-01Merge "Adding missing rollback for Liquibase change logs"Toine Siebelink2-1/+27
2022-03-01Adding missing rollback for Liquibase change logslukegleeson2-1/+27
Issue-ID: CPS-874 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I13a48b306761cbbe104ed5597b43de9fd3507a8f
2022-02-28Merge "Bug fix for delete data node not working for root node"Bruno Sakoto3-17/+44
2022-02-28CPS-887 Decreasing performance of cmHandle registrationJosephKeenan7-37/+231
- Creating temporary table module references from the node - Query returning new moduleReferences for node to be added to CPS - Modified registration for node to use new implementation (incl. tests) - Refactored some interface to use collection instead of list - Modified SQL statements to use String.format() - Fixed tests Issue-ID: CPS-887 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: I58b17d29e8b9d6f7a644d33bf6cf8bf46f892580
2022-02-28Bug fix for delete data node not working for root nodeputhuparambil.aditya3-17/+44
Issue-ID: CPS-895 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ia82b0df8e2cfdb9b396315a9d0e6c8f2b4deadcf
2022-02-28Updated openapi.yaml to match to changes in get data node APIputhuparambil.aditya1-1/+1
1. updated the pom version to 3.0.0-SNAPSHOT 2. modified the examples for get data node api to match the post api. Issue-ID: CPS-865 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Icf03522e9ba7fb9c245fd9f09b3eb8bb6f3ee60d
2022-02-15Fragment handling decreasing performance for large number of cmHandlesDylanB95EST3-45/+34
- allow fragmentEntity to set parent id (needed for optimization) - updated addListAlement and addChildDataNode to use new common optimized metghod to add to exsiting children - ensure methods are transactional - Refactored test around adding list elements to clearly define test checking the presence of grandchild element Issue-ID: CPS-886 Change-Id: Ic4381f0f7170ebd666d5bc8aa6ef2c4548d81766 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-02-09Merge "Fix for retry mechanism on concurrent CmHandle registration"Bruno Sakoto3-3/+133
2022-02-09Fix for retry mechanism on concurrent CmHandle registrationputhuparambil.aditya3-3/+133
Issue-ID: CPS-856 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ie7c0033f2987166315611f8a286ae3978466c75f
2022-02-07Merge "Refactor Delete Anchor functionality"Renu Kumari5-26/+37
2022-02-03Merge "Test Scenario for replaceListContent"aditya puthuparambil3-139/+160
2022-02-02Refactor Delete Anchor functionalityRenu Kumari5-26/+37
- Added a delete DataNode functionality in the CpsDataService - CpsAdminService uses CpsDataService to delete DataNodes Issue-ID: CPS-791 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I090500dbc4a2ccf061dc105f979472137d43b06d
2022-02-02Test Scenario for replaceListContentToineSiebelink3-139/+160
-Improved a test scenarios for replaceListContent in CpsDataPersistenceServiceSpec -Removed redundant SQL Data -Used groovy shortcuts where posisble (no need for get...() methods when using Groovy :-) Issue-ID: CPS-868 Change-Id: I3d29bbb0c5d035c6f266cf31bf2886f1bcf5d48a Signed-off-by: mpriyank <priyank.maheshwari@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2022-01-28Refactored Delete SchemaSet functionalityRenu Kumari5-62/+80
- Added get anchors by schemaset in cpsAdminService - Changed DeleteSchemaSet functionality - Use CPSAdminService to getAnchors associated with schemaset - Use CPSAdminService to delete Anchors - Moved Cascade allowed validation into Service from Persistence Issue-ID: CPS-791 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Ife7644551183cb8c3eb686a654b0a43a427ac1e5
2022-01-28Support 'public' Cm Handle PropertiesDylanB95EST5-1/+176
Add support for new Public Additional Properties list to Register CM Handles API Issue-ID: CPS-677 Change-Id: I6efc88734da2416f72f71a403622e519398b502d Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-01-25Replace gson mapper with jackson mappersourabh_sourabh5-55/+42
We introduced JsonObjectMapper (wapper) as Spring component. Issue-ID: CPS-751 Change-Id: I536b0771a3a263325e6907717baf6941d70c0d6c Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2021-11-26Merge "Allow separate registration of DMIDataPlugin and DmiModelPugin"Niamh Core3-1/+105
2021-11-25Allow separate registration of DMIDataPlugin and DmiModelPuginJosephKeenan3-1/+105
Moved relevant code from NetworkCmProxyDataServiceImp to DmiOperations Split DmiOperations into DMiData... and DMIModelOperations Merged update-operation changes Added tests for error message validation in NetworkCmProxyDataServiceImplSpec Removede @Service from DMIOperations and added @component to DmiDataOperations & DmiModelOperations Verify sync robot test is now hardened Added exitonfailure so robot tests stop after first encountered failed test Issue-ID: CPS-736 Change-Id: I0b40931cc8cd4fc0452328a0a7e0f60e6fc38d0a Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-11-23CPS-314: Delete Dataspaceniamhcore5-8/+53
Issue-ID: CPS-314 Change-Id: I778e2b784c7b1ff3fecc1036425708dc4ec73227 Signed-off-by: niamhcore <niamh.core@est.tech>
2021-11-09Merge "Fix for get anchor identifiers by module names"Toine Siebelink4-38/+38
2021-11-09Fix for get anchor identifiers by module namesniamhcore4-38/+38
Issue-ID: CPS-762 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Idf93f89f8427c5906c9f6b018633c8852b111821
2021-11-08CPS-475: Fix Sonar Qube Violationsemaclee2-4/+5
Issue-ID: CPS-475 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I85ff6dc91c63bd7869712509a7a6f284a0631603
2021-11-02Add get cm handles by modules names - service layerniamhcore2-6/+6
Issue-ID: CPS-644 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ic2a57df02d533a0066382c12c35be8d524b6cdad
2021-11-02Merge "Clean Up Code around List Nodes"Toine Siebelink3-165/+221
2021-11-02Clean Up Code around List NodesDylanB95EST3-165/+221
Make sure code refers clearly to List (whole) nodes or List elements incl. method names, parameter names, test descriptions etc. Issue-ID: CPS-756 Change-Id: Ic9dae6565c0e84c1ba4c2d6e891d3ea307f589da Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-10-29Merge "Remove org.jetbrains.annotations dependency"Niamh Core2-9/+0
2021-10-29Merge "Add get cm handles by modules names - persistence layer"Toine Siebelink5-9/+153
2021-10-29Add get cm handles by modules names - persistence layerniamhcore5-9/+153
- Add sql query to anchor repository - Add sql query to yang resource repository Issue-ID: CPS-644 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I85ab1fcb343e6be77628695153d8d9f303dc3112
2021-10-28Remove org.jetbrains.annotations dependencyBruno Sakoto2-9/+0
It is not part of spring boot 2.5.5 anymore and using it to enforce code invariant is not consistent in the overall code base. Issue-ID: CPS-582 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I6b2c1b8340cda376b70daa2ac092b3d02daa8960
2021-10-21Upgrade maven dependenciesBruno Sakoto1-0/+4
* Spring boot dependencies is upgraded to 2.5.5 * Springdoc openapi ui is upgraded to 1.5.11 * Jetbrains annotations dependency is added as it is not coming anymore with spring boot dependencies Issue-ID: CPS-582 Change-Id: I1c4fd54a11216eb2a14b73a1e0461ef7f4252e69 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>