cps.git
2 years agoEditing of Nordix Licenses to ONAP guidelines 20/122520/5
lukegleeson [Wed, 7 Jul 2021 14:25:30 +0000 (15:25 +0100)]
Editing of Nordix Licenses to ONAP guidelines

Issue-ID: CPS-489
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I415534515b3d8325f41d5dc1d02c6e0ae70c6cf1

2 years agoMerge "Support concurrent requests to create schema sets"
Niamh Core [Mon, 12 Jul 2021 15:18:57 +0000 (15:18 +0000)]
Merge "Support concurrent requests to create schema sets"

2 years agoSupport concurrent requests to create schema sets 80/121980/10
Bruno Sakoto [Wed, 16 Jun 2021 15:47:54 +0000 (11:47 -0400)]
Support concurrent requests to create schema sets

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

2 years agoFix sonar code smells 36/122536/1
Bruno Sakoto [Fri, 9 Jul 2021 10:29:52 +0000 (06:29 -0400)]
Fix sonar code smells

* Replace lambda with a method reference
  https://sonarcloud.io/project/issues?id=onap_cps&open=AXqEcoyndYfHjsbjSdb5

* Block of commented-out lines of code should be removed
  https://sonarcloud.io/project/issues?id=onap_cps&open=AXqEco0ldYfHjsbjSdb6

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

2 years agoMerge "Remove unnecessary version properties"
Bruno Sakoto [Thu, 8 Jul 2021 12:25:59 +0000 (12:25 +0000)]
Merge "Remove unnecessary version properties"

2 years agoMerge "Addition of missing license to INFO.yaml"
Toine Siebelink [Thu, 8 Jul 2021 08:55:38 +0000 (08:55 +0000)]
Merge "Addition of missing license to INFO.yaml"

2 years agoMerge "Addition of missing licenses to files"
Bruno Sakoto [Wed, 7 Jul 2021 15:38:52 +0000 (15:38 +0000)]
Merge "Addition of missing licenses to files"

2 years agoRemove unnecessary version properties 01/122501/1
shivasubedi [Wed, 7 Jul 2021 15:30:36 +0000 (16:30 +0100)]
Remove unnecessary version properties

Issue-ID: CPS-495
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
Change-Id: I05fa719442c1ebb267cf50a0122055f94958144a

2 years agoAddition of missing license to INFO.yaml 00/122500/1
lukegleeson [Wed, 7 Jul 2021 15:23:19 +0000 (16:23 +0100)]
Addition of missing license to INFO.yaml

Issue-ID: CPS-467
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I6346972ca44e809dd444c79ebf6b9d15dc8aefca

2 years agoMerge "Sending Data Updated Event to kafka"
Toine Siebelink [Wed, 7 Jul 2021 13:39:00 +0000 (13:39 +0000)]
Merge "Sending Data Updated Event to kafka"

2 years agoSending Data Updated Event to kafka 05/121905/21
Renu Kumari [Fri, 28 May 2021 03:16:32 +0000 (23:16 -0400)]
Sending Data Updated Event to kafka

Issue-ID: CPS-374
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I05fedcace42b84575411df26c586788bffe6b846

2 years agoAddition of missing licenses to files 34/122434/4
lukegleeson [Mon, 5 Jul 2021 13:59:49 +0000 (14:59 +0100)]
Addition of missing licenses to files

Issue-ID: CPS-467
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: Id39fa218b5d56f2350133dac8df38f75e6d42638

2 years agoMerge "Adding Layered Architecture test and Arch Unit Library for CPS-CORE"
Niamh Core [Tue, 6 Jul 2021 13:59:03 +0000 (13:59 +0000)]
Merge "Adding Layered Architecture test and Arch Unit Library for CPS-CORE"

2 years agoMerge "Added parent is null condition when searching for root fragments"
Bruno Sakoto [Tue, 6 Jul 2021 10:47:15 +0000 (10:47 +0000)]
Merge "Added parent is null condition when searching for root fragments"

2 years agoAdding Layered Architecture test and Arch Unit Library for CPS-CORE 08/122108/10
DylanB95EST [Tue, 22 Jun 2021 15:57:16 +0000 (16:57 +0100)]
Adding Layered Architecture test and Arch Unit Library for CPS-CORE

