cps.git
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

3 years agoChanging variable types for api
niamhcore [Tue, 27 Oct 2020 15:49:30 +0000 (15:49 +0000)]
Changing variable types for api

Link: https://jira.onap.org/browse/CCSDK-2907
Issue-ID: CCSDK-2907

Change-Id: Ib473370222b1e5b2c27f4a6bcf01b2d8ef523c9b

3 years agoVSE: Upload modules (a model file) to a (new) dataspace
puthuparambil.aditya [Tue, 20 Oct 2020 11:23:34 +0000 (12:23 +0100)]
VSE: Upload modules (a model file) to a (new) dataspace

1. Schema.sql modified to include modules and json_data tables which can be removed after the PoC
2. URI changed as per the proposal to '/dataspaces/{dataspace_name}/modules'
3. Dataspace name corresponding to a model is passed as a parameter.
4. In case the dataspace doesnt exist in the dataspace table, a new entry for the passed dataspace is created.
5. The corresponding dataspace_id is also stored as  a reference in the modules table.
6. Test case for Rest API will be pushed as another review.

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

Issue-ID: CCSDK-2897
Change-Id: Ic9caa39b5a7afca28c0365cdb4f492848d0ead3e
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
3 years agoAdding swagger codegen
niamhcore [Mon, 19 Oct 2020 11:48:06 +0000 (12:48 +0100)]
Adding swagger codegen

Link: https://jira.onap.org/browse/CCSDK-2907
Issue-ID: CCSDK-2907
Signed-off-by: Niamh Core <niamh.core@est.tech>
Change-Id: I07c27cd1709f9bc19d67443daaf0c9c59507a5a0

3 years agoVSE: Introduce entities for fragment and dataspace
Rishi Chail [Wed, 21 Oct 2020 11:04:16 +0000 (12:04 +0100)]
VSE: Introduce entities for fragment and dataspace

Issue-ID: CCSDK-2898
https://jira.onap.org/browse/CCSDK-2898

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

3 years agoMerge "Add swagger-ui" into cps_poc
Toine Siebelink [Tue, 20 Oct 2020 10:12:06 +0000 (10:12 +0000)]
Merge "Add swagger-ui" into cps_poc

3 years agoAdd swagger-ui
Bruno Sakoto [Wed, 7 Oct 2020 02:09:58 +0000 (22:09 -0400)]
Add swagger-ui

It is available at http://{{host}}:{{port}}/swagger-ui/index.html

Link: https://jira.onap.org/browse/CCSDK-2895
Issue-ID: CCSDK-2895
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I5e8e39c90354506206bc43dfafbc11d0e62eee28

3 years agoVSE: Delete a JSON Object
Rishi Chail [Thu, 15 Oct 2020 07:40:23 +0000 (08:40 +0100)]
VSE: Delete a JSON Object

Issue-ID: CCSDK-2760
https://jira.onap.org/browse/CCSDK-2760

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

3 years agoIS: Correct REST base Url
Rishi Chail [Fri, 9 Oct 2020 08:00:24 +0000 (09:00 +0100)]
IS: Correct REST base Url

Issue-ID: CCSDK-2870
https://jira.onap.org/browse/CCSDK-2870

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

3 years agoDM: Introduce Postgres and Script generated Schema
Rishi Chail [Thu, 8 Oct 2020 11:33:33 +0000 (12:33 +0100)]
DM: Introduce Postgres and Script generated Schema

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

3 years agoAbandoned Review because of git issues;
niamhcore [Thu, 8 Oct 2020 13:19:23 +0000 (14:19 +0100)]
Abandoned Review because of git issues;
https://gerrit.nordix.org/#/c/onap/ccsdk/features/+/6170/

Change-Id: I63d0d460e120b12851e0b3b460639ee4c34c4e0c

3 years agoAdding tests for CpServiceImpl
niamhcore [Mon, 5 Oct 2020 09:10:44 +0000 (10:10 +0100)]
Adding tests for CpServiceImpl

Issue-ID: CCSDK-2757

Link: https://jira.onap.org/browse/CCSDK-2757
Change-Id: I153642c837a0797faab3e8a324ff77a673582e91

3 years agoFixing checkstyle issues
ToineSiebelink [Mon, 5 Oct 2020 09:29:14 +0000 (10:29 +0100)]
Fixing checkstyle issues

Issue-ID: CCSDK-2757
Link: https://jira.onap.org/browse/CCSDK-2757
Change-Id: I933f1c44f7525aeb57916b2db63ea0b96e457368

