cps.git
3 years agoSplit OpenAPI yaml file 86/116786/8
puthuparambil.aditya [Wed, 13 Jan 2021 12:06:20 +0000 (12:06 +0000)]
Split OpenAPI yaml file

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

3 years agoFix code coverage for sonar 70/116870/1
Claudio David Gasparini [Wed, 13 Jan 2021 12:28:07 +0000 (13:28 +0100)]
Fix code coverage for sonar

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

3 years agoInclude aggregate xml report on sonar coverage 96/116796/2
Claudio David Gasparini [Wed, 13 Jan 2021 16:42:25 +0000 (17:42 +0100)]
Include aggregate xml report on sonar coverage

Issue-ID: CPS-87
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I50de5df1bc79ff22c90a5cbe2f1b143164c8abea

3 years agoMerge "Rename entity artifacts, remove obsolete entities"
Toine Siebelink [Wed, 13 Jan 2021 16:25:54 +0000 (16:25 +0000)]
Merge "Rename entity artifacts, remove obsolete entities"

3 years agoRename entity artifacts, remove obsolete entities 93/116793/1
Ruslan Kashapov [Wed, 13 Jan 2021 14:45:29 +0000 (16:45 +0200)]
Rename entity artifacts, remove obsolete entities

Issue-ID: CPS-162
Change-Id: I10604e12a01f22930278118830eed53f5a2b159c
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoUse jacoco aggregate reports 90/116790/2
Claudio David Gasparini [Wed, 13 Jan 2021 12:47:18 +0000 (13:47 +0100)]
Use jacoco aggregate reports

Issue-ID: CPS-87
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: If34831469e3cbc47eacf869f811ac1f057318c82

3 years agoDecouple anchor from fragment in persistence module 22/116722/5
Ruslan Kashapov [Mon, 11 Jan 2021 14:44:32 +0000 (16:44 +0200)]
Decouple anchor from fragment in persistence module

Issue-ID: CPS-161
Change-Id: Ia446b26ee4eca9281e86bd2be3dd6836aa201597
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoMerge "Use and configure sonar-maven-plugin"
Toine Siebelink [Wed, 13 Jan 2021 09:14:45 +0000 (09:14 +0000)]
Merge "Use and configure sonar-maven-plugin"

3 years agoUse and configure sonar-maven-plugin 77/116777/3
Claudio David Gasparini [Wed, 13 Jan 2021 07:34:00 +0000 (08:34 +0100)]
Use and configure sonar-maven-plugin

for support multimodule project

Issue-ID: CPS-87
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I5c9ed23069a26ba28461f6c20c9222741333cf3d

3 years agoMerge "Enable spotbugs and fix spotbugs warns"
Toine Siebelink [Tue, 12 Jan 2021 15:30:20 +0000 (15:30 +0000)]
Merge "Enable spotbugs and fix spotbugs warns"

3 years agoIncrease CPS Code Coverage 46/116746/3
Rishi.Chail [Tue, 12 Jan 2021 10:39:24 +0000 (10:39 +0000)]
Increase CPS Code Coverage

Disable lombok generated code from coverage.

Issue-ID: CPS-87
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I8f13eb480baddc78c00a5a0c9c0e180252119f2e

3 years agoEnable spotbugs and fix spotbugs warns 24/116724/3
Claudio David Gasparini [Mon, 11 Jan 2021 15:42:30 +0000 (16:42 +0100)]
Enable spotbugs and fix spotbugs warns

Issue-ID: CPS-159
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: Iee572fd740689a172ca599123b0751b5e909223a

3 years agoMerge "Introduce spotbug plugin"
Toine Siebelink [Mon, 11 Jan 2021 14:39:38 +0000 (14:39 +0000)]
Merge "Introduce spotbug plugin"

3 years agoIntroduce spotbug plugin 66/116666/2
Claudio David Gasparini [Fri, 18 Dec 2020 13:37:27 +0000 (14:37 +0100)]
Introduce spotbug plugin

Issue-ID: CPS-159
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I889b3009505421621007031fb99a43c5cd30be82

3 years agoRework CpsModulePersistenceService 68/116668/9
Claudio David Gasparini [Thu, 7 Jan 2021 11:21:38 +0000 (12:21 +0100)]
Rework CpsModulePersistenceService

- remove getModuleReferences
- provide service returning YangTextSchemaSourceSet