Adding Layered Architecture Test

Will Add Depedency Test at later time after potential refactoring of
project structure

Adding Archunit property file to avoid Store Initialization Exception

Issue-ID: CPS-380

Change-Id: I364294a46b1ab78b86a9c271856805fce09f75a0
Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2 years agoAdded parent is null condition when searching for root fragments 44/122444/1
Renu Kumari [Wed, 30 Jun 2021 09:50:50 +0000 (05:50 -0400)]
Added parent is null condition when searching for root fragments

Issue-ID: CPS-479
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I25fd91936e1b08cfc3bff69c7169392e724ed156

2 years agoReview docker compose 06/122406/1
Bruno Sakoto [Fri, 2 Jul 2021 02:28:17 +0000 (22:28 -0400)]
Review docker compose

* Fix image names for cps standalone and ncmp standalone services
* Use default db authentication if env variables are not defined

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

2 years agoMerge "Update CPS ran model schema to the latest version"
Toine Siebelink [Wed, 30 Jun 2021 12:55:17 +0000 (12:55 +0000)]
Merge "Update CPS ran model schema to the latest version"

2 years agoMerge "Fixing typo in anchor name"
Toine Siebelink [Wed, 30 Jun 2021 10:11:42 +0000 (10:11 +0000)]
Merge "Fixing typo in anchor name"

2 years agoFixing typo in anchor name 61/122361/1
niamhcore [Wed, 30 Jun 2021 09:10:24 +0000 (10:10 +0100)]
Fixing typo in anchor name

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

2 years agoReplaced nexusproxy property with onap.nexus.url 06/122006/19
ToineSiebelink [Wed, 30 Jun 2021 07:38:51 +0000 (08:38 +0100)]
Replaced nexusproxy property with onap.nexus.url

Also removed redefined redefined nexusproxy and distribution Management from poms
Update ReadMe accordingly

Issue-ID: CPS-435

Change-Id: I02831e737587a1a16e9743773f2840c209d1fffd
Signed-off-by: mkerrigan <michael.kerrigan@est.tech>
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2 years agoUpdate CPS ran model schema to the latest version 49/121949/8
shivasubedi [Wed, 16 Jun 2021 10:42:52 +0000 (11:42 +0100)]
Update CPS ran model schema to the latest version

 - file name updates
 - fixed sql statements in the forward and rollback files
 - Updated to use insert statements instead of update statements
 - Removing liquibase steps

Issue-ID: CPS-451
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
Change-Id: I3e08574837dfa0f16cf06a16b07de24788923411

2 years agoMerge "create yang model for dmi-registry"
Niamh Core [Thu, 24 Jun 2021 14:24:56 +0000 (14:24 +0000)]
Merge "create yang model for dmi-registry"

2 years agocreate yang model for dmi-registry 17/121517/8
tragait [Mon, 24 May 2021 12:12:36 +0000 (13:12 +0100)]
create yang model for dmi-registry

Signed-off-by: tragait <rahul.tyagi@est.tech>
Issue-ID: CPS-352
Issue-ID: CPS-353
Change-Id: I57637aa58f8b3b5f8faaca30dc9006e7547b0144

2 years agoMerge "Updating release notes for update datanode leaves limitaions"
Bruno Sakoto [Wed, 23 Jun 2021 13:05:37 +0000 (13:05 +0000)]
Merge "Updating release notes for update datanode leaves limitaions"

2 years agoUpdating release notes for update datanode leaves limitaions 75/122075/2
niamhcore [Mon, 21 Jun 2021 13:44:01 +0000 (14:44 +0100)]
Updating release notes for update datanode leaves limitaions

Issue-ID: CPS-464 & CPS-465
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: Ia7f3a0f6e1e92125925471c6d1ad8e26069e4e1c

2 years agoSonar Qube code smell clean up 69/122069/2
DylanB95EST [Mon, 21 Jun 2021 11:19:26 +0000 (12:19 +0100)]
Sonar Qube code smell clean up

Declaring Local Variable with Var Instead

Issue-ID: CPS-475

