summaryrefslogtreecommitdiffstats
path: root/cps-service
AgeCommit message (Collapse)AuthorFilesLines
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>
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 Kashapov4-1/+33
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 Kashapov10-13/+1127
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 twiceniamhcore9-147/+109
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-05Update versions for next releaseRishi.Chail1-1/+1
Issue-ID: CPS-256 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: Ifce438495233edd7de9f42129ab60bebc365f0b9
2021-03-04Upgrade version numberBruno Sakoto1-1/+1
Honolulu RC0 will be version 1.0.0 Issue-ID: CPS-260 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Ib4d464100b7b5814070d41dc911f342f58836442
2021-03-02CPS-265 - updating cps path to support include-descendants option.niamhcore4-7/+19
Issue-ID: CPS-265 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I9e9b84760dbc8b5eb4b31ab972fdb2d186c6bb48
2021-02-23Merge "Updating RAN Inventory tests to use the latest model and data"Bruno Sakoto3-80/+95
2021-02-23Updating RAN Inventory tests to use the latest model and dataniamhcore3-80/+95
Issue-ID: CPS-200 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I22fbfd66a2f355f38dc4502445df8041ed0db7c5
2021-02-22Upgrade version numberBruno Sakoto1-1/+1
Issue-ID: CPS-175 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I23bdd1b406e2076c612c06c1677af4440c0b883f
2021-02-22Rest & Java API layer - Query Datanodes using cpsPath that contains contains ↵niamhcore3-0/+99
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 ↵niamhcore3-0/+56
leaf name and a leaf value Issue-ID: CPS-231 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I9bd483a4b76e233ab6c64b3ef8aacb593e4e9da0
2021-02-18Merge "E2E RAN Schema Model - yang model vs data test"Toine Siebelink3-7/+2008
2021-02-18E2E RAN Schema Model - yang model vs data testRuslan Kashapov3-7/+2008
Issue-ID: CPS-196 Change-Id: I0171dfc2f82505c8ae8497ff49fe3eb28e1972a6 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-18Data fragment update by xpath #3 - rest and service layersRuslan Kashapov3-13/+109
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 Kashapov2-10/+24
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 Kashapov5-36/+212
Issue-ID: CPS-58 Change-Id: I6363c39d7046afc3b20dcd1224d6399b043c4386 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-09General groovy test improvementsToineSiebelink2-45/+35
- Use the power of Groovy (maps and collections) - Improve data sample readability - Split out Datanode get scenarios: Separate Leave test from children related tests Issue-ID: CPS-160 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ife40749525a931b23091b472680c233f012bc457
2021-02-09Merge "E2E Network Slice test for 'Coverage Area-Tracking Area & TA-Cell ↵Toine Siebelink4-48/+45
mapping' with updated data"
2021-02-08E2E Network Slice test for 'Coverage Area-Tracking Area & TA-Cell mapping' ↵puthuparambil.aditya4-48/+45
with updated data Issue-ID: CPS-199 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ic399198bd583217d96d0f5306078563b23ae54fd
2021-02-05Custom Model E2E Network Slicing - RAN Inventoryniamhcore3-0/+249
Issue-ID: CPS-200 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I846ff2928de6e1fae1483ced05d66cfd1e44615e
2021-02-04Fetching data node by xpath - rest and service layersRuslan Kashapov6-6/+244
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-03Merge "E2E Network Slice test for 'Coverage Area-Tracking Area & TA-Cell ↵Toine Siebelink3-5/+244
mapping'"
2021-02-03E2E Network Slice test for 'Coverage Area-Tracking Area & TA-Cell mapping'puthuparambil.aditya3-5/+244
Issue-ID: CPS-199 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Id8f7f595d04eb492c3ea065b8fcbf8ac9f3641bc
2021-02-02Refactoring tests and adding tests for creating a node.niamhcore1-0/+70
Issue-ID: CPS-26 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I36e3f2bbb2928cc6b8d0d4a079516f801c33df13
2021-02-01Merge "Attach a (JSON) data instance for a container with children to a ↵Toine Siebelink5-15/+97
given Anchor"
2021-02-01Attach a (JSON) data instance for a container with children to a given Anchorniamhcore5-15/+97
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 Siebelink5-55/+131
mapped lists)"
2021-01-28Fix the datanode build logic (incorrect parsing of containers and mapped lists)Ruslan Kashapov5-55/+131
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 ↵ToineSiebelink6-279/+235
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 Exceptionniamhcore3-1/+69
Issue-ID: CPS-182 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I05fdd0fbc207e4806c187b96d35d7b6c54b795ea
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-01-22Retrieve an Anchor for a given dataspace by anchor name - Service layerRishi.Chail3-5/+28
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
2021-01-21Introduce caffeine cacheClaudio David Gasparini6-26/+164
Issue-ID: CPS-163 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Iff9b831c2d895d82aff419f60a8dd86a38b545d0
2021-01-20Test E2E Network Slicing model with CPSRishi.Chail4-0/+3138
Added TC with yang schema sets which are base for E2E Network slicing Issue-ID: CPS-169 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I7f082833880157a1711b5a380697c8ba75a1a39f
2021-01-19Delete schema set - REST and service layersRuslan Kashapov3-1/+40
Issue-ID: CPS-121 Change-Id: I0fe885c79f98c994a8ac25a59b77b99eee4b3076 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>