Issue-ID: CPS-21
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I61cf6450c8ed8a5154990ea19467e016dc1155b4

3 years agoMerge "Remove depredcated classes"
Bruno Sakoto [Fri, 8 Jan 2021 17:35:49 +0000 (17:35 +0000)]
Merge "Remove depredcated classes"

3 years agoRemove deprecated method 75/116675/2
Claudio David Gasparini [Thu, 7 Jan 2021 13:30:15 +0000 (14:30 +0100)]
Remove deprecated method

Issue-ID: CPS-130
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: Id774f8b080eeb5dcfd78278ed6ef3831d44db711

3 years agoRemove depredcated classes 77/116677/2
niamhcore [Thu, 7 Jan 2021 13:49:01 +0000 (13:49 +0000)]
Remove depredcated classes

Issue-ID: CPS-130

Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I00974cc565b7eaa07fdf6a03b074c0317d62e077

3 years agoCreate dataspace 80/116480/7
Ruslan Kashapov [Thu, 10 Dec 2020 08:49:59 +0000 (10:49 +0200)]
Create dataspace

Issue-ID: CPS-134
Change-Id: Ie7f00f9c322a12a6c2a71c1407f6970a7dd24d2d
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoWebMVC groovy test cases for AdminRestController 76/116476/7
puthuparambil.aditya [Wed, 6 Jan 2021 11:28:08 +0000 (11:28 +0000)]
WebMVC groovy test cases for AdminRestController

Issue-ID: CPS-129
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Id4bdfb7b6602244ae5abac646a9ec9f68f63cad2

3 years agoMerge "Create schema set REST API and service level"
Toine Siebelink [Wed, 6 Jan 2021 11:14:31 +0000 (11:14 +0000)]
Merge "Create schema set REST API and service level"

3 years agoMerge "Fix test container remain in docker after tests completion. IMPORTANT."
Toine Siebelink [Mon, 4 Jan 2021 14:21:44 +0000 (14:21 +0000)]
Merge "Fix test container remain in docker after tests completion. IMPORTANT."

3 years agoFix test container remain in docker after tests completion. IMPORTANT. 23/116523/2
Ruslan Kashapov [Mon, 28 Dec 2020 08:14:41 +0000 (10:14 +0200)]
Fix test container remain in docker after tests completion. IMPORTANT.

Issue-ID: CPS-124
Change-Id: I6e423792c1a63d0f828577ca01d32366d2e693bb
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoCreate schema set REST API and service level 93/116293/13
Ruslan Kashapov [Thu, 10 Dec 2020 08:49:59 +0000 (10:49 +0200)]
Create schema set REST API and service level

Issue-ID: CPS-123
Change-Id: Ie6d5fd4755454331415af7b80eaf85925efab395
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoMerge "Redirecting logs to console"
Toine Siebelink [Thu, 17 Dec 2020 16:04:59 +0000 (16:04 +0000)]
Merge "Redirecting logs to console"

3 years agoRedirecting logs to console 52/116452/2
niamhcore [Thu, 17 Dec 2020 12:53:50 +0000 (12:53 +0000)]
Redirecting logs to console

Issue-ID: CPS-10
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: Ib10a813cf33ad634fc9992b3b3a54a20e2323be1

3 years agoMerge "Associate anchor to schema set"
Rishi Chail [Thu, 17 Dec 2020 12:55:49 +0000 (12:55 +0000)]
Merge "Associate anchor to schema set"

3 years agoAssociate anchor to schema set 91/116191/20
Ruslan Kashapov [Tue, 24 Nov 2020 09:13:43 +0000 (11:13 +0200)]
Associate anchor to schema set

- 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>
3 years agoAdding logging example 28/116428/5
niamhcore [Wed, 16 Dec 2020 15:17:33 +0000 (15:17 +0000)]
Adding logging example

Logging example as part of CPS-10
Issue-ID: CPS-10
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I6428b01d112f27f9e4c9c72ac02236fcc49a6a1c

3 years agoSplit the CpsRestController.java 30/116430/4
puthuparambil.aditya [Wed, 16 Dec 2020 16:51:08 +0000 (16:51 +0000)]
Split the CpsRestController.java

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

3 years agoMerge "Enable tests using test containers on jenkins"
Toine Siebelink [Thu, 17 Dec 2020 11:26:17 +0000 (11:26 +0000)]
Merge "Enable tests using test containers on jenkins"