Change-Id: I94bb6d4a3234cd9abeba5a495bd2d0439c21c1df
Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2 years agoMerge "Missing licence info added in pom file"
Bruno Sakoto [Fri, 18 Jun 2021 19:18:00 +0000 (19:18 +0000)]
Merge "Missing licence info added in pom file"

2 years agoMerge "Updating exception and explanation for update node leaves"
Bruno Sakoto [Fri, 18 Jun 2021 19:12:12 +0000 (19:12 +0000)]
Merge "Updating exception and explanation for update node leaves"

2 years agoUpdating exception and explanation for update node leaves 37/122037/2
niamhcore [Thu, 17 Jun 2021 14:27:55 +0000 (15:27 +0100)]
Updating exception and explanation for update node leaves

Issue-ID: CPS-464 & CPS-465
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I1880ceee66d89c49d039011163fa74bb7da19f25

2 years agoMissing licence info added in pom file 54/121954/5
shivasubedi [Wed, 16 Jun 2021 13:43:18 +0000 (14:43 +0100)]
Missing licence info added in pom file

- Added licence info to files that were missing it
- Fixed licence info to match with the creator of the file

Issue-ID: CPS-467
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
Change-Id: I1c0eaedb2c87743a61a1cd58f33b0d0d04b3a977

2 years agoMerge "Add committers"
Toine Siebelink [Thu, 17 Jun 2021 15:09:37 +0000 (15:09 +0000)]
Merge "Add committers"

2 years ago[OpenAPI] Implemented example as per example wiki page for getting anchors based... 47/121747/15
JosephKeenan [Tue, 8 Jun 2021 12:16:37 +0000 (13:16 +0100)]
[OpenAPI] Implemented example as per example wiki page for getting anchors based on dataspace

-moved components from cpsAdmin.yml to components.yml
-refactored variable for anchor details list in AdminRestController.java
-reintrocuded paramter for anchorsByDataspace
-refactored variables in AdminRestController.java getAnchors() to be
more intuitive
-refactored AdminRestController.java to use modelmapper and removed
extra conversion code. Also modified AdminRestControllerSpec.groovy to
use ModelMapper as Spy rather than a Mock
-added responses for getAnchor & getSchemaSet
-added javadoc for AdminRestController.java public methods
-refactored schemaDetils pararmeter from dataSpasceName to name for
CSOT tests & added some code review comments

Issue-ID: CPS-429

Change-Id: I01d4113313c9a23d9a7e0e96e46b90f9ac767f24
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2 years agoAdd committers 65/121865/2
Bruno Sakoto [Fri, 11 Jun 2021 01:22:11 +0000 (21:22 -0400)]
Add committers

* Aditya Puthuparambil
  https://wiki.onap.org/display/DW/Committer+Promotion+Request+-+Aditya+Puthuparambil

* Niamh Core
  https://wiki.onap.org/display/DW/Committer+Promotion+Request+-+Niamh+Core

* Renu Kumari
  https://wiki.onap.org/display/DW/Committer+Promotion+Request+-+Renu+Kumari

Remove committer

* Rishi Chail

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

2 years agoMerge "Add json schema for events"
Bruno Sakoto [Thu, 10 Jun 2021 14:04:20 +0000 (14:04 +0000)]
Merge "Add json schema for events"

2 years agoReplaced isEmpty with not hasText 49/121749/3
mkerrigan [Tue, 8 Jun 2021 11:58:08 +0000 (12:58 +0100)]
Replaced isEmpty with not hasText

Sonarcloud reported that isEmpty is deprecated.Not hasText will give the
same behavior

Issue-ID: CPS-89
Change-Id: I45b1723dad414bfc08d4ed33931d6c21eb5e6185
Signed-off-by: mkerrigan <michael.kerrigan@est.tech>
2 years agoInclude cps-path-parser under jacoco xml report paths 01/121701/2
Claudio D. Gasparini [Fri, 4 Jun 2021 13:30:59 +0000 (15:30 +0200)]
Include cps-path-parser under jacoco xml report paths

Issue-ID: CPS-376
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com>
Change-Id: I0c580dad1fb40a3462bd6fcdaffb7f31a643fd48

2 years agoAdd json schema for events 30/121530/10
Bruno Sakoto [Tue, 18 May 2021 20:02:30 +0000 (16:02 -0400)]
Add json schema for events

