summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-01-13Use and configure sonar-maven-pluginClaudio David Gasparini1-0/+4
for support multimodule project Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I5c9ed23069a26ba28461f6c20c9222741333cf3d
2021-01-12Enable spotbugs and fix spotbugs warnsClaudio David Gasparini6-9/+19
Issue-ID: CPS-159 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Iee572fd740689a172ca599123b0751b5e909223a
2021-01-11Merge "Introduce spotbug plugin"Toine Siebelink6-0/+135
2021-01-11Introduce spotbug pluginClaudio David Gasparini6-0/+135
Issue-ID: CPS-159 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I889b3009505421621007031fb99a43c5cd30be82
2021-01-11Rework CpsModulePersistenceServiceClaudio David Gasparini15-41/+160
- 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 Sakoto3-146/+0
2021-01-07Remove deprecated methodClaudio David Gasparini2-23/+0
Issue-ID: CPS-130 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Id774f8b080eeb5dcfd78278ed6ef3831d44db711
2021-01-07Remove depredcated classesniamhcore3-146/+0
Issue-ID: CPS-130 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I00974cc565b7eaa07fdf6a03b074c0317d62e077
2021-01-06Create dataspaceRuslan Kashapov10-0/+162
Issue-ID: CPS-134 Change-Id: Ie7f00f9c322a12a6c2a71c1407f6970a7dd24d2d Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-06WebMVC groovy test cases for AdminRestControllerputhuparambil.aditya1-1/+38
Issue-ID: CPS-129 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Id4bdfb7b6602244ae5abac646a9ec9f68f63cad2
2021-01-06Merge "Create schema set REST API and service level"Toine Siebelink14-70/+378
2021-01-04Merge "Fix test container remain in docker after tests completion. IMPORTANT."Toine Siebelink1-1/+5
2020-12-28Fix test container remain in docker after tests completion. IMPORTANT.Ruslan Kashapov1-1/+5
Issue-ID: CPS-124 Change-Id: I6e423792c1a63d0f828577ca01d32366d2e693bb Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-24Create schema set REST API and service levelRuslan Kashapov14-70/+378
Issue-ID: CPS-123 Change-Id: Ie6d5fd4755454331415af7b80eaf85925efab395 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-17Merge "Redirecting logs to console"Toine Siebelink3-122/+40
2020-12-17Redirecting logs to consoleniamhcore3-122/+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 Chail16-121/+248
2020-12-17Associate anchor to schema setRuslan Kashapov16-121/+248
- 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 exampleniamhcore2-3/+6
Logging example as part of CPS-10 Issue-ID: CPS-10 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I6428b01d112f27f9e4c9c72ac02236fcc49a6a1c
2020-12-17Split the CpsRestController.javaputhuparambil.aditya4-73/+67
1. Changes in openApi.yml tags to cps-admin and cps-data 2. 2 different controllers implementing the corresponding Interfaces generated by the openapi 3. CpsRestExceptionHandler.java modified to handle the exceptions from all the controllers Issue-ID: CPS-129 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: If4da380771093f2a06946340c015ffa5c39e105d
2020-12-17Merge "Enable tests using test containers on jenkins"Toine Siebelink2-21/+9
2020-12-17Enable tests using test containers on jenkinsRuslan Kashapov2-21/+9
Issue-ID: CPS-124 Change-Id: I77f6242490c1b149a3f3cdd78aa2b349ace95896 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
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 Gasparini9-9/+129
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 Siebelink9-51/+52
2020-12-16Few Sonar Fixesputhuparambil.aditya9-51/+52
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 Siebelink6-41/+58
2020-12-14Yang resource name persistenceRuslan Kashapov6-41/+58
Issue-ID: CPS-125 Change-Id: I5ee2e893dd7c30abe86287150e8bef62966dd909 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-11Remove depredcated code/classesniamhcore9-404/+5
Issue-ID: CPS-93 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I49db5244400d5eb4206d59e73aaf801b7f90c61c
2020-12-10Retrieve All anchors for a given Dataspaceputhuparambil.aditya10-4/+86
Issue-ID: CPS-8 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Idb2e4f83d390f078345e556d89781e0bf4a9a41f
2020-12-10Fixing Merge IssueToineSiebelink1-3/+4
Issue-ID: N/A Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I03ccd5f2dd260af6ef28524d8a44114c516dfb19
2020-12-10Merge "Improve CPS Exception handling"Bruno Sakoto22-372/+334
2020-12-10Improve CPS Exception handlingToineSiebelink22-372/+334
- 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-08Merge "Persistence layer testing incl CpsModulePersistenceService testing"Toine Siebelink9-1/+305
2020-12-08Persistence layer testing incl CpsModulePersistenceService testingRuslan Kashapov9-1/+305
Issue-ID: CPS-95 Change-Id: I5eba5f6953f483304ff3864914e7a6c9b2bb3f56 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-07Merge "Add DistributionManagement to checkstyle pom"Toine Siebelink4-6/+19
2020-12-07Create Common Model objects in SPIniamhcore21-355/+709
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 Siebelink3-2/+119
2020-12-07CPS Exception handling - extending the CPSValidationExceptionputhuparambil.aditya3-2/+119
Issue-ID: CPS-8 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Id0728dad26edd79e3853c0d32c8e27dc7bedd369
2020-12-07Merge "Schema Set persistence (store) implementation"Toine Siebelink8-19/+407
2020-12-07Add DistributionManagement to checkstyle pomClaudio David Gasparini4-6/+19
Issue-ID: CPS-119 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I899cdc00895689a8b010106a8371a69859b7f11b
2020-12-03Schema Set persistence (store) implementationRuslan Kashapov8-19/+407
Issue-ID: CPS-92 Change-Id: I11257726e4f847e3337d8bafad824853e6a458e2 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-02Solve issue with Sonar Job coverage jobsClaudio David Gasparini1-5/+7
- Increase coverage need to 20% - use parent parameter surefireArgLine for maven-surefire-plugin - Fix warning platform encoding meanwhile Issue-Id: CPS-122 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I569d0b368a6fa25543be7180b46c4905c4772a5d
2020-12-02Introduce CPS-checkstyleClaudio David Gasparini5-1/+95
new module will define our own java checkstyle. Which should extend any rule desired and not covered already by onap checkstyle Issue-ID: CPS-120 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I956d28770e107658c1b631eb277cff56e13bcf80
2020-12-02Fix checkstyle violations for "final" keywordClaudio David Gasparini13-44/+43
Issue-ID: CPS-119 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I871a361937ed30047fe89ff2d2b17499cddad56c
2020-12-01Merge "REST level exception handling cleanup"Toine Siebelink3-77/+31
2020-12-01Merge "Xpath builder on data fragmentation"Toine Siebelink3-12/+54
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-30REST level exception handling cleanupRuslan Kashapov3-77/+31
- removed direct handling of persistence exceptions - error message model is now described via OpenAPI config Issue-ID: CPS-79 Change-Id: Ib460b020ae9c650e1f81b46ab01dab641c953170 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>