3 years agoEnable tests using test containers on jenkins 41/116441/7
Ruslan Kashapov [Thu, 17 Dec 2020 08:38:53 +0000 (10:38 +0200)]
Enable tests using test containers on jenkins

Issue-ID: CPS-124
Change-Id: I77f6242490c1b149a3f3cdd78aa2b349ace95896
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoDecouple YangUtils test 04/116404/5
Claudio David Gasparini [Tue, 15 Dec 2020 18:16:15 +0000 (19:16 +0100)]
Decouple YangUtils test

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

3 years agoList all modules references in a given dataspace and schemas set name 80/116280/9
Claudio David Gasparini [Wed, 9 Dec 2020 12:47:16 +0000 (13:47 +0100)]
List all modules references in a given dataspace and schemas set name

Issue-ID: CPS-21
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I525f780987a201f0c1583367a2c3609488f25290

3 years agoMerge "Few Sonar Fixes Add spock-spring testing"
Toine Siebelink [Wed, 16 Dec 2020 13:08:19 +0000 (13:08 +0000)]
Merge "Few Sonar Fixes Add spock-spring testing"

3 years agoFew Sonar Fixes 43/116343/7
puthuparambil.aditya [Mon, 14 Dec 2020 15:46:30 +0000 (15:46 +0000)]
Few Sonar Fixes
Add spock-spring testing

Issue-ID: CPS-89
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I1e12fb56916e2123fc1d29bdf1524accbb9eeffd

3 years agoIntroduce YangTextSchemaSourceSet 34/116334/4
Claudio David Gasparini [Mon, 14 Dec 2020 08:49:13 +0000 (09:49 +0100)]
Introduce YangTextSchemaSourceSet

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

3 years agoMerge "Yang resource name persistence"
Toine Siebelink [Mon, 14 Dec 2020 15:20:58 +0000 (15:20 +0000)]
Merge "Yang resource name persistence"

3 years agoYang resource name persistence 76/116276/4
Ruslan Kashapov [Thu, 10 Dec 2020 08:49:59 +0000 (10:49 +0200)]
Yang resource name persistence

Issue-ID: CPS-125
Change-Id: I5ee2e893dd7c30abe86287150e8bef62966dd909
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoRemove depredcated code/classes 11/116311/1
niamhcore [Fri, 11 Dec 2020 12:37:35 +0000 (12:37 +0000)]
Remove depredcated code/classes

Issue-ID: CPS-93

Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I49db5244400d5eb4206d59e73aaf801b7f90c61c

3 years agoRetrieve All anchors for a given Dataspace 98/115998/11
puthuparambil.aditya [Thu, 10 Dec 2020 16:49:53 +0000 (16:49 +0000)]
Retrieve All anchors for a given Dataspace

Issue-ID: CPS-8
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Idb2e4f83d390f078345e556d89781e0bf4a9a41f

3 years agoFixing Merge Issue 91/116291/1
ToineSiebelink [Thu, 10 Dec 2020 14:38:34 +0000 (14:38 +0000)]
Fixing Merge Issue

Issue-ID: N/A

Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I03ccd5f2dd260af6ef28524d8a44114c516dfb19

3 years agoMerge "Improve CPS Exception handling"
Bruno Sakoto [Thu, 10 Dec 2020 13:29:14 +0000 (13:29 +0000)]
Merge "Improve CPS Exception handling"

3 years agoImprove CPS Exception handling 30/116230/5
ToineSiebelink [Tue, 8 Dec 2020 12:08:31 +0000 (12:08 +0000)]
Improve CPS Exception handling

- 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>
3 years agoMerge "Persistence layer testing incl CpsModulePersistenceService testing"
Toine Siebelink [Tue, 8 Dec 2020 14:06:14 +0000 (14:06 +0000)]
Merge "Persistence layer testing incl CpsModulePersistenceService testing"

3 years agoPersistence layer testing incl CpsModulePersistenceService testing 37/116037/10
Ruslan Kashapov [Tue, 24 Nov 2020 09:13:43 +0000 (11:13 +0200)]
Persistence layer testing incl CpsModulePersistenceService testing