Issue-ID: CPS-348
Issue-ID: CPS-373
Change-Id: Ia0d31f6393e90cb0d5370ca6a78dfbe8817545ae
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
2 years agoImprove error handling on unexpected 'postfix' 88/121688/1
ToineSiebelink [Thu, 3 Jun 2021 15:05:08 +0000 (16:05 +0100)]
Improve error handling on unexpected 'postfix'

Issue-ID: CPS-450
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: Ia8be460f4235f7f0c24498f861dbe42137111772

2 years agoMerge "fix clm job critical issues"
Toine Siebelink [Tue, 1 Jun 2021 16:32:12 +0000 (16:32 +0000)]
Merge "fix clm job critical issues"

2 years agofix clm job critical issues 07/121607/2
tragait [Tue, 1 Jun 2021 09:08:17 +0000 (10:08 +0100)]
fix clm job critical issues

Issue-ID: CPS-400
Signed-off-by: tragait <rahul.tyagi@est.tech>
Change-Id: If5c6bb7ceb16a63191e60431b297a4a29aef2536

2 years agoFix last SQ violation 18/121618/1
ToineSiebelink [Tue, 1 Jun 2021 12:47:10 +0000 (13:47 +0100)]
Fix last SQ violation

Issue-ID: CPS-89
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I9621a60e89574bbb8b222b7342c5d387c302afdb

2 years agoIntroducing Antlr4 for cpsPath parsing 03/121503/9
ToineSiebelink [Thu, 20 May 2021 15:44:21 +0000 (16:44 +0100)]
Introducing Antlr4 for cpsPath parsing

-created new module for cpPathParser
-added antlr rule for cpsPathWithSingleLeafCondition
-added antlr rule for cpsPathWithDescendant (and with leaf conditions)
-added antlr rule for ancestor axis
-added unit test (copied from existing CpsPathQuerySpec)
-udpated cps-ri to use new cpPathQuery from parser module
-'imported' lexer rules from publix xPath grammar
-Re-used existing CpsPathException but conversion happens in cps-ri to prevent additional dependency in cps-path-parser module

Issue-ID: CPS-376

Change-Id: I2c5df98969402cbf69f6573c52705879450ce606
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2 years agoLoad only required components in the application contexts 60/121560/6
Renu Kumari [Wed, 26 May 2021 12:47:52 +0000 (08:47 -0400)]
Load only required components in the application contexts

Issue-ID: CPS-434
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: Iacc12946495b9e6ec42b4b7d4e3b5b010fecceb5

2 years agoAligning differing openAPI paths (cps-rest & ncmp-rest) 21/121521/3
JosephKeenan [Mon, 24 May 2021 16:42:23 +0000 (17:42 +0100)]
Aligning differing openAPI paths (cps-rest & ncmp-rest)

Issue-ID: CPS-427

Change-Id: I1d6853419923994feed4d9c38482818f17202e36
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2 years agoReplace list-node content (part 2): CPS REST layer 72/121372/3
Ruslan Kashapov [Fri, 14 May 2021 11:41:05 +0000 (14:41 +0300)]
Replace list-node content (part 2): CPS REST layer

Issue-ID: CPS-362
Change-Id: I46dc9b48758fa10a47a648aa4e6a63775466234b
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2 years agoReplace list-node content (part 1): CPS Service and persistence layers 68/121368/4
Ruslan Kashapov [Fri, 14 May 2021 09:04:34 +0000 (12:04 +0300)]
Replace list-node content (part 1): CPS Service and persistence layers

Issue-ID: CPS-362
Change-Id: I669c9fc6ef67c1992fe95e17a765f0c616b00f7e
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2 years agoAdding Atomic Grouping to Discard backtracking once matched as part of Sonar Security... 14/121514/1
DylanB95EST [Mon, 24 May 2021 09:04:49 +0000 (10:04 +0100)]
Adding Atomic Grouping to Discard backtracking once matched as part of Sonar Security Hotspot Fix

Issue-ID: CPS-89

Commit-ID: b23ee774ae2a2305f1feea747931879588f9cada

