aboutsummaryrefslogtreecommitdiffstats
path: root/cps-service
AgeCommit message (Collapse)AuthorFilesLines
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
2020-12-17Redirecting logs to consoleniamhcore1-26/+40
Issue-ID: CPS-10 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ib10a813cf33ad634fc9992b3b3a54a20e2323be1
2020-12-17Merge "Associate anchor to schema set"Rishi Chail5-57/+38
2020-12-17Associate anchor to schema setRuslan Kashapov5-57/+38
- db schema updated - db layer tests provided for ancor create and reading by dataspace - anchor model is removed from rest api as extra - api/spi updated to use string references instead of object Issue-ID: CPS-99 Change-Id: Ideeb83fa9e91ec1816308d8327a6589b999c64c5 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-17Adding logging exampleniamhcore1-3/+3
Logging example as part of CPS-10 Issue-ID: CPS-10 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I6428b01d112f27f9e4c9c72ac02236fcc49a6a1c
2020-12-17Decouple YangUtils testClaudio David Gasparini5-69/+95
from YangTextSchemaSourceSet test responsabilities. - Remove deprecated YangUtils method for handle files Issue-ID: CPS-21 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I971f818a55efd9659481bb13476dd67106cecab7
2020-12-16List all modules references in a given dataspace and schemas set nameClaudio David Gasparini7-8/+93
Issue-ID: CPS-21 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I525f780987a201f0c1583367a2c3609488f25290
2020-12-16Merge "Few Sonar Fixes Add spock-spring testing"Toine Siebelink3-24/+4
2020-12-16Few Sonar Fixesputhuparambil.aditya3-24/+4
Add spock-spring testing Issue-ID: CPS-89 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I1e12fb56916e2123fc1d29bdf1524accbb9eeffd
2020-12-16Introduce YangTextSchemaSourceSetClaudio David Gasparini5-29/+188
Common interface among all layers. YangTextSchemaSourceSet responsability is to provide all yang model required information of an YangSchema. Issue-ID: CPS-21 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I9cba490dec25defbddbb3524c6d6c1535bee63bc
2020-12-14Merge "Yang resource name persistence"Toine Siebelink1-6/+5
2020-12-14Yang resource name persistenceRuslan Kashapov1-6/+5
Issue-ID: CPS-125 Change-Id: I5ee2e893dd7c30abe86287150e8bef62966dd909 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-11Remove depredcated code/classesniamhcore6-252/+0
Issue-ID: CPS-93 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I49db5244400d5eb4206d59e73aaf801b7f90c61c
2020-12-10Retrieve All anchors for a given Dataspaceputhuparambil.aditya4-1/+46
Issue-ID: CPS-8 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Idb2e4f83d390f078345e556d89781e0bf4a9a41f
2020-12-10Improve CPS Exception handlingToineSiebelink15-289/+221
- Removing unnecessary level of CPS(Validation)Exception - Moved exception inside spi package - Rename exceptions are per agreed new exception hierarchy - Use new exceptions - Added SchemaSetAlreadDefined Exception - Added AnchorAlreadyDefined Exception - Ensure unique serialVersionUIDs - Fixed CpsAdmin(Persistence)ServiceImplSpec tests (there was a mix-up about what this class was testing) - Replaced exception builder with dedicated exception (constructors) Issue-ID: CPS-8 Change-Id: I9cb80af4951e69ee7b0e99303853955de9d4399f Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2020-12-07Create Common Model objects in SPIniamhcore18-271/+616
Issue-ID: CPS-100 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I8ba54cc5d881d9d5f18b77a54ae28d3dda8412c1
2020-12-07Merge "CPS Exception handling - extending the CPSValidationException"Toine Siebelink2-0/+117
2020-12-07CPS Exception handling - extending the CPSValidationExceptionputhuparambil.aditya2-0/+117
Issue-ID: CPS-8 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Id0728dad26edd79e3853c0d32c8e27dc7bedd369
2020-12-03Schema Set persistence (store) implementationRuslan Kashapov2-3/+110
Issue-ID: CPS-92 Change-Id: I11257726e4f847e3337d8bafad824853e6a458e2 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-02Fix checkstyle violations for "final" keywordClaudio David Gasparini6-13/+13
Issue-ID: CPS-119 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I871a361937ed30047fe89ff2d2b17499cddad56c
2020-12-01Xpath builder on data fragmentationToineSiebelink3-12/+54
Issue-ID: CPS-72 Change-Id: Iab5be2bf0dd7d5540b8880bbf5ab2c6ed9342a9e Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-11-19Adding & Testing method for breaking JSON Data into 'fragments'ToineSiebelink6-45/+324
Improving Bookstore test model https://jira.onap.org/browse/CPS-32 Issue-ID: CPS-32 Change-Id: Ie03e03c041233aa908ab55902c1b387f96eb1c2e Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2020-11-19Fix HTTP response for duplicate moduleniamhcore1-0/+1
Issue-ID: CPS-80 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I27b83d671a9f235a4e926ebe9897add36080fd6f
2020-11-19Fix name inconsistency of classesRishi.Chail4-21/+19
Issue-ID: CPS-90 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I13196084a6ff4a7c4cd23e9e8ba58fa8fffd43bf
2020-11-18VSE: Create an anchor in the given dataspaceRishi.Chail7-16/+168
Issue-ID: CPS-42 https://jira.onap.org/browse/CPS-42 Signed-off-by: Rishi Chail <rishi.chail@est.tech> Change-Id: If67be6f13889808da4d9fe830595766af67e4fdf
2020-11-06Move cps files to root dirJessica Wagantall17-0/+978
Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>