Issue-ID: CPS-95
Change-Id: I5eba5f6953f483304ff3864914e7a6c9b2bb3f56
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoMerge "Add DistributionManagement to checkstyle pom"
Toine Siebelink [Mon, 7 Dec 2020 15:02:15 +0000 (15:02 +0000)]
Merge "Add DistributionManagement to checkstyle pom"

3 years agoCreate Common Model objects in SPI 46/115546/9
niamhcore [Mon, 30 Nov 2020 14:39:28 +0000 (14:39 +0000)]
Create Common Model objects in SPI

Issue-ID: CPS-100

Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I8ba54cc5d881d9d5f18b77a54ae28d3dda8412c1

3 years agoMerge "CPS Exception handling - extending the CPSValidationException"
Toine Siebelink [Mon, 7 Dec 2020 14:04:21 +0000 (14:04 +0000)]
Merge "CPS Exception handling - extending the CPSValidationException"

3 years agoCPS Exception handling - extending the CPSValidationException 48/116148/4
puthuparambil.aditya [Sun, 6 Dec 2020 22:18:16 +0000 (22:18 +0000)]
CPS Exception handling - extending the CPSValidationException

Issue-ID: CPS-8
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Id0728dad26edd79e3853c0d32c8e27dc7bedd369

3 years agoMerge "Schema Set persistence (store) implementation"
Toine Siebelink [Mon, 7 Dec 2020 09:27:25 +0000 (09:27 +0000)]
Merge "Schema Set persistence (store) implementation"

3 years agoAdd DistributionManagement to checkstyle pom 51/116151/1
Claudio David Gasparini [Mon, 7 Dec 2020 07:39:56 +0000 (08:39 +0100)]
Add DistributionManagement to checkstyle pom

Issue-ID: CPS-119
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I899cdc00895689a8b010106a8371a69859b7f11b

3 years agoSchema Set persistence (store) implementation 00/115300/18
Ruslan Kashapov [Tue, 24 Nov 2020 09:13:43 +0000 (11:13 +0200)]
Schema Set persistence (store) implementation

Issue-ID: CPS-92
Change-Id: I11257726e4f847e3337d8bafad824853e6a458e2
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoSolve issue with Sonar Job coverage jobs 43/116043/1
Claudio David Gasparini [Wed, 2 Dec 2020 17:47:09 +0000 (18:47 +0100)]
Solve issue with Sonar Job coverage jobs

- 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

3 years agoIntroduce CPS-checkstyle 65/115965/4
Claudio David Gasparini [Tue, 1 Dec 2020 13:53:40 +0000 (14:53 +0100)]
Introduce CPS-checkstyle

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

3 years agoFix checkstyle violations for "final" keyword 64/115964/3
Claudio David Gasparini [Tue, 1 Dec 2020 14:28:25 +0000 (15:28 +0100)]
Fix checkstyle violations for "final" keyword

Issue-ID: CPS-119
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I871a361937ed30047fe89ff2d2b17499cddad56c

3 years agoMerge "REST level exception handling cleanup"
Toine Siebelink [Tue, 1 Dec 2020 15:34:10 +0000 (15:34 +0000)]
Merge "REST level exception handling cleanup"

3 years agoMerge "Xpath builder on data fragmentation"
Toine Siebelink [Tue, 1 Dec 2020 14:07:08 +0000 (14:07 +0000)]
Merge "Xpath builder on data fragmentation"

3 years agoXpath builder on data fragmentation 75/114875/14
ToineSiebelink [Tue, 10 Nov 2020 16:32:50 +0000 (16:32 +0000)]
Xpath builder on data fragmentation

Issue-ID: CPS-72
Change-Id: Iab5be2bf0dd7d5540b8880bbf5ab2c6ed9342a9e
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoREST level exception handling cleanup 99/115499/2
Ruslan Kashapov [Mon, 30 Nov 2020 07:45:09 +0000 (09:45 +0200)]
REST level exception handling cleanup

- 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>
3 years agoPublish cps-service port with docker compose 81/115281/1
Bruno Sakoto [Mon, 23 Nov 2020 14:52:33 +0000 (09:52 -0500)]
Publish cps-service port with docker compose

Issue-ID: CPS-94
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I10750127640f4953584807b2e0935bbf32c4041b

