aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-06-01Fix last SQ violationToineSiebelink2-2/+2
Issue-ID: CPS-89 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I9621a60e89574bbb8b222b7342c5d387c302afdb
2021-06-01Introducing Antlr4 for cpsPath parsingToineSiebelink18-238/+523
-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 Kumari4-13/+13
Issue-ID: CPS-434 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Iacc12946495b9e6ec42b4b7d4e3b5b010fecceb5
2021-05-26Aligning differing openAPI paths (cps-rest & ncmp-rest)JosephKeenan6-1/+1
Issue-ID: CPS-427 Change-Id: I1d6853419923994feed4d9c38482818f17202e36 Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2021-05-25Replace list-node content (part 2): CPS REST layerRuslan Kashapov3-1/+50
Issue-ID: CPS-362 Change-Id: I46dc9b48758fa10a47a648aa4e6a63775466234b Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-05-24Replace list-node content (part 1): CPS Service and persistence layersRuslan Kashapov6-4/+122
Issue-ID: CPS-362 Change-Id: I669c9fc6ef67c1992fe95e17a765f0c616b00f7e Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-05-24Adding Atomic Grouping to Discard backtracking once matched as part of Sonar ↵DylanB95EST1-2/+2
Security Hotspot Fix Issue-ID: CPS-89 Commit-ID: b23ee774ae2a2305f1feea747931879588f9cada Change-Id: I1f9d54246370b0c0bc8ec3d167eaed27ad58471b Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-05-21Adding Possessive Quantifier to Regex to prevent backtrackingDylanB95EST1-2/+2
Issie-ID: CPS-89 Commit-ID: 22dbd115593cd429b1b75af2000310ce79cfbf10 Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Change-Id: I12f8aec77e9a4faa62234b7108617d47e4ed63fd
2021-05-21Update SonarQube Code SmellJosephKeenan1-1/+1
Issue-ID: CPS-89 Change-Id: I3a3e34b41ed98a0ab2c1accd438e2ec1d4a8d1cf Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2021-05-20Response code fix (Bad Request instead of Not Found) when modifying ↵Ruslan Kashapov2-2/+30
non-existent node. Issue-ID: CPS-422 Change-Id: I6652f8bcafb9938ce588be3d0a0d2bb1672723b0 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-05-17nexus registry is parmateterizedRenu Kumari5-18/+18
Issue-ID: CPS-311 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I158387f54b1a9d3d60e6d97cc3336391745af3c0
2021-05-11Create list-node elements (part3): NCMP REST and service layersRuslan Kashapov8-0/+89
Issue-ID: CPS-360 Change-Id: Id8be89f19750d72bae334491aea4a59f21c7ecd6 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-05-11Create list-node elements (part2): CPS REST layerRuslan Kashapov5-5/+63
Issue-ID: CPS-360 Change-Id: Iaca8baff085e1659453c06ce0dee0203aa007b4a Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-05-11Create list-node elements (part1): CPS service and persistence layersRuslan Kashapov8-68/+194
+ 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-08Merge "Add CpsPathQueries.sql and create data inspired by the bookstore model"Bruno Sakoto5-53/+75
2021-05-07Add CpsPathQueries.sql and create data inspired by the bookstore modelniamhcore5-53/+75
Issue-ID: CPS-363 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I1eaee97d6ced7b0c0676de19d74b4d8262a5e811
2021-05-07Fix cps ran yang data modelBruno Sakoto10-3/+4552
* 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-05-06Document ancestor cps pathniamhcore1-3/+24
Issue-ID: CPS-305 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I29ef0c62ab2030d900c9fcecb453d9aff9f647d3
2021-05-04Fix ancestor cps path to recognize ancestor list valueniamhcore2-10/+11
Issue-ID: CPS-305 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I28f7f0c120a39190068a3192dccf0a1a6fbfeaf2
2021-04-30Merge "Implement cps path query to get ancestor by schema node identifier ↵Rishi Chail7-106/+155
Cleaned up some legcy issues in related testware"
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-30Implement cps path query to get ancestor by schema node identifierToineSiebelink7-106/+155
Cleaned up some legcy issues in related testware Issue-ID: CPS-305 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ic4b21308478f399e3a454dbcd73943e077b0f3f2 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2021-04-30Merge "Fix code smell"Toine Siebelink1-1/+0
2021-04-30Fix Get descendent to support xpaths that end in list valuesputhuparambil.aditya3-17/+36
Issue-ID: CPS-367 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I3234afd8b8b69c5a3c87db1669d9b304f9fcaa49
2021-04-30Fix code smellRishi.Chail1-1/+0
Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: Ib1d7d1c83ea86a6a25d831852b822b4f3857d54a
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 versionshivasubedi20-72/+20
Issue-ID: CPS-368 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: Ie8505cf29068660af6bc6b9887f593f7e3be074f
2021-04-28- Remove redundant and misleading testsToineSiebelink1-29/+11
- Some small improvemnt to tets ins same class Issue-ID: CPS-325 Change-Id: I0d888dbd9db555508b23e37957098b7b4d518912 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2021-04-28Fix Code smellsshivasubedi15-84/+73
Issue-ID: CPS-89 Change-Id: Ib1b6fbc6b6d712f169100825683e6db3e7c85cb9 Signed-off-by: shivasubedi <shiva.subedi@est.tech>
2021-04-28Merge "Get Data under anchor using single root Changes for NCMP"Toine Siebelink2-5/+0
2021-04-26Merge "Leaf String value comparison matches mix of single and double quotes"Rishi Chail2-6/+31
2021-04-26Get Data under anchor using single rootRishi.Chail2-5/+0
Changes for NCMP Issue-ID: CPS-325 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I3eb8a1b0c11d0503614cea6839ad7e33adbdd524
2021-04-26Merge "Get Data under anchor using single root"Bruno Sakoto8-20/+62
2021-04-26Get Data under anchor using single rootRishi.Chail8-20/+62
Issue-ID: CPS-325 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: Id8da3d767199c5767c625b55d175ac6791dcca48
2021-04-26Leaf String value comparison matches mix of single and double quotesshivasubedi2-6/+31
Issue-ID: CPS-345 Signed-off-by: shivasubedi <shiva.subedi@est.tech> Change-Id: Id6db86817878ed5ed8ccaed4a9a71c5a06d6f97c
2021-04-23Update documentation for csit testsBruno Sakoto1-1/+1
Issue-ID: CPS-356 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Ic6f31e7eaaf86fd51bb65f22b51668a74d792472
2021-04-23Merge "Upgrade to PostgreSQL 13"Bruno Sakoto2-2/+2
2021-04-23Documents update for multiple attributes support in Get Descendent APIputhuparambil.aditya1-6/+5
Issue-ID: CPS-309 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Iceb62b784e3e5281d8a8ab443c4ece45fa121dc2
2021-04-23Documents update for multiple attributes support in Get Descendent APIputhuparambil.aditya1-2/+20
Issue-ID: CPS-309 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I413fd64b12b1c1a10fd9e0068809cb5a8a6e28ad
2021-04-23Upgrade to PostgreSQL 13Rishi.Chail2-2/+2
Upgrade version in docker compose and test containers to match OOM version. Issue-ID: CPS-355 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I8da816fb932822e50380e7c12487e234d75fa4d7
2021-04-22Implement ends with cps path query to support multiple attributes with 'and' ↵puthuparambil.aditya8-85/+274
condition Issue-ID: CPS-309 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I80bf2650e2cd979b806fc29302fc5cb295f65241 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
2021-04-22Document legacy CPS Path functionalityToineSiebelink5-6/+108
Issue-ID: CPS-334 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ib5266c7b30097661d97f8a499eaddc738dda0539
2021-04-22Merge "Update README.md"Toine Siebelink1-2/+5
2021-04-21Update README.mdHanif Kukkalli1-2/+5
Updated README.md to show the version that can be used to pass as an argument for docker-compose up Issue-ID: CPS-339 Signed-off-by: Hanif Kukkalli <lte-ng@outlook.com> Change-Id: I440f2d368c0b06c3827db3c39e044560c4d10a84
2021-04-21Create child data node (part 2): NCMP service + RESTRuslan Kashapov6-12/+123
Issue-ID: CPS-337 Change-Id: Icf703f6f375e5f280058d58c781eac081f3dd161 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-04-20Merge "Increase minimum coverage"Toine Siebelink2-6/+6
2021-04-20Create child data node (part 1): CPS service + RESTRuslan Kashapov6-9/+88
Issue-ID: CPS-337 Change-Id: I9c5c62d144b5301ac80e2b82a5cc66a980dad011 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-04-19Increase minimum coverageClaudio D. Gasparini2-6/+6
and remove unnecesary dependency Issue-ID: CPS-343 Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com> Change-Id: I3bffbd9941f539852da2e1de82f8edda08ea1ea3
2021-04-15Remove default password from application.ymlRenu Kumari3-4/+7
Issue-ID: CPS-319 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I61a5e098ffa173721cfa48aa0b992610f6a6e1a0
2021-04-15Fix "ends-with" query syntax to conform with xPath definitionToineSiebelink6-38/+42
"ends-with" is HOW we resolve it in sql query. 'descendant anywhere' is the correct Path name for the '//' operator - Updated method names, variable names, test description to reflect the correct terminolgy - Udpated query to always perfix the target (descendant name) with an '\' so it alwasy only matches whole node names - Updated regex for cpsPath to NOT accept triple /// (as per xPath this is invalid since a ndoeName cannot start with or contain a node separator Issue-ID: CPS-336 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I9f181d6986d038311b839e3f9c5afc4237c7d347