summaryrefslogtreecommitdiffstats
path: root/cps-service
AgeCommit message (Collapse)AuthorFilesLines
2022-01-07cps-core bumping version to 2.0.4-SNAPSHOTputhuparambil.aditya1-1/+1
Issue-ID: CPS-841 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ia66a26930df76d1aeb3e6b76e8fdab8452bd50fa
2022-01-06Fixing snapshot versionputhuparambil.aditya1-1/+1
Issue-ID: CPS-841 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ia6508beb0f8ee9117fee85a921112616a73eadd8
2021-12-20Updating snapshot version in pom and version.propertiesniamhcore1-1/+1
Issue-ID: CPS-820 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: If65f2d71e3ea443954b9d15e5e4231548876f253
2021-10-14Step 6 : Bumping version cps-2.0.2puthuparambil.aditya1-1/+1
Issue-ID: CPS-727 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I83035b8e504a1c52e222ba1bd247cbc26ea01ff5
2021-09-17Fix SonarQube (jacoco) code coverage reportingToineSiebelink1-0/+4
- Add report module for aggregating (as per jacocos current recommendation)( - increased overall (cps-parent) minimum code coverage to 0.97 - set lower minimum in modules that are not at that level (yet) - add exclude for cps-events generated code - made xml identing consistentent some pom files Issue-ID: CPS-475 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: If7b7839d7e03522575bc76a2253b613e63400b6b
2021-09-14Upgrade to next snapshot versionBruno Sakoto1-1/+1
Issue-ID: CPS-613 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I3888d5b43d45c441a69b142489a8be1bd29dbd8c
2021-09-13Upgade the version to 2.0.0Renu Kumari1-1/+1
Issue-ID: CPS-613 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I248a6bd779356627940ac54a251445593e94058b
2021-09-07P2 - Get module names and revisions rest layerniamhcore4-11/+34
Issue-ID: CPS-485 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I1bcf45902207d0dba6b5dfe8277cb06571694db3
2021-09-06P1 - Get module name and revision persistence layerniamhcore10-34/+87
Rename ModuleReference to ExtendedModuleReference Create new ModuleReference class (moduleName and revision) Update existing sync model flow to use new module reference class Create native query to get module name and revision Issue-ID: CPS-485 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I0d0da7742ceef3a68e83a5dd4852091e6adf138b
2021-09-02Add property to enable Notification Sevice async processingRenu Kumari3-12/+9
- made notification service synchronous by default - added new property to enable async processing if required Issue-ID: CPS-630 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I28c2c98d7a79219a5932732d2940f5ac37bf1653
2021-08-30CPS-505 Retrieving modules for new CM handleJosephKeenan3-4/+6
-Added some production code for getting missing modules for new CM handle -Groovy test template added by Toine for getting msissing modules -Added json example for test -Modified test to check map contents -Differentiated restTemplate calls based on URL -Fixed code review comment`s -Groovy test now passing -Modified behaviour for sending moduleReferences and added null to namespace (jira to follow) -Combined NetworkCmProxyDataServiceImpl tests into one class & addressed code review comments Issue-ID: CPS-505 Change-Id: I91ef65467496caea7834ba2e8af99cfe58d4f880 Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2021-08-25Add optional observed timestamp in the cps data apiaditya puthuparambil9-113/+203
- Added optional query parameter in cps data endpoints - Updated service layer and notification to use observedTimestamp Note: - NCMP REST endpoints are not updated as a part of this patch - NCMP does not sent observed timestamp when using cps data services Issue-ID: CPS-477 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I1f92da3da7b3a13c45405fdf44e5fef861991d9a Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
2021-08-25Merge "Add timeout to async test-cases"Bruno Sakoto3-7/+14
2021-08-25Merge "Process data-updated event asynchronously"Toine Siebelink7-32/+138
2021-08-25Add timeout to async test-casesRenu Kumari3-7/+14
Issue-ID: CPS-526 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Icf46f94090a615bf945eb70b58edf86c0c509155
2021-08-24Prepare for next event schema versionmr/584/123451/3Bruno Sakoto2-6/+6
Issue-ID: CPS-584, CPS-459 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Iaf605492783f8c06f40522a427ce63bd2d1b34d0
2021-08-24Process data-updated event asynchronouslyRenu Kumari7-32/+138
- notification is processed asynchronously using defined threadpool - updated docker-compose and readme to add dataspace filtering variables Issue-ID: CPS-526 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I7f827250f45cb9e3db2f060e9b3a089a4eaee05c
2021-08-24Update CmHandle in DMI-Registry for a DMI-Plugin Instance in NCMP as part of ↵DylanB95EST4-2/+94
dmi registration. Updating existing CM-Handles created previously as part of CPS-442 Note - Can only update cm handles and properties which already exist. Issue-ID: CPS-443 Change-Id: Ib05a4e01336ca463578b45917dcdfe715b6bad07 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-08-19Merge "Filter data updated events based on configured pattern"Niamh Core5-42/+126
2021-08-18Merge "CPS-508: Create anchor/schemaset from new modules and existing modules"Niamh Core5-2/+45
2021-08-17Filter data updated events based on configured patternRenu Kumari5-42/+126
Issue-ID: CPS-469 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I7810990b54c3140677184ea671164b8835a6afbb
2021-08-17Merge "Delete list-node p1 service and persistence layers"Niamh Core4-12/+39
2021-08-17CPS-508: Create anchor/schemaset from new modules and existing modulesshivasubedi5-2/+45
Issue-ID: CPS-508 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: I8023a093334b77d0220f7c7d94de66863f5ba6dd
2021-08-17Fix Sonar Qube Violationslukegleeson1-1/+1
Issue-ID: CPS-475 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I9673fe8ff5373a1ea50df148ac2a3d8af235e508
2021-08-17Delete list-node p1 service and persistence layerslukegleeson4-12/+39
Persistence Layer of delete List-Node Content Service Layer of delete List-Node Content Updating of deprecated FragementRepository.getOne() method to FragmentRepository.getByID() in CpsDataPersistenceServiceIntegration.groovy Remove Runtime Exceptions thrown from CpsDataService.java javadoc Issue-ID: CPS-361 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Ib5762e73a6e8620c50c2e07b00086b9287770bc3
2021-08-05CPS-506: List all known modules and revisionshivasubedi4-0/+34
Issue-ID: CPS-506 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: Id76fecc7dd10625cc3ecb940b1181b1e8bf829a1
2021-08-03CPS-521: Upgrade opendaylight yangtools to version 6.0.1shivasubedi1-1/+2
Issue-ID: CPS-521 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: I53fa992e3c651c444d4c823190a393b084fa7cc6
2021-07-22Merge "Fixed inconsistent data issue with replaceNode"Bruno Sakoto1-0/+27
2021-07-21Fixed inconsistent data issue with replaceNodeRenu Kumari1-0/+27
Issue-ID: CPS-501 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Ic4785d97013729b80f81aca3de4430bdaa8155fa
2021-07-20Support text() conditionToineSiebelink4-12/+32
- Added Antlr parsing of text() condition (as an optional additional to any query) - Implemented text-condition combined with descendants - Refactor descendants queries into using one more flexible Custom (native) Query builder - Refactor ALL cpsPath queries to now use FragmentRepositoryCpsPathQuery (custom query builder) - Refactor Antrl code to simply parsing of cpsPath and allow all combinations (no more query types, addresses CPS-436) - Minor clean up of some minor convention issues in CpsAdminServiceImplSpec.groovy (found during groovy demo) - Update .rst documentation of xPaths - Fixed incorrect matching of additional list indexes using more precise SIMILAR-TO regex in postgreSQL - Documented special chararter limitation (CPS-500) - Checked for consistent use of term 'CPS path' in documentation and error message - Included (updated) copyright in all .SQL test files Issue-ID: CPS-452 Issue-ID: CPS-436 Issue-ID: CPS-500 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: If422d25cafd2850d25c9a28dea16ba7a5f93dddb
2021-07-13Editing of Nordix Licenses to ONAP guidelineslukegleeson32-58/+95
Issue-ID: CPS-489 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: I415534515b3d8325f41d5dc1d02c6e0ae70c6cf1
2021-07-12Merge "Support concurrent requests to create schema sets"Niamh Core1-0/+47
2021-07-09Support concurrent requests to create schema setsBruno Sakoto1-0/+47
Issue-ID: CPS-466 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I2ecf98b9aa5a6097518e616c08f8bb2a2182a613
2021-07-09Fix sonar code smellsBruno Sakoto2-26/+23
* Replace lambda with a method reference https://sonarcloud.io/project/issues?id=onap_cps&open=AXqEcoyndYfHjsbjSdb5 * Block of commented-out lines of code should be removed https://sonarcloud.io/project/issues?id=onap_cps&open=AXqEco0ldYfHjsbjSdb6 Issue-ID: CPS-475 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I4c4497061aa39d20e04d12124df9c6f2cfaf405e
2021-07-07Sending Data Updated Event to kafkaRenu Kumari15-6/+839
Issue-ID: CPS-374 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I05fedcace42b84575411df26c586788bffe6b846
2021-06-29Update CPS ran model schema to the latest versionshivasubedi3-25/+136
- file name updates - fixed sql statements in the forward and rollback files - Updated to use insert statements instead of update statements - Removing liquibase steps Issue-ID: CPS-451 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: I3e08574837dfa0f16cf06a16b07de24788923411
2021-06-18Merge "Missing licence info added in pom file"Bruno Sakoto3-0/+54
2021-06-18Updating exception and explanation for update node leavesniamhcore3-2/+24
Issue-ID: CPS-464 & CPS-465 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I1880ceee66d89c49d039011163fa74bb7da19f25
2021-06-18Missing licence info added in pom fileshivasubedi3-0/+54
- Added licence info to files that were missing it - Fixed licence info to match with the creator of the file Issue-ID: CPS-467 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: I1c0eaedb2c87743a61a1cd58f33b0d0d04b3a977
2021-06-01Introducing Antlr4 for cpsPath parsingToineSiebelink2-10/+9
-created new module for cpPathParser -added antlr rule for cpsPathWithSingleLeafCondition -added antlr rule for cpsPathWithDescendant (and with leaf conditions) -added antlr rule for ancestor axis -added unit test (copied from existing CpsPathQuerySpec) -udpated cps-ri to use new cpPathQuery from parser module -'imported' lexer rules from publix xPath grammar -Re-used existing CpsPathException but conversion happens in cps-ri to prevent additional dependency in cps-path-parser module Issue-ID: CPS-376 Change-Id: I2c5df98969402cbf69f6573c52705879450ce606 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2021-05-28Load only required components in the application contextsRenu Kumari2-12/+10
Issue-ID: CPS-434 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Iacc12946495b9e6ec42b4b7d4e3b5b010fecceb5
2021-05-24Replace list-node content (part 1): CPS Service and persistence layersRuslan Kashapov4-4/+67
Issue-ID: CPS-362 Change-Id: I669c9fc6ef67c1992fe95e17a765f0c616b00f7e Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-05-11Create list-node elements (part1): CPS service and persistence layersRuslan Kashapov5-50/+119
+ fix integrity violation exception exposed out of persistence layer + refactor CpsDataServiceImplSpec to eliminate repeated code Issue-ID: CPS-360 Change-Id: Id70341fe54bf3c31af661f6aae04a7a80f4a1e9d Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-05-07Fix cps ran yang data modelBruno Sakoto1-1/+2
* Add a liquibase change set to update cps ran model data * Rename model "cps-ran-schema-model@2021-01-28.yang" to be compliant with yang specifications related to file layout https://tools.ietf.org/html/rfc7950#section-5.2 * Improve yang validation error handling to provide more information about the validation failure in the request response * Add csit test to verify cps ran model retrieval Issue-ID: CPS-377 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I4f0e337b50d79e81f895eb32f09ae9cb5d9d8a70
2021-04-30fix sonar code smellRuslan Kashapov1-1/+1
Issue-ID: CPS-358 Change-Id: Ifa1f4bbd5c16a0cf6e4ac73568c8560e42b85365 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-04-29JSON data fragment into DataNode collection parsing supportRuslan Kashapov2-1/+41
Issue-ID: CPS-358 Change-Id: I92f46504e5f3623131844616945069f70712ed61 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-04-29Investigate and update Spock versionshivasubedi5-16/+0
Issue-ID: CPS-368 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: Ie8505cf29068660af6bc6b9887f593f7e3be074f
2021-04-28Fix Code smellsshivasubedi5-26/+21
Issue-ID: CPS-89 Change-Id: Ib1b6fbc6b6d712f169100825683e6db3e7c85cb9 Signed-off-by: shivasubedi <shiva.subedi@est.tech>
2021-04-26Get Data under anchor using single rootRishi.Chail2-1/+18
Issue-ID: CPS-325 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: Id8da3d767199c5767c625b55d175ac6791dcca48
2021-04-20Create child data node (part 1): CPS service + RESTRuslan Kashapov3-0/+43
Issue-ID: CPS-337 Change-Id: I9c5c62d144b5301ac80e2b82a5cc66a980dad011 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>