3 years agoAdding & Testing method for breaking JSON Data into 'fragments' 72/114772/6
ToineSiebelink [Tue, 10 Nov 2020 16:32:50 +0000 (16:32 +0000)]
Adding & Testing method for breaking JSON Data into 'fragments'
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>
3 years agoMerge "Fix code smell"
Toine Siebelink [Thu, 19 Nov 2020 11:52:28 +0000 (11:52 +0000)]
Merge "Fix code smell"

3 years agoMerge "Networking fix for docker compose"
Toine Siebelink [Thu, 19 Nov 2020 11:35:52 +0000 (11:35 +0000)]
Merge "Networking fix for docker compose"

3 years agoFix code smell 98/115098/1
Rishi.Chail [Thu, 19 Nov 2020 11:05:40 +0000 (11:05 +0000)]
Fix code smell

Issue-ID: CPS-89

Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I57fbcc57f0d9c03d5757279429afec107d79f49b

3 years agoFix HTTP response for duplicate module 46/115046/4
niamhcore [Wed, 18 Nov 2020 16:29:15 +0000 (16:29 +0000)]
Fix HTTP response for duplicate module

Issue-ID: CPS-80
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I27b83d671a9f235a4e926ebe9897add36080fd6f

3 years agoFix name inconsistency of classes 70/115070/2
Rishi.Chail [Thu, 19 Nov 2020 06:18:26 +0000 (06:18 +0000)]
Fix name inconsistency of classes

Issue-ID: CPS-90

Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I13196084a6ff4a7c4cd23e9e8ba58fa8fffd43bf

3 years agoIntroduce jacoco-maven-plugin 19/115019/3
Claudio David Gasparini [Wed, 18 Nov 2020 07:38:01 +0000 (08:38 +0100)]
Introduce jacoco-maven-plugin

to enforce the minimum coverage

Issue-ID: CPS-5
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I7552fc65ab78e645c54af993840999e9818816b0

3 years agoVSE: Create an anchor in the given dataspace 67/114767/14
Rishi.Chail [Mon, 9 Nov 2020 03:28:44 +0000 (03:28 +0000)]
VSE: Create an anchor in the given dataspace

Issue-ID: CPS-42
https://jira.onap.org/browse/CPS-42

Signed-off-by: Rishi Chail <rishi.chail@est.tech>
Change-Id: If67be6f13889808da4d9fe830595766af67e4fdf

3 years agoNetworking fix for docker compose 22/115022/3
Ruslan Kashapov [Wed, 18 Nov 2020 08:56:06 +0000 (10:56 +0200)]
Networking fix for docker compose

Issue-ID: CPS-22
JIRA: https://jira.onap.org/browse/CPS-22
Change-Id: If539ede5edc9227bacf06e6d2314c55275199430
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoFixed Project Name in Top Level POM 47/114947/3
ToineSiebelink [Mon, 16 Nov 2020 17:25:29 +0000 (17:25 +0000)]
Fixed Project Name in Top Level POM

Issue-ID: No Jira

Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: If81480f4dde1074c6f0194aa532f962bd85f5557

3 years agoAdd distributionManagement 93/114993/1
Claudio David Gasparini [Tue, 17 Nov 2020 12:46:10 +0000 (13:46 +0100)]
Add distributionManagement

Issue-ID: cps-5
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I7eee9c1c53f8e13c65b9c8daad5c0b2e5139dcda

3 years agoMerge "Fix docker-compose enviroment variables for dbpostgresql service"
Rishi Chail [Tue, 17 Nov 2020 12:01:33 +0000 (12:01 +0000)]
Merge "Fix docker-compose enviroment variables for dbpostgresql service"

3 years agoFix docker-compose enviroment variables for dbpostgresql service 05/114805/4
Claudio David Gasparini [Thu, 12 Nov 2020 07:28:07 +0000 (08:28 +0100)]
Fix docker-compose enviroment variables for dbpostgresql service

Use correct variables names for service, currents variable
names are result of wrong copy&paste

Issue-ID: CPS-22
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: Ibcaf7725175d8ab7e7fbb5199949e3275f849788

3 years agoRename docker profile to lowercase 48/114948/1
Claudio David Gasparini [Mon, 16 Nov 2020 17:50:40 +0000 (18:50 +0100)]
Rename docker profile to lowercase

Issue-ID: CPS-22
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I72b5ef5221e3433909e4576cee57310402473ad5

3 years agoProvide profile for build and deploy docker 46/114946/1
Claudio David Gasparini [Mon, 16 Nov 2020 16:37:15 +0000 (17:37 +0100)]
Provide profile for build and deploy docker

