summaryrefslogtreecommitdiffstats
path: root/cps-service/src/main/java/org/onap/cps
AgeCommit message (Collapse)AuthorFilesLines
2021-08-19Merge "Filter data updated events based on configured pattern"Niamh Core2-12/+73
2021-08-18Merge "CPS-508: Create anchor/schemaset from new modules and existing modules"Niamh Core4-1/+33
2021-08-17Filter data updated events based on configured patternRenu Kumari2-12/+73
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 Core3-12/+27
2021-08-17CPS-508: Create anchor/schemaset from new modules and existing modulesshivasubedi4-1/+33
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 layerslukegleeson3-12/+27
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 revisionshivasubedi3-0/+26
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-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-13Editing of Nordix Licenses to ONAP guidelineslukegleeson20-41/+60
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 Kumari6-0/+353
Issue-ID: CPS-374 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I05fedcace42b84575411df26c586788bffe6b846
2021-06-18Updating exception and explanation for update node leavesniamhcore2-2/+11
Issue-ID: CPS-464 & CPS-465 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I1880ceee66d89c49d039011163fa74bb7da19f25
2021-06-01Introducing Antlr4 for cpsPath parsingToineSiebelink1-3/+4
-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-24Replace list-node content (part 1): CPS Service and persistence layersRuslan Kashapov3-4/+39
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 Kashapov4-0/+62
+ 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 Kashapov1-1/+19
Issue-ID: CPS-358 Change-Id: I92f46504e5f3623131844616945069f70712ed61 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
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.Chail1-0/+11
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 Kashapov2-0/+23
Issue-ID: CPS-337 Change-Id: I9c5c62d144b5301ac80e2b82a5cc66a980dad011 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-04-07Fix SonarQube violationsToineSiebelink2-5/+4
- Used @SupressWarning where issue was casued by 3PP we have not control over - Remove TODO's which are now addt to backlog as new JIRA's; CPS-324 and CPS-325 Issue-ID: CPS-89 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ieb64fd6d3f09144f6dea965c0aee3aefa6ec253c
2021-04-07Delete anchor part 1: service and persistence layersRuslan Kashapov3-1/+25
Issue-ID: CPS-312 Change-Id: I10ab5a2d115ffdf8179a99b6ec712f3eccfb5f13 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-04-07Fix xpath building for data nodes addressing YANG augmentationRuslan Kashapov1-2/+5
Issue-ID: CPS-316 Change-Id: I8aa0960c2a6af2b8fe5bc2fb90efe36baee7a881 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-03-24Provide the reason why data is not compliantBruno Sakoto1-2/+2
Issue-ID: CPS-292 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Ia58a8dfcf427e373b24bb3be7436abf6abd55492
2021-03-24Internal Server Error when creating the same data node twiceniamhcore7-134/+80
This change adds a generic exception handler class for a already defined object and handles a JsonSyntaxException. Issue-ID: CPS-290 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ie645237b5dd5b8e2b1d074c5613e7da560f57484
2021-03-02CPS-265 - updating cps path to support include-descendants option.niamhcore3-4/+10
Issue-ID: CPS-265 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I9e9b84760dbc8b5eb4b31ab972fdb2d186c6bb48
2021-02-22Rest & Java API layer - Query Datanodes using cpsPath that contains contains ↵niamhcore2-0/+55
a leaf name and a leaf value Issue-ID: CPS-231 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I3bf2a9946746ad06ddb4bc832206a36b78ff2175
2021-02-19Persistence layer - Query Datanodes using cpsPath that contains contains a ↵niamhcore2-0/+47
leaf name and a leaf value Issue-ID: CPS-231 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I9bd483a4b76e233ab6c64b3ef8aacb593e4e9da0
2021-02-18Data fragment update by xpath #3 - rest and service layersRuslan Kashapov2-9/+62
Issue-ID: CPS-58 Change-Id: Ie224da95b07748b63648226df6484cebae91cdec Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-17Merge "Data fragment update by xpath #2 - persistence layer"Toine Siebelink2-25/+22
2021-02-16Data fragment update by xpath #2 - persistence layerRuslan Kashapov2-25/+22
Issue-ID: CPS-58 Change-Id: Ifc4580936d06c6907d6b5ab20657063b6707ccbe Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-16Fix yang resource parse failure if filename matches IETF recommended formatRuslan Kashapov1-6/+16
Issue-ID: CPS-237 Change-Id: I9a8f95552b9814f02886d1b5074aa6e7a09f582d Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-09Data fragment update by xpath - parsing and validationRuslan Kashapov2-21/+107
Issue-ID: CPS-58 Change-Id: I6363c39d7046afc3b20dcd1224d6399b043c4386 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-24Fix SonarQube ViolationsRishi.Chail2-2/+2
Issue-ID: CPS-89 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I72e734929b464072e23b08a1e213b5fac31ff710
2021-02-04Fetching data node by xpath - rest and service layersRuslan Kashapov4-0/+149
IssueID: CPS-71 Change-Id: I54801fc12a8aa700d85e774780c9990b7f19c747 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-04Fetching data node by xpath - persistence layerRuslan Kashapov3-0/+53
IssueID: CPS-71 Change-Id: I88f76cf36ef8a1e4ccbd4f1eac8867e93ed5be82 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-01Merge "Attach a (JSON) data instance for a container with children to a ↵Toine Siebelink4-11/+90
given Anchor"
2021-02-01Attach a (JSON) data instance for a container with children to a given Anchorniamhcore4-11/+90
Issue-ID: CPS-26 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I38fc1b1a6ccf84e64eff3218372b40c8fa2491ba
2021-01-29Merge "Fix the datanode build logic (incorrect parsing of containers and ↵Toine Siebelink2-44/+37
mapped lists)"
2021-01-28Fix the datanode build logic (incorrect parsing of containers and mapped lists)Ruslan Kashapov2-44/+37
Issue-ID: CPS-198 Change-Id: Ideb89f777a1bc155603152991174680fad8bb513 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-28Fix sonar false-positive code smells issues (licence below package line)Ruslan Kashapov2-5/+6
Issue-ID: CPS-89 Change-Id: I79d520c237b5ca6cf0250d1a001fc1406013bd14 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-27Draft at proposal where the DataNodeBuilder 'replaces' yang Utils to buidl a ↵ToineSiebelink4-258/+206
DataNode Most complexity is related to immutable collections and the fact taht we are adding data while recursing over the orignal data in an uncontrolled order. I cleaned it up as best I could with no logic in DataNode. Espcially the handling of LitLeaves requires some specialed handling. Thsi is just a draft solution for that I still propose we get back to that in dedicated user stories for handling the various types of Yang elements Hope this helps... Issue-ID: CPS-137 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Iab7cfcff67412c01bcdab95e707e1350bf60fab1
2021-01-25Add DataNodeDoesNotExist Exceptionniamhcore2-0/+52
Issue-ID: CPS-182 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I05fdd0fbc207e4806c187b96d35d7b6c54b795ea
2021-01-22Retrieve an Anchor for a given dataspace by anchor name - Service layerRishi.Chail2-1/+16
Part of story already done in CPS-135 Issue-ID: CPS-55 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I0c4ae551f5c85866ce543fbb27b18ffff7d80462
2021-01-22Add another Child to a Fragment that has already at least one Childniamhcore1-0/+11
Issue-ID: CPS-164 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ib6a4f8ce4fc9247726e016ecaa0b1e45ff11bdbb