Change-Id: I1f9d54246370b0c0bc8ec3d167eaed27ad58471b
Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2 years agoAdding Possessive Quantifier to Regex to prevent backtracking 00/121500/1
DylanB95EST [Fri, 21 May 2021 10:55:41 +0000 (11:55 +0100)]
Adding Possessive Quantifier to Regex to prevent backtracking

Issie-ID: CPS-89

Commit-ID: 22dbd115593cd429b1b75af2000310ce79cfbf10

Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
Change-Id: I12f8aec77e9a4faa62234b7108617d47e4ed63fd

2 years agoUpdate SonarQube Code Smell 72/121472/2
JosephKeenan [Wed, 19 May 2021 14:04:15 +0000 (15:04 +0100)]
Update SonarQube Code Smell

Issue-ID: CPS-89

Change-Id: I3a3e34b41ed98a0ab2c1accd438e2ec1d4a8d1cf
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2 years agoResponse code fix (Bad Request instead of Not Found) when modifying non-existent... 10/121410/4
Ruslan Kashapov [Wed, 19 May 2021 07:43:39 +0000 (10:43 +0300)]
Response code fix (Bad Request instead of Not Found) when modifying non-existent node.

Issue-ID: CPS-422
Change-Id: I6652f8bcafb9938ce588be3d0a0d2bb1672723b0
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agonexus registry is parmateterized 82/121382/4
Renu Kumari [Mon, 17 May 2021 11:16:48 +0000 (07:16 -0400)]
nexus registry is parmateterized

Issue-ID: CPS-311
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I158387f54b1a9d3d60e6d97cc3336391745af3c0

3 years agoCreate list-node elements (part3): NCMP REST and service layers 53/121153/2
Ruslan Kashapov [Fri, 7 May 2021 07:46:27 +0000 (10:46 +0300)]
Create list-node elements (part3): NCMP REST and service layers

Issue-ID: CPS-360
Change-Id: Id8be89f19750d72bae334491aea4a59f21c7ecd6
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoCreate list-node elements (part2): CPS REST layer 99/121099/2
Ruslan Kashapov [Wed, 5 May 2021 10:11:50 +0000 (13:11 +0300)]
Create list-node elements (part2): CPS REST layer

Issue-ID: CPS-360
Change-Id: Iaca8baff085e1659453c06ce0dee0203aa007b4a
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoCreate list-node elements (part1): CPS service and persistence layers 97/121097/3
Ruslan Kashapov [Wed, 5 May 2021 09:06:00 +0000 (12:06 +0300)]
Create list-node elements (part1): CPS service and persistence layers

+ fix integrity violation exception exposed out of persistence layer
+ refactor CpsDataServiceImplSpec to eliminate repeated code

Issue-ID: CPS-360
Change-Id: Id70341fe54bf3c31af661f6aae04a7a80f4a1e9d
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoMerge "Add CpsPathQueries.sql and create data inspired by the bookstore model"
Bruno Sakoto [Sat, 8 May 2021 00:29:29 +0000 (00:29 +0000)]
Merge "Add CpsPathQueries.sql and create data inspired by the bookstore model"

3 years agoAdd CpsPathQueries.sql and create data inspired by the bookstore model 52/121052/4
niamhcore [Fri, 30 Apr 2021 13:26:48 +0000 (14:26 +0100)]
Add CpsPathQueries.sql and create data inspired by the bookstore model

Issue-ID: CPS-363

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

3 years agoFix cps ran yang data model 24/121124/2
Bruno Sakoto [Wed, 5 May 2021 12:11:19 +0000 (08:11 -0400)]
Fix cps ran yang data model

* Add a liquibase change set to update cps ran model data
* Rename model "cps-ran-schema-model@2021-01-28.yang" to
  be compliant with yang specifications related to file layout
  https://tools.ietf.org/html/rfc7950#section-5.2
* Improve yang validation error handling to provide more information
  about the validation failure in the request response
* Add csit test to verify cps ran model retrieval

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

3 years agoDocument ancestor cps path 00/121100/3
niamhcore [Wed, 5 May 2021 10:42:20 +0000 (11:42 +0100)]
Document ancestor cps path

Issue-ID: CPS-305

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

3 years agoFix ancestor cps path to recognize ancestor list value 66/121066/1
niamhcore [Tue, 4 May 2021 08:52:19 +0000 (09:52 +0100)]
Fix ancestor cps path to recognize ancestor list value