By default profile will be disable

Issue-ID: CPS-22
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I4a605becf195b3f968d71a6ca1a0fd26e9c0a7be

3 years agoFix init db schema script 66/114866/3
Bruno Sakoto [Fri, 13 Nov 2020 04:17:20 +0000 (23:17 -0500)]
Fix init db schema script

Issue-ID: CPS-82
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I8c719935b78aaeab9d2f7a0af91b2192df897eb1

3 years agoFixing errors in openapi.yaml 86/114886/2
niamhcore [Fri, 13 Nov 2020 15:29:27 +0000 (15:29 +0000)]
Fixing errors in openapi.yaml
https://jira.onap.org/browse/CPS-83

Issue-ID: CPS-83

Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I665b829b65cebcec6f03951aa1c8a91f59f2269b

3 years agoMerge "Dockerize the service"
Toine Siebelink [Wed, 11 Nov 2020 08:41:49 +0000 (08:41 +0000)]
Merge "Dockerize the service"

3 years agoMerge "Exception handling on REST unit test"
Toine Siebelink [Wed, 11 Nov 2020 08:41:20 +0000 (08:41 +0000)]
Merge "Exception handling on REST unit test"

3 years agoDockerize the service 63/114763/1
Claudio David Gasparini [Tue, 10 Nov 2020 14:11:42 +0000 (15:11 +0100)]
Dockerize the service

- enable push of docker image to repository

Issue-ID: CPS-22
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I8d10334f1d4e9528a8ec09a81692639efc3b02f9

3 years agoDockerize the service 80/114680/4
Claudio David Gasparini [Sun, 8 Nov 2020 21:18:36 +0000 (22:18 +0100)]
Dockerize the service

- automatically generate docker image
- provide docker-compose to start the service
  together with dockerized postgres db

Issue-ID: CPS-22
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I846d14e87de50bfb1411e0c9b49e9f6c6cc8ebda

3 years agoFix broken branch by adding missing dependency 79/114679/2
Claudio David Gasparini [Sun, 8 Nov 2020 21:31:43 +0000 (22:31 +0100)]
Fix broken branch by adding missing dependency

- commons-lang3

Move .gitignore to correct folder

Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: Ifb24f89c798c1e1f2a6bb8436562a2f98d044b57

3 years agoException handling on REST unit test 89/114689/1
Ruslan Kashapov [Mon, 9 Nov 2020 11:04:33 +0000 (13:04 +0200)]
Exception handling on REST unit test

Issue-ID: CPS-41
JIRA: https://jira.onap.org/browse/CPS-41
Change-Id: Ieda9c14b7e9c5962bf0b39c168de4c5cc7929d80
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoMove cps files to root dir
Jessica Wagantall [Fri, 6 Nov 2020 18:20:47 +0000 (10:20 -0800)]
Move cps files to root dir

Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
3 years agoMerge branch 'cps_poc' of /home/jwagantall/linuxfoundation/onap/IT-20983/origin
Jessica Wagantall [Fri, 6 Nov 2020 18:16:06 +0000 (10:16 -0800)]
Merge branch 'cps_poc' of /home/jwagantall/linuxfoundation/onap/IT-20983/origin

Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
3 years agoMerge "Spring Boot Actuator enabled on /manage" into cps_poc
Toine Siebelink [Fri, 6 Nov 2020 16:45:55 +0000 (16:45 +0000)]
Merge "Spring Boot Actuator enabled on /manage" into cps_poc

3 years agoMerge "Swagger-UI using Spring framework" into cps_poc
Toine Siebelink [Fri, 6 Nov 2020 16:34:36 +0000 (16:34 +0000)]
Merge "Swagger-UI using Spring framework" into cps_poc

3 years agoSwagger-UI using Spring framework
puthuparambil.aditya [Thu, 5 Nov 2020 11:34:41 +0000 (11:34 +0000)]
Swagger-UI using Spring framework

JIRA: https://jira.onap.org/browse/CCSDK-2895

Issue-ID: CCSDK-2895
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I6e9e4b93aec25b0dd7a1acd3612140de47320d3c

3 years agoException handling on REST interface
Ruslan Kashapov [Wed, 28 Oct 2020 14:53:58 +0000 (16:53 +0200)]
Exception handling on REST interface