3 years agoDM: Enable Swagger
Rishi Chail [Fri, 2 Oct 2020 08:33:35 +0000 (09:33 +0100)]
DM: Enable Swagger

Issue-ID: CCSDK-2754

https: //jira.onap.org/browse/CCSDK-2754

Change-Id: I20f8ab029082bb0012d5933f47d15a2f482ee378
Signed-off-by: Rishi Chail <rishi.chail@est.tech>
3 years agointroducing YangUtils with tests
ToineSiebelink [Thu, 1 Oct 2020 13:43:49 +0000 (14:43 +0100)]
introducing YangUtils with tests

Issue-ID: CCSDK-2757
Link: https://jira.onap.org/browse/CCSDK-2757
Change-Id: I3c396ef1e29e9f30027702f3d36ee3bbb1de9b8e

3 years agoRevert "Introduce swagger configuration"
Bruno Sakoto [Fri, 2 Oct 2020 04:08:27 +0000 (00:08 -0400)]
Revert "Introduce swagger configuration"

This reverts commit 0cc57ba05cc474007c91589242bfe7fc8afa9946.

3 years agoIntroduce swagger configuration
Bruno Sakoto [Fri, 2 Oct 2020 03:47:01 +0000 (23:47 -0400)]
Introduce swagger configuration

Issue-ID: CCSDK-2754
Change-Id: I22bd50431ad24202dc84dd982bf7e7d2388ee981
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
3 years agoSet up Groovy & Spock Test Framework
ToineSiebelink [Wed, 30 Sep 2020 15:11:55 +0000 (16:11 +0100)]
Set up Groovy & Spock Test Framework
Add basic first test (CpServiceImplSpec) for illustartion purposes

Issue-ID: CCSDK-2786
Link: https://jira.onap.org/browse/CCSDK-2786
Change-Id: Ibda81289fb5c9a57474f242e26847b8464dc6b59

3 years agoStore and Validate a JSON Object
niamhcore [Fri, 25 Sep 2020 13:53:25 +0000 (14:53 +0100)]
Store and Validate a JSON Object

Issue-ID: CCSDK-2757
Link: https://jira.onap.org/browse/CCSDK-2757
Change-Id: Icfdbaec1a853ba5ba4a22742fb3091fc71a11d71

Change-Id: I80777bb2692e6e7f7594f787ec480817e8df0a35

3 years agoIS: Add CheckStyle goal to Maven
Rishi Chail [Mon, 28 Sep 2020 11:30:58 +0000 (12:30 +0100)]
IS: Add CheckStyle goal to Maven

Issue-ID: CCSDK-2746

https: //jira.onap.org/browse/CCSDK-2746
Change-Id: I0442b62cbecb16c979a43d3d5d68fdb1c62a2276

3 years agoAdding upload and validation of yang model
niamhcore [Wed, 23 Sep 2020 10:36:33 +0000 (11:36 +0100)]
Adding upload and validation of yang model

Issue-ID: CCSDK-2718

https: //jira.onap.org/browse/CCSDK-2718
Change-Id: I919525595e28d46f20c1adb560232c31025687e3

3 years agoDP: Project Structure and basic conf
Rishi Chail [Mon, 21 Sep 2020 10:27:32 +0000 (11:27 +0100)]
DP: Project Structure and basic conf

Issue-ID: CCSDK-2749

https: //jira.onap.org/browse/CCSDK-2749

Signed-off-by: Rishi Chail <rishi.chail@est.tech>
Change-Id: Ib2139263be435414855e2f487e96c2122f21c978
Signed-off-by: Rishi Chail <rishi.chail@est.tech>
3 years agoDP: [Spike] Project Structure and basic conf
Rishi Chail [Wed, 16 Sep 2020 14:23:53 +0000 (15:23 +0100)]
DP: [Spike] Project Structure and basic conf

Issue-ID: CCSDK-2749

https: //jira.onap.org/browse/CCSDK-2749

Change-Id: I668f97629a5d514e6b43da67063d1e1bdf8e49da
Signed-off-by: Rishi Chail <rishi.chail@est.tech>
3 years agoAdd dedicated folder for CPS PoC
Bruno Sakoto [Mon, 20 Jul 2020 19:33:54 +0000 (15:33 -0400)]
Add dedicated folder for CPS PoC

Issue-ID: CCSDK-2510
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ib9017d57860ac6e8e5c719d54bcb5905b52dffd8