Issue-ID: CPS-305

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

3 years agoMerge "Implement cps path query to get ancestor by schema node identifier Cleaned...
Rishi Chail [Fri, 30 Apr 2021 13:23:33 +0000 (13:23 +0000)]
Merge "Implement cps path query to get ancestor by schema node identifier Cleaned up some legcy issues in related testware"

3 years agofix sonar code smell 46/121046/1
Ruslan Kashapov [Fri, 30 Apr 2021 11:28:18 +0000 (14:28 +0300)]
fix sonar code smell

Issue-ID: CPS-358
Change-Id: Ifa1f4bbd5c16a0cf6e4ac73568c8560e42b85365
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoImplement cps path query to get ancestor by schema node identifier 97/120897/11
ToineSiebelink [Fri, 30 Apr 2021 11:09:44 +0000 (12:09 +0100)]
Implement cps path query to get ancestor by schema node identifier
Cleaned up some legcy issues in related testware

Issue-ID: CPS-305

Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: Ic4b21308478f399e3a454dbcd73943e077b0f3f2
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
3 years agoMerge "Fix code smell"
Toine Siebelink [Fri, 30 Apr 2021 10:47:10 +0000 (10:47 +0000)]
Merge "Fix code smell"

3 years agoFix Get descendent to support xpaths that end in list values 71/120971/5
puthuparambil.aditya [Wed, 28 Apr 2021 15:39:32 +0000 (16:39 +0100)]
Fix Get descendent to support xpaths that end in list values

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

3 years agoFix code smell 42/121042/1
Rishi.Chail [Fri, 30 Apr 2021 08:04:19 +0000 (09:04 +0100)]
Fix code smell

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

3 years agoJSON data fragment into DataNode collection parsing support 17/120817/5
Ruslan Kashapov [Thu, 22 Apr 2021 08:47:41 +0000 (11:47 +0300)]
JSON data fragment into DataNode collection parsing support

Issue-ID: CPS-358
Change-Id: I92f46504e5f3623131844616945069f70712ed61
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoInvestigate and update Spock version 04/121004/2
shivasubedi [Thu, 29 Apr 2021 11:48:05 +0000 (12:48 +0100)]
Investigate and update Spock version

Issue-ID: CPS-368
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
Change-Id: Ie8505cf29068660af6bc6b9887f593f7e3be074f

3 years ago- Remove redundant and misleading tests 66/120966/2
ToineSiebelink [Wed, 28 Apr 2021 11:13:34 +0000 (12:13 +0100)]
- Remove redundant and misleading tests
- Some small improvemnt to tets ins same class

Issue-ID: CPS-325

Change-Id: I0d888dbd9db555508b23e37957098b7b4d518912
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
3 years agoFix Code smells 10/120910/3
shivasubedi [Mon, 26 Apr 2021 16:51:04 +0000 (17:51 +0100)]
Fix Code smells

Issue-ID: CPS-89
Change-Id: Ib1b6fbc6b6d712f169100825683e6db3e7c85cb9
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
3 years agoMerge "Get Data under anchor using single root Changes for NCMP"
Toine Siebelink [Wed, 28 Apr 2021 09:45:03 +0000 (09:45 +0000)]
Merge "Get Data under anchor using single root Changes for NCMP"

3 years agoMerge "Leaf String value comparison matches mix of single and double quotes"
Rishi Chail [Mon, 26 Apr 2021 16:05:35 +0000 (16:05 +0000)]
Merge "Leaf String value comparison matches mix of single and double quotes"

3 years agoGet Data under anchor using single root 08/120908/1
Rishi.Chail [Mon, 26 Apr 2021 15:42:11 +0000 (16:42 +0100)]
Get Data under anchor using single root
Changes for NCMP

Issue-ID: CPS-325

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

3 years agoMerge "Get Data under anchor using single root"
Bruno Sakoto [Mon, 26 Apr 2021 14:37:57 +0000 (14:37 +0000)]
Merge "Get Data under anchor using single root"

3 years agoGet Data under anchor using single root 82/120782/5
Rishi.Chail [Tue, 13 Apr 2021 23:51:44 +0000 (00:51 +0100)]
Get Data under anchor using single root