- customisable error message
- unified approach for exception handling
- unified approach for error message delivery

Change-Id: Iecb46a119008fdae284fc730f459e729168e92a7
Issue-ID: CPS-41
JIRA: https://jira.onap.org/browse/CPS-41
Signed-off-by: Ruslan Kashapov <ruslan.kashapov.bf@gmail.com>
3 years agoSpring Boot Actuator enabled on /manage
Ruslan Kashapov [Thu, 29 Oct 2020 09:39:31 +0000 (11:39 +0200)]
Spring Boot Actuator enabled on /manage

Change-Id: I39970e920ae9b10aed038bc3da7a59b2ae370cf2
Issue-ID: CPS-16
JIRA: https://jira.onap.org/browse/CPS-16
Signed-off-by: Ruslan Kashapov <ruslan.kashapov.bf@gmail.com>
3 years agoMerge "Verify new CPS project setup - Commit code through Nordix - Check if CI jobs...
Toine Siebelink [Thu, 5 Nov 2020 13:03:59 +0000 (13:03 +0000)]
Merge "Verify new CPS project setup - Commit code through Nordix - Check if CI jobs are triggered"

3 years agoMerge "Automation adds .gitreview"
Toine Siebelink [Thu, 5 Nov 2020 12:46:48 +0000 (12:46 +0000)]
Merge "Automation adds .gitreview"

3 years agoVerify new CPS project setup 24/114624/1
ToineSiebelink [Thu, 5 Nov 2020 09:14:25 +0000 (09:14 +0000)]
Verify new CPS project setup
- Commit code through Nordix
- Check if CI jobs are triggered

JIRA: https://jira.onap.org/browse/CCSDK-2953

Issue-ID: CCSDK-2953

Change-Id: Ifef6b8cb31c7e1e1e5475d46a697baa051fe6d61
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
3 years agoSwagger codegen using Spring framework
puthuparambil.aditya [Mon, 2 Nov 2020 11:31:39 +0000 (11:31 +0000)]
Swagger codegen using Spring framework

1. Pom.xml updated to generate API code using Swagger codegen.
2. Moved the createModule code to the method implemented by Swagger.

JIRA: https://jira.onap.org/browse/CCSDK-2897

Issue-ID: CCSDK-2897
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: Iadd3dc0402f06a597a179148fd5f43e0fe7c48f6
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
3 years agoReestructore cps project
Claudio David Gasparini [Mon, 26 Oct 2020 09:12:10 +0000 (10:12 +0100)]
Reestructore cps project

+ Introduce BOM artifacts
+ decoupling of root from parent

new artifacts introduced:

cps-bom: contains dependencyManagement declarations of all published components
cps-dependencies: contains dependencyManagement declarations of upstream versions
cps-parent: parent of cps project / decoupling of root project pom responsabilities

JIRA: CCSDK-2946
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I752c19dea6c92f939f0a313f6a93f13a489cdef0
Change-Id: Iafb4eee7d1b20aa4e7fcca0c0027f5a0605e035d

3 years agoIS: Remove Jersey and Use Spring Framework
Rishi Chail [Fri, 30 Oct 2020 12:58:54 +0000 (12:58 +0000)]
IS: Remove Jersey and Use Spring Framework

Issue-ID: CCSDK-2959
Link: https://jira.onap.org/browse/CCSDK-2959
Signed-off-by: Rishi Chail <rishi.chail@est.tech>
Change-Id: Ie87d2fe53bffcaf2af0229961139910faeb36e26

3 years agoAutomation adds INFO.yaml 05/114305/2
LF Jenkins CI [Thu, 29 Oct 2020 17:48:30 +0000 (17:48 +0000)]
Automation adds INFO.yaml

Issue-ID: CIMAN-33

Change-Id: Ibf756cf851eee1f02baa32fced3ceecb5718ba80
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
3 years agoAutomation adds .gitreview 04/114304/2
LF Jenkins CI [Thu, 29 Oct 2020 17:48:21 +0000 (17:48 +0000)]
Automation adds .gitreview

Issue-ID: CIMAN-33

Change-Id: I04210f6ff0b18d4ca9c6333b0382146df43b88d4
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
3 years agoInitial empty repository
LF Jenkins CI [Thu, 29 Oct 2020 17:48:16 +0000 (17:48 +0000)]
Initial empty repository