summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-02-08Fix: Documentation for Delta FeatureArpit Singh1-0/+6
Issue-ID: CPS-2074 Signed-off-by: Arpit Singh <as00745003@techmahindra.com> Change-Id: Ib32b4c75f7eb5402367f69a077c447a3eb062b0b (cherry picked from commit 4d42d689af7cd96770143bddf1e79ae638ac1989)
2024-02-08Documentation update for Delta FeatureArpit Singh4-0/+118
- Documantation about Delta Feature - Documantation on API 1: Delta between 2 anchors Issue-ID: CPS-2056 Signed-off-by: Arpit Singh <as00745003@techmahindra.com> Change-Id: I9841ea166f7c57ab6218fefa5b577b4053e39490
2024-02-08CPS 1824: Delta Between 2 Anchors release notesArpit Singh2-18/+17
Updated release notes for Delta Feature Issue-ID: CPS-1824 Signed-off-by: Arpit Singh <as00745003@techmahindra.com> Change-Id: I1c2403391e85aec6a9e34f0ff616c17b100bf6a9
2024-02-08CPS Delta API: Update action for delta serviceArpit Singh6-71/+261
- Added code for Update action in Delta service - added method to get updated Leaf data: getUpdatedLeavesBetweenSourceAndTargetDataNode - added method to compare Leaf data common in source and target data node - added method to process leaves unique to target data node - added method to compare leaves: compareLeaves - added method to store updated data to a DeltaReport: addUpdatedLeavesToDeltaReport - Added corresponding testware Issue-ID: CPS-1824 Signed-off-by: Arpit Singh <as00745003@techmahindra.com> Change-Id: I3de07ea3227988784a0892f6a92c238ecf00a7fa
2024-02-08CPS Delta API 1: Delta between 2 anchorsArpit Singh19-5/+878
- CPS Delta Feature Part 1: To find delta between two anchors - created new endpoint deltaByDataspaceAndAnchors - endpoint to take dataspaceName, source anchor, target anchor, xpath, descendants as input - added new service CpsDeltaService - added method to find delta between DataNodes: getDeltaReport - added method to find removed data nodes: getRemovedDeltaReports - added method to get Added DataNodes: getAddedDeltaReports - added method to get Map of xpath to DataNode: convertToXPathToDataNodesMap - added a POJO for delta report - Added new JSON data for delta feature testing - Added groovy test files CpsDeltaServiceImplSpec and DeltaReportBuilderSpec - code related to update operation, will be added in separate commit Issue-ID: CPS-1824 Signed-off-by: Arpit Singh <as00745003@techmahindra.com> Change-Id: I313f0f71d04b03878be7643f709d8af1aa6df6ba
2024-02-08Update Architecture rule to add cache packagedanielhanrahan2-2/+5
- Modify test to allow org.onap.cps.cache package to access CPS classes - Update archunit to avoid exceptions during build related to Java 17 Issue-ID: CPS-1958 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: If74dd897b8e41b83e41ea2a35e087ee56beb3088 (cherry picked from commit ed9d179947325bbb9b81378b469341d023b46cd8)
2024-02-08Cps Data csit enhancedmpriyank1-1/+6
- instead of relying on the sequence of elements , using the contains operation to assert the result Issue-ID: CPS-2075 Change-Id: Ifbd3c601cc48148d0c4d7ce47301dbfb5184e1de Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-07Fixes for montreal releasempriyank5-5/+6
- updating the DOCKER REPO port to pull images from the read only repo - update the csit dmi plugin image to 1.4.0 - add six as dependency for csit - added legacy-ouput flag to the csit run-csit file - commented cps-subscription csit test Issue-ID: CPS-2075 Change-Id: I00dffdf305f634841208dade210cac499c61615d Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-29Bump CPS to 3.3.12 for montrealmpriyank25-25/+52
- bumped the cps version to 3.3.12-SNAPSHOT for further changes. - Also updated the documentations for the next release Issue-ID: CPS-1981 Change-Id: I8e463c7873ae28e57fe8fb7f24c6e15b579f9503 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-29Add maven container yaml for montrealmpriyank1-0/+8
- adding container yaml for montreal to release 3.3.11 Issue-ID: CPS-1981 Change-Id: If1d76bb8f894cc1b00f5d7e4ba357264eb756689 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-29Maven stage yaml for montrealmpriyank1-0/+4
- maven stage file for montreal to release 3.3.11 Issue-ID: CPS-1981 Change-Id: I057bc0167100a992aa8854c88089763ea4de7943 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-29Bumping CPS version to 3.3.11-SNAPSHOTmpriyank25-28/+28
- 3.3.10 version became unusable because of a bad commit so skipping that. Issue-ID: CPS-1981 Change-Id: I740e432608356d1b542a759dd11560d89d884001 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-29Release notes updated for 3.3.10mpriyank1-0/+1
Issue-ID: CPS-1981 Change-Id: Ic79ba6127c6b343efe69625b50c12464b138ea73 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-28Return permit-uri from root to securtyegernug2-2/+3
In Springboot 3.0 an error was observed with security.permit-uri throwing a PatternParseException. This appears to be fixed in 3.1.2 Issue-ID: CPS-1875 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I8dd4f66868a5cc4db636d77f123ad5dbbd61f4b4 (cherry picked from commit ff598422ebf5bb21bb66eddc68042ebc0512b77d)
2023-11-09Remove CPS-Temporal from RTDToineSiebelink10-41/+6
- Remove CPS-Temporal references - Removed never implemented interface such as AA&I - Updated diagrams accordingly - moved all images to _static folder - restored -W flag for tox and link-check section so errors will lead to build failures! Issue-ID:CPS-1927 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ib291b0904472dd32b5458dec3c78391cd1c018d9 (cherry picked from commit d0e4a9c41e3beac0636df7c04b1ba9d619866afc)
2023-11-08Update gitreview for CPS in montrealmpriyank1-2/+1
- gitreview file to point to montreal branch now instead of master Issue-ID: CPS-1936 Change-Id: I58380086f2669c94386173e51a66102da8dc73e8 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-06Bump cps to 3.3.10-SNAPSHOTmpriyank25-25/+52
- bump cps to 3.3.10-SNAPSHOT and update the docs Issue-ID: CPS-1954 Change-Id: Id62f59d4b3c42ea6f791fad85f0700089e3125b9 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-06Add container yaml for cpsmpriyank1-0/+8
- container yaml for cps 3.3.9 Issue-ID: CPS-1952 Change-Id: I68f85c6881d9c1f9c91e6b54db6d80c1d030a8d4 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-06Adding maven stage yaml for releasempriyank1-0/+4
- Adding maven stage yaml file for releasing 3.3.9 version of CPS Issue-ID: CPS-1952 Change-Id: If106d29aa730f222f8d4ce288a2f31032be5bd27 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-06Step 1 and 2 of release processmpriyank3-2/+14
- Sync the openapi docs and the release notes - Also commenting a test scenario coz of unrelated failure. will be fixed later Issue-ID: CPS-1949 Change-Id: I27c955e569acdfe1f699f345fa583f7bce95e76a Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-06[BUG] CPS NCMP management endpoints updatempriyank9-23/+17
- CPS and NCMP management endpoint updated from /manage to /actuator now - The management port is same as application port now - CSIT test cases update - Update in Security params to allow the changed URL. - Admin guid update - Release notes updated - Local docker-compose and prometheus updated Issue-ID: CPS-1923 Change-Id: I013d35fd96d393dec8cf067bbeae0f92b6b8d8db Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-11-03[BUG] Set Hazelcast class loaderdanielhanrahan1-0/+1
ClassNotFoundException is being thrown during CM-handle registration when running the cps-application JAR. This fixes the issue by using the class loader for the CPS classes. Issue-ID: CPS-1933 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I02e2d19d9f668f0c4af36e9061e68f9b9ddb9434
2023-11-03Merge "Handling Yang module upgrade error scenarios"Priyank Maheshwari7-51/+108
2023-11-02Merge "Add trust level notification schema"Toine Siebelink1-0/+56
2023-11-02Handling Yang module upgrade error scenariossourabh_sourabh7-51/+108
- cm handle not ready, not found , invalid id Issue-ID: CPS-1802 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I2039faa44abbda17237e7c2dc085b4ac775c2039 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2023-11-02Add trust level notification schemaJvD_Ericsson1-0/+56
Issue-ID: CPS-1910 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: If7265e0020b2ba247aaf64c9c0820e3cfdb23583
2023-11-02Initial Registration with trustLevel on NCMPseanbeirne6-24/+57
- Updated NcmpServiceCmHandle class to include registration trustLevel Issue-ID: CPS-1902 Signed-off-by: seanbeirne <sean.beirne@est.tech> Change-Id: I7c97928f5cdd82f3036a57ea5f0c149e2872f4f1
2023-10-27Merge "[BUG] CPS NCMP Change extension in health check URL"Sourabh Sourabh1-2/+3
2023-10-26Merge "Update return body of RestOutputCMHandle"Toine Siebelink3-95/+120
2023-10-26[BUG] CPS NCMP Change extension in health check URLhalil.cakal1-2/+3
- Align URL extension to default actuator URL Issue-ID: CPS-1922 Change-Id: Ifaa1eb32f3c6be5c48a63c4e360c27353d0e5e0f Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-10-25Update return body of RestOutputCMHandleemaclee3-95/+120
Issue-ID: CPS-1869 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I946db9e6785fc50775d1c5ff18e7462e8bad9af6
2023-10-23Introduce and use new Hazelcast map pt. 2sourabh_sourabh21-134/+263
- modified ModuleSyncService - created ModuleSetTagCacheConfig and tests - ensure both Create and Upgrade cm Handle use cases work - Moved inventory pkg to its right patha as production code. Issue-ID: CPS-1859 Signed-off-by: leventecsanyi <levente.csanyi@est.tech> Change-Id: I173dcd81fe2e74d86d85365b2ead461302cad974 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2023-10-19Code coverage: Update YANG schema set using moduleSetTagsourabh_sourabh7-27/+122
- Code coverage is increased to 98. - New groovy test is added to cover new code. Issue-ID: CPS-1798 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: Ia979be3f43ec8e4bbf6f8cb66a8a5e748118f19b Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2023-10-18Merging of Subscription schemasmpriyank4-13/+119
- Added new schema from DMI Plugin to NCMP - Added new schema from NCMP to the clients - Renamed existing schemas as per the conventions - Removed the merge keyword from the schemas and naming. Still the package will have merge keyword which will eventually be removed when we remove the old code Issue-ID: CPS-1905 Issue-ID: CPS-1906 Change-Id: I1f8c35e7f6baa25346d9527d58e20bba7f0dddeb Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-10-18Fix Sonar code smellsemaclee2-14/+11
- Update deprecated methods in webSecurityCOnfig - Remove 'deprecated' tag on methods that are to be removed in EventsPublisher as they are still being used, methods with deprecated tag (for removal) must not be used Issue-ID: CPS-89 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I104d4b3e362d22bb7fc020580de6cb4f390e54c9
2023-10-17Merge "[BUG] Fix for Swagger UI generation"Toine Siebelink6-7/+45
2023-10-17Merge "Add memory usage to integration tests [UPDATED]"Toine Siebelink12-201/+273
2023-10-17[BUG] Fix for Swagger UI generationegernug6-7/+45
Issue-ID: CPS-1913 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: Ib8a1b5fddc9957bd371fbb4dc54d018b25af3679
2023-10-16Merge "Clean up Dependencies"Toine Siebelink6-181/+183
2023-10-16Merge "Adding NCMP Stubs documentation"Toine Siebelink5-18/+247
2023-10-16Merge "Add NCMP Stub documentation to RTD"Toine Siebelink9-15/+137
2023-10-16Merge "Add withTrustLevel condition to CmHandle Query API"Toine Siebelink22-146/+317
2023-10-16Adding NCMP Stubs documentationwaqas.ikram5-18/+247
Issue-ID: CPS-1858 Change-Id: I90017d9d9c6e937292e9de45c0e8228357414e16 Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
2023-10-16Add NCMP Stub documentation to RTDToineSiebelink9-15/+137
-add new pages fot Stubs -fixed spleeting erros -added file with accepatbel cps terms for spell check Issue-ID: CPS-1858 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I71fdeb29b015067d208e404bed8ac53b03810c00
2023-10-16Clean up Dependenciesegernug6-181/+183
Clean up of dependencies into logical orders and compile/test statuses Issue-ID: CPS-1873 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I90ad49b7f1362e8f5b7006b85013c0bdf1b4d4ef
2023-10-13Merge "Update Subscription Event Schemas for merge"Priyank Maheshwari2-0/+168
2023-10-13Update Subscription Event Schemas for mergeseanbeirne2-0/+168
Issue-ID: CPS-1877 Signed-off-by: seanbeirne <sean.beirne@est.tech> Change-Id: I7545b1efb71d5032fad31200e874481cf1efe5b0
2023-10-12Add withTrustLevel condition to CmHandle Query APIhalil.cakal22-146/+317
- Change untrustworthyCmHandleSet with trustLevelPerCmHandleMap - Change trust level cache config accordingly - Change device heartbet consumer accordingly - Add json schema for device trust level - Add with_trust_level enum into cm handle query conditions - Add query cm handle by trustlevel function to cm handle queries - Add query cm handle by trustlevel service to network cm proxy cm handle service - Add unit tests and fix code smells Issue-ID: CPS-1864 Change-Id: Ie214f0713cef779307d3379df81e2b95115b6d6d Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-10-11Expose REST endpoint to update YANG schema set using moduleSetTagsourabh_sourabh41-135/+392
- Added new schema to upgrade model into component. - Modified Ncmp rest input mapper to add upgradedCmHandles attributes. - Modified cm handle state mapper to add new lock reason. - Added new method to parse and upgrade Cm handles in DmiRegistration. - YANG data converter is modified to add "module-set-tag" atribute. - Cm handle new query method is added for cps path without appending ancestor. - Modified setCompositeStateForRetry to add lock reason. - New lock reason category is added. - Existing module sync service is modified to upgrade the model "syncAndCreateOrUpgradeSchemaSetAndAnchor". - Sync util method "getModuleSyncFailedCmHandles" to modified to add another lock reason "LOCKED_MISBEHAVING". - Added new attribute "UpgradedCmHandles" into DmiPluginRegistration and DmiPluginRegistrationResponse. - New attribute "moduleSetTag" is added into NcmpServiceCmHandle. - New model "UpgradedCmHandles" is added. - New method "updateSchemaSetWithExistingModules" is added into cps module service to update cm handle with exsting model. - Code coverage is reducced to 96 percentage that would be addressed and pushed into new patch. Issue-ID: CPS-1798 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I540acb404e38fc434de87a0d959bfde710a18b03 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2023-10-11Merge "Conflicting Error code"Toine Siebelink16-190/+182