Issue-ID: CPS-325

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

3 years agoLeaf String value comparison matches mix of single and double quotes 53/120853/5
shivasubedi [Thu, 22 Apr 2021 13:54:49 +0000 (14:54 +0100)]
Leaf String value comparison matches mix of single and double quotes

Issue-ID: CPS-345
Signed-off-by: shivasubedi <shiva.subedi@est.tech>
Change-Id: Id6db86817878ed5ed8ccaed4a9a71c5a06d6f97c

3 years agoUpdate documentation for csit tests 88/120788/2
Bruno Sakoto [Thu, 22 Apr 2021 03:58:05 +0000 (23:58 -0400)]
Update documentation for csit tests

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

3 years agoMerge "Upgrade to PostgreSQL 13"
Bruno Sakoto [Fri, 23 Apr 2021 13:18:03 +0000 (13:18 +0000)]
Merge "Upgrade to PostgreSQL 13"

3 years agoDocuments update for multiple attributes support in Get Descendent API 74/120874/2
puthuparambil.aditya [Fri, 23 Apr 2021 11:52:09 +0000 (12:52 +0100)]
Documents update for multiple attributes support in Get Descendent API

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

3 years agoDocuments update for multiple attributes support in Get Descendent API 72/120872/1
puthuparambil.aditya [Fri, 23 Apr 2021 10:55:24 +0000 (11:55 +0100)]
Documents update for multiple attributes support in Get Descendent API

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

3 years agoUpgrade to PostgreSQL 13 73/120873/1
Rishi.Chail [Fri, 23 Apr 2021 10:51:42 +0000 (11:51 +0100)]
Upgrade to PostgreSQL 13

Upgrade version in docker compose and test containers to match OOM
version.

Issue-ID: CPS-355

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

3 years agoImplement ends with cps path query to support multiple attributes with 'and' condition 04/120604/9
puthuparambil.aditya [Fri, 16 Apr 2021 12:47:52 +0000 (13:47 +0100)]
Implement ends with cps path query to support multiple attributes with 'and' condition

Issue-ID: CPS-309
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I80bf2650e2cd979b806fc29302fc5cb295f65241
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
3 years agoDocument legacy CPS Path functionality 35/120735/3
ToineSiebelink [Tue, 20 Apr 2021 16:33:09 +0000 (17:33 +0100)]
Document legacy CPS Path functionality

Issue-ID: CPS-334

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

3 years agoMerge "Update README.md"
Toine Siebelink [Thu, 22 Apr 2021 08:46:28 +0000 (08:46 +0000)]
Merge "Update README.md"

3 years agoUpdate README.md 75/120575/4
Hanif Kukkalli [Thu, 15 Apr 2021 15:44:10 +0000 (17:44 +0200)]
Update README.md

Updated README.md to show the version that can be used to pass as an argument for docker-compose up
Issue-ID: CPS-339

Signed-off-by: Hanif Kukkalli <lte-ng@outlook.com>
Change-Id: I440f2d368c0b06c3827db3c39e044560c4d10a84

3 years agoCreate child data node (part 2): NCMP service + REST 87/120687/4
Ruslan Kashapov [Tue, 20 Apr 2021 08:14:30 +0000 (11:14 +0300)]
Create child data node (part 2): NCMP service + REST

Issue-ID: CPS-337
Change-Id: Icf703f6f375e5f280058d58c781eac081f3dd161
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoMerge "Increase minimum coverage"
Toine Siebelink [Tue, 20 Apr 2021 13:29:00 +0000 (13:29 +0000)]
Merge "Increase minimum coverage"

3 years agoCreate child data node (part 1): CPS service + REST 25/120625/2
Ruslan Kashapov [Mon, 19 Apr 2021 09:40:01 +0000 (12:40 +0300)]
Create child data node (part 1): CPS service + REST

Issue-ID: CPS-337
Change-Id: I9c5c62d144b5301ac80e2b82a5cc66a980dad011
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
3 years agoIncrease minimum coverage 54/120654/2
Claudio D. Gasparini [Mon, 19 Apr 2021 16:18:19 +0000 (18:18 +0200)]
Increase minimum coverage

