summaryrefslogtreecommitdiffstats
path: root/cps-service
AgeCommit message (Collapse)AuthorFilesLines
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>
2021-01-18Delete schema set - persistence layerRuslan Kashapov5-5/+133
Issue-ID: CPS-121 Change-Id: I6fc8343969971b76d7f78ad202dd8ec1058c03fb Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-18Merge "Persisting data nodes (fragments tree structure)"Toine Siebelink2-1/+15
2021-01-18Persisting data nodes (fragments tree structure)niamhcore2-1/+15
Issue-ID: CPS-136 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I559afad41bf0eab1cc98c777a418b348c9c1b81c
2021-01-18Fix code smellRishi.Chail1-0/+1
Issue-ID: CPS-89 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I35615ff650c6b22391729513cb9185fd5986a285
2021-01-15Retrieve the SchemaSet resources for an AnchorRishi.Chail5-12/+77
Issue-ID: CPS-135 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: Ib7c17c5180212c7dd3b96cf27797c84166041cf9
2021-01-15SonarQube fixesToineSiebelink2-1/+3
- Ignore missed SonarQube violations on SchemaSetAlreadyDefinedException - Added coverage fro CpsConfig as it will not be covered by MVC tests Issue-ID: CPS-89 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I52911419dd9556cf078f2a05eab2c7783cbf304f
2021-01-14SonarQube fixesToineSiebelink7-5/+127
- Ignore SonarQube violations related to inheritance depth for exception classes - Increase coverage service module Issue-ID: CPS-89 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I7998dee0f9abea0638639e0587b08febad6075f5
2021-01-14Fix code coverage for sonarClaudio David Gasparini1-4/+0
The get the multi module aggregate report to be consumed by sonar we are enforced to use full path to all reports. - 90.4 % coverage detected by sonar achieved Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I91d81063e7234327cb4458c31fa27601ec22e9cd
2021-01-13Include aggregate xml report on sonar coverageClaudio David Gasparini1-0/+4
Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I50de5df1bc79ff22c90a5cbe2f1b143164c8abea
2021-01-12Merge "Enable spotbugs and fix spotbugs warns"Toine Siebelink3-5/+12
2021-01-12Increase CPS Code CoverageRishi.Chail1-0/+2
Disable lombok generated code from coverage. Issue-ID: CPS-87 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I8f13eb480baddc78c00a5a0c9c0e180252119f2e
2021-01-12Enable spotbugs and fix spotbugs warnsClaudio David Gasparini3-5/+12
Issue-ID: CPS-159 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Iee572fd740689a172ca599123b0751b5e909223a
2021-01-11Rework CpsModulePersistenceServiceClaudio David Gasparini9-21/+85
- remove getModuleReferences - provide service returning YangTextSchemaSourceSet Issue-ID: CPS-21 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I61cf6450c8ed8a5154990ea19467e016dc1155b4
2021-01-08Merge "Remove depredcated classes"Bruno Sakoto1-49/+0
2021-01-07Remove deprecated methodClaudio David Gasparini1-16/+0
Issue-ID: CPS-130 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Id774f8b080eeb5dcfd78278ed6ef3831d44db711
2021-01-07Remove depredcated classesniamhcore1-49/+0
Issue-ID: CPS-130 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I00974cc565b7eaa07fdf6a03b074c0317d62e077
2021-01-06Create dataspaceRuslan Kashapov5-0/+70
Issue-ID: CPS-134 Change-Id: Ie7f00f9c322a12a6c2a71c1407f6970a7dd24d2d Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-06Merge "Create schema set REST API and service level"Toine Siebelink7-51/+114
2020-12-24Create schema set REST API and service levelRuslan Kashapov7-51/+114
Issue-ID: CPS-123 Change-Id: Ie6d5fd4755454331415af7b80eaf85925efab395 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-17Merge "Redirecting logs to console"Toine Siebelink1-26/+40