summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-01-21ZIP archive support for multiple YANG files delivery on Schema Set creation ↵Ruslan Kashapov6-27/+197
using REST Issue-ID: CPS-180 Change-Id: I7e78a595593b170b981746e9aed1a7e5a45b202a Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-19Delete schema set - REST and service layersRuslan Kashapov9-8/+127
Issue-ID: CPS-121 Change-Id: I0fe885c79f98c994a8ac25a59b77b99eee4b3076 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-18Delete schema set - persistence layerRuslan Kashapov11-17/+291
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 Siebelink6-3/+284
2021-01-18Merge "Configure coverage per module for cps-service"Toine Siebelink2-1/+5
2021-01-18Persisting data nodes (fragments tree structure)niamhcore6-3/+284
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-15Configure coverage per module for cps-serviceClaudio David Gasparini2-1/+5
Set global minimum to 90 % coverage Set specific minimum for cps-service, once achieved the 90 all modules should respect this minimum Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I29172e47b907d596ffe983ff16429f44e44f8913
2021-01-15Retrieve the SchemaSet resources for an AnchorRishi.Chail11-24/+150
Issue-ID: CPS-135 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: Ib7c17c5180212c7dd3b96cf27797c84166041cf9
2021-01-15SonarQube fixesToineSiebelink3-1/+40
- 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-15Merge "SonarQube fixes"Rishi Chail7-5/+127
2021-01-15Split OpenAPI yaml fileputhuparambil.aditya7-396/+356
1. components like schema, parameters, responses, requestBodies all moved to components.yml (https://swagger.io/docs/specification/components/) 2. CpAdmin.yml includes the configuration details for cpsAdmin APIs 3. CpsData.yml includes the API configuration details for cpsData Issue-ID: CPS-155 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I18fb9b8a2be85d180d4625657aca399dbf60b7bc
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 Gasparini7-13/+13
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 Gasparini4-0/+14
Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I50de5df1bc79ff22c90a5cbe2f1b143164c8abea
2021-01-13Merge "Rename entity artifacts, remove obsolete entities"Toine Siebelink17-374/+183
2021-01-13Rename entity artifacts, remove obsolete entitiesRuslan Kashapov17-374/+183
Issue-ID: CPS-162 Change-Id: I10604e12a01f22930278118830eed53f5a2b159c Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-13Use jacoco aggregate reportsClaudio David Gasparini1-0/+12
Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: If34831469e3cbc47eacf869f811ac1f057318c82
2021-01-13Decouple anchor from fragment in persistence moduleRuslan Kashapov9-56/+150
Issue-ID: CPS-161 Change-Id: Ia446b26ee4eca9281e86bd2be3dd6836aa201597 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-13Merge "Use and configure sonar-maven-plugin"Toine Siebelink1-0/+4
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-12Merge "Enable spotbugs and fix spotbugs warns"Toine Siebelink6-9/+19
2021-01-12Increase CPS Code CoverageRishi.Chail2-1/+3
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 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