and remove unnecesary dependency

Issue-ID: CPS-343
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com>
Change-Id: I3bffbd9941f539852da2e1de82f8edda08ea1ea3

3 years agoRemove default password from application.yml 42/120542/3
Renu Kumari [Wed, 14 Apr 2021 14:14:13 +0000 (10:14 -0400)]
Remove default password from application.yml

Issue-ID: CPS-319
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I61a5e098ffa173721cfa48aa0b992610f6a6e1a0

3 years agoFix "ends-with" query syntax to conform with xPath definition 63/120563/1
ToineSiebelink [Thu, 15 Apr 2021 11:15:01 +0000 (12:15 +0100)]
Fix "ends-with" query syntax to conform with xPath definition

"ends-with" is HOW we resolve it in sql query. 'descendant anywhere' is the correct Path name for the '//' operator
- Updated method names, variable names, test description to reflect the correct terminolgy
- Udpated query to always perfix the target (descendant name) with an '\' so it alwasy only matches whole node names
- Updated regex for cpsPath to NOT accept triple /// (as per xPath this is invalid since a ndoeName cannot start with or contain a node separator

Issue-ID: CPS-336

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

3 years agoAdd Security waiver to Release Notes 87/120487/1
ToineSiebelink [Tue, 13 Apr 2021 14:10:47 +0000 (15:10 +0100)]
Add Security waiver to Release Notes

Issue-ID: CPS-329

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

3 years agoMerge "Fix liquibase changeset so we can upgrade from H to I"
Bruno Sakoto [Mon, 12 Apr 2021 15:09:41 +0000 (15:09 +0000)]
Merge "Fix liquibase changeset so we can upgrade from H to I"

3 years agoMerge "Fix to pull images from Onap nexus"
Toine Siebelink [Fri, 9 Apr 2021 16:20:29 +0000 (16:20 +0000)]
Merge "Fix to pull images from Onap nexus"

3 years agoFix liquibase changeset so we can upgrade from H to I 76/120276/3
ToineSiebelink [Wed, 7 Apr 2021 15:17:33 +0000 (16:17 +0100)]
Fix liquibase changeset so we can upgrade from H to I

- Undo (accidental) changes in orginal liquiubase cahnge set (03)
(see commit : https://gerrit.onap.org/r/c/cps/+/119061)
- Add new changeset for required changed related to checksum calcualtion
- There is a incorrect field name (checkstyle instead of checksum) in 03-loadData-schema-set.yaml
 but it seems to be ignored/overruled by the .csv import. If we change it liquibase report an checksum error during upgrade
i.e were are not allowed to touch the file!

Issue-ID: CPS-310

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

3 years agoUpdate release note for Honolulu 1.0.1 (RC1) 57/120357/1
ToineSiebelink [Fri, 9 Apr 2021 10:15:48 +0000 (11:15 +0100)]
Update release note for Honolulu 1.0.1  (RC1)

Issue-ID: CPS-297

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

3 years agoFix to pull images from Onap nexus 88/120288/1
Rishi.Chail [Thu, 8 Apr 2021 13:23:32 +0000 (14:23 +0100)]
Fix to pull images from Onap nexus

Issue-ID: CPS-319

Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I2a82e56aef8572e4241b6644cb8c53d2d33ace97
(cherry picked from commit 27fba350de15c5a5145a66f75cc188a6f69633c6)

3 years agoFix SonarQube violations 74/120274/1
ToineSiebelink [Wed, 7 Apr 2021 15:04:37 +0000 (16:04 +0100)]
Fix SonarQube violations

- Used @SupressWarning where issue was casued by 3PP we have not control over
- Remove TODO's which are now addt to backlog as new JIRA's; CPS-324 and CPS-325

Issue-ID: CPS-89

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

3 years agoMerge "Fix upload size to be greater than 1MB"
Bruno Sakoto [Wed, 7 Apr 2021 13:37:12 +0000 (13:37 +0000)]
Merge "Fix upload size to be greater than 1MB"

3 years agoFix upload size to be greater than 1MB 67/120267/2
niamhcore [Wed, 7 Apr 2021 10:35:19 +0000 (11:35 +0100)]
Fix upload size to be greater than 1MB

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