cps.git
15 months agoMerge "Use native query to delete data nodes"
Toine Siebelink [Tue, 24 Jan 2023 10:12:16 +0000 (10:12 +0000)]
Merge "Use native query to delete data nodes"

15 months agoUse native query to delete data nodes 84/132984/5
sourabh_sourabh [Mon, 23 Jan 2023 12:51:15 +0000 (12:51 +0000)]
Use native query to delete data nodes

- Used hashcode to remove child fragment based on it's xpath
- Used native query to delete fragment by altering fragment_parent_id_fkey CONSTRAINT.

Issue-ID: CPS-1439

Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: If19c449818e18f8fd666503b7346704eeb4a95d0
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
15 months agoMerge "Further TTL increase"
Toine Siebelink [Mon, 23 Jan 2023 16:32:55 +0000 (16:32 +0000)]
Merge "Further TTL increase"

15 months agoIncrease duration for CpsPathUtilPerfTest 85/132985/2
danielhanrahan [Mon, 23 Jan 2023 14:35:44 +0000 (14:35 +0000)]
Increase duration for CpsPathUtilPerfTest

Issue-ID: CPS-1460
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I47f226c44351513b77b5cbb9b7d91e13f8bf4db6

15 months agoMerge "Added depth parameter in query nodes API."
Toine Siebelink [Mon, 23 Jan 2023 12:07:27 +0000 (12:07 +0000)]
Merge "Added depth parameter in query nodes API."

15 months agoMerge "[NCMP] Consume & Forward to client topic"
Toine Siebelink [Mon, 23 Jan 2023 11:08:07 +0000 (11:08 +0000)]
Merge "[NCMP] Consume & Forward to client topic"

15 months ago[NCMP] Consume & Forward to client topic 80/132680/11
seanbeirne [Fri, 13 Jan 2023 17:13:25 +0000 (17:13 +0000)]
[NCMP] Consume & Forward to client topic

-Consumes event from dmi-cm-events
-Immediately forwards to static topic (topic selection for events comes
later from subscription information)
-Added Kafka test
-SHOULD BE MERGED BEFORE DMI PART

Issue-ID: CPS-138
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: I0a426381e2c3f9173b8d3916960c05722ad4f77d
Signed-off-by: seanbeirne <sean.beirne@est.tech>
15 months agoAdded depth parameter in query nodes API. 89/132589/17
rajesh.kumar [Tue, 6 Dec 2022 11:47:24 +0000 (11:47 +0000)]
Added depth parameter in query nodes API.

Issue-ID: CPS-1381
Change-ID: I73f97f986a817d423f93a8d922dcd9647b1206bb
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
16 months agoFurther TTL increase 72/132972/1
mpriyank [Fri, 20 Jan 2023 12:54:32 +0000 (12:54 +0000)]
Further TTL increase

- increased TTL to 10mins or 600secs now.
- Added few more log informations.

Issue-ID: CPS-1446
Change-Id: Ie0508b426fb8d1232f0cc3c1d428a27178294323
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoNormalize xpaths for getDataNodes 38/132938/8
danielhanrahan [Wed, 18 Jan 2023 13:14:57 +0000 (13:14 +0000)]
Normalize xpaths for getDataNodes

Issue-ID: CPS-1457
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I93d19666c168aa69da73eadbfef0fc54181aec52

16 months agoOptimal TTL value for Module Sync WD 53/132953/2
mpriyank [Thu, 19 Jan 2023 14:31:54 +0000 (14:31 +0000)]
Optimal TTL value for Module Sync WD

- setting optimal value for TTL to 120secs from 200secs.
- Since the retry parameter is configurable , not changing the same in
  patch , but can be set as per the environment we are working on

Issue-ID: CPS-1446
Change-Id: Ifaca07ad1a049a88b2609fd7a1a8e1e2fa478dd9
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoMerge "Bug Analysis for LOCKED cmHandles"
Toine Siebelink [Wed, 18 Jan 2023 15:24:15 +0000 (15:24 +0000)]
Merge "Bug Analysis for LOCKED cmHandles"

16 months agoBug Analysis for LOCKED cmHandles 20/132920/6
mpriyank [Mon, 16 Jan 2023 14:14:41 +0000 (14:14 +0000)]
Bug Analysis for LOCKED cmHandles

- Increased TTL time from 60secs to 200secs
- Added few info level logs to analyze more

Issue-ID: CPS-1446
Change-Id: If4456040e51bd33a5bf321f48440e44af7698154
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoAdd delete performance tests 05/132905/7
danielhanrahan [Thu, 12 Jan 2023 09:55:56 +0000 (09:55 +0000)]
Add delete performance tests

- move existing delete tests to new class
- add tests for deleting lists and list elements
- add test for deleting root node

Issue-ID: CPS-1437
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I81228aa9473ed28d550db64b28c38abb1c1016f5

16 months agoMerge "Fetch CM handles by collection of xpaths"
Sourabh Sourabh [Mon, 16 Jan 2023 08:40:23 +0000 (08:40 +0000)]
Merge "Fetch CM handles by collection of xpaths"

16 months agoMerge "Updating CmHandleStates using batch operation"
Toine Siebelink [Thu, 12 Jan 2023 16:31:07 +0000 (16:31 +0000)]
Merge "Updating CmHandleStates using batch operation"

16 months agoUpdating CmHandleStates using batch operation 98/132898/3
JosephKeenan [Wed, 11 Jan 2023 09:18:07 +0000 (09:18 +0000)]
Updating CmHandleStates using batch operation

Issue-ID: CPS-1424
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: Ia67db468ece4a7ab694d95cb63a954f24dd8cb55

16 months agoFetch CM handles by collection of xpaths 62/132762/4
seanbeirne [Thu, 15 Dec 2022 16:06:20 +0000 (16:06 +0000)]
Fetch CM handles by collection of xpaths

- Added FragmentRepositoryMultiPathQuery
- Removed Hibernate method for same
- Added perf. test
- Handle escaping of single qoutes in sql-data
- Increased timing for path paser performance test

Issue-ID: CPS-1422
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: Ibea12a44bffd29ed43cc1560b507d1fa7e968b8b

16 months agoCPS PATCH operation does not merge existing data 90/132890/3
lukegleeson [Mon, 9 Jan 2023 16:14:36 +0000 (16:14 +0000)]
CPS PATCH operation does not merge existing data

Altered code to add attributes and not overwrite attributes + tests

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

16 months agoDocBuilderFactory one instance 84/132884/1
mpriyank [Mon, 9 Jan 2023 09:58:28 +0000 (09:58 +0000)]
DocBuilderFactory one instance

- setting the property for DocumentBuilderFactory only once.

Issue-ID: CPS-1435
Change-Id: Ib1509e86c2f5572d184945dc55f1818a7147c259
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoLocal DocBuilderFactory fix XEE 76/132876/1
mpriyank [Fri, 6 Jan 2023 10:12:59 +0000 (10:12 +0000)]
Local DocBuilderFactory fix XEE

- local DocumentBuilderFactory fix for prevention of XML External Entity

Issue-ID: CPS-1435
Change-Id: Ib88268edc5975bf0fe4e3e56bc704f266280af4b
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoTest XEE in SonarQube 75/132875/1
mpriyank [Thu, 5 Jan 2023 17:16:39 +0000 (17:16 +0000)]
Test XEE in SonarQube

- test by removing the attributes for transformerfactory to check if
  sonarqube gives the vulnerability or not

Issue-ID: CPS-1435
Change-Id: I087796b1bbc465655fd741f678a9b2b417d174dd
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoLocal DocumentBuilderFactory 74/132874/1
mpriyank [Thu, 5 Jan 2023 15:35:59 +0000 (15:35 +0000)]
Local DocumentBuilderFactory

- trying to use local DocumentBuilderFactory without any condition

Issue-ID: CPS-1435
Change-Id: I209a31633427cbf6fdac3e465154a1b89b9ca89f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoXEE prevention with all props 71/132871/1
mpriyank [Thu, 5 Jan 2023 12:57:49 +0000 (12:57 +0000)]
XEE prevention with all props

- include all properties to prevent XEE for DocumentBuilderFactory

Issue-ID: CPS-1435
Change-Id: I5a740f34072af348fe2df282fba7babeff4299d8
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoAdd delete performance tests 70/132870/2
danielhanrahan [Thu, 5 Jan 2023 11:03:17 +0000 (11:03 +0000)]
Add delete performance tests

Issue-ID: CPS-1437
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If940d7633ab6f85b6e1e311af7077ce2006cfa6a

16 months agoDocument and Transformer Factory refactor 69/132869/1
mpriyank [Thu, 5 Jan 2023 11:04:34 +0000 (11:04 +0000)]
Document and Transformer Factory refactor

- Extracted out document and transformer factory code

Issue-ID: CPS-1435
Change-Id: I7c296a797871b0724f6de51833396a5d822c7d76
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoXEE remove few property 67/132867/1
mpriyank [Wed, 4 Jan 2023 18:22:11 +0000 (18:22 +0000)]
XEE remove few property

- remove and test if it fixes the issue

Issue-ID: CPS-1435
Change-Id: Id70509494c105c3e73e8217d0bfb6334aa0cc609
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoXEE add more property 65/132865/2
mpriyank [Wed, 4 Jan 2023 15:33:42 +0000 (15:33 +0000)]
XEE add more property

- adding few more properties to fix the problem

Issue-ID: CPS-1435
Change-Id: I2e952b38bae5dab396911ea1ce4a1125d0402369
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoXXE prevention 46/132846/5
mpriyank [Tue, 3 Jan 2023 14:17:36 +0000 (14:17 +0000)]
XXE prevention

- xml external entity prevention in the XmlFileUtils
- setting the features only once for the document builder factory

Issue-ID: CPS-1435
Change-Id: I06f9ac4bcdb0a90262f237489c6c50d8fde33c0d
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoMinor documentation fix 44/132844/1
mpriyank [Tue, 3 Jan 2023 11:41:07 +0000 (11:41 +0000)]
Minor documentation fix

- minor tag fix for param in documentation

Issue-ID: CPS-1435
Change-Id: I23ff1ebce54ee30cd84a58be0340ab41ad32b69a
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
16 months agoMerge "Fix SonarQube warnings"
Toine Siebelink [Fri, 23 Dec 2022 14:40:44 +0000 (14:40 +0000)]
Merge "Fix SonarQube warnings"

16 months agoFix SonarQube warnings 31/132831/2
ToineSiebelink [Fri, 23 Dec 2022 12:09:19 +0000 (12:09 +0000)]
Fix SonarQube warnings

- fixed most new warnings (required some rerfactoring and renaming)
- had to change method order (becasue private/public)
  which loosk liek a big change because gerrit cannot match thee old/new correctly :-(
- some reformatting to improve readability
- used autoclosable fro streams
- use of deprecated ODL methods will be addressed by separate commit (Lee-Anjella)

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

16 months agoMerge "Update Release Notes"
Toine Siebelink [Fri, 23 Dec 2022 11:41:20 +0000 (11:41 +0000)]
Merge "Update Release Notes"

16 months agoUpdate Release Notes 30/132830/1
ToineSiebelink [Fri, 23 Dec 2022 11:07:42 +0000 (11:07 +0000)]
Update Release Notes

- Added CPS-1171 and others
- Corrected mistakes

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

16 months agoOrganize performance test 29/132829/1
ToineSiebelink [Fri, 23 Dec 2022 10:11:38 +0000 (10:11 +0000)]
Organize performance test

- Separated CpsPathUtil performance tests in dedicated file
- Used smaller sample to speed up CpsPathUtil test
- Increased margin on CpsModuleReferenceRepository performance test to rpevent accidental failures
- Added profiles to cps path parser module
- Use Regex to include any (future) perforamcne test using same naming

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

17 months agoMerge "Temp Table Creation improvements"
Toine Siebelink [Thu, 22 Dec 2022 16:01:28 +0000 (16:01 +0000)]
Merge "Temp Table Creation improvements"

17 months agoMerge "XML content on create anchors node support"
Toine Siebelink [Thu, 22 Dec 2022 15:46:16 +0000 (15:46 +0000)]
Merge "XML content on create anchors node support"

17 months agoTemp Table Creation improvements 28/132828/2
ToineSiebelink [Thu, 22 Dec 2022 14:47:07 +0000 (14:47 +0000)]
Temp Table Creation improvements

- extracted methods for more generic temp table creation
- optimized
- added perf test on use case that depends on temp table creation
- had some doubts about stopwatch use in recent tests, but was all OK, just renamed some

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

17 months agoMerge "Add fix for posting nodes with xPath with '/'"
Toine Siebelink [Thu, 22 Dec 2022 15:12:50 +0000 (15:12 +0000)]
Merge "Add fix for posting nodes with xPath with '/'"

17 months agoXML content on create anchors node support 56/131656/18
Michal Jagiello [Tue, 13 Dec 2022 07:40:19 +0000 (07:40 +0000)]
XML content on create anchors node support

Add XML content type support on anchor node creation.

Issue-ID: CPS-1257
Change-Id: I7e7a9a1961b6e81de93a4e32e842b47f8a163a09
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Signed-off-by: Lee Anjella Macabuhay <lee.anjella.macabuhay@est.tech>
17 months agoMerge "Consume Subscription Creation Event"
Toine Siebelink [Thu, 22 Dec 2022 12:22:19 +0000 (12:22 +0000)]
Merge "Consume Subscription Creation Event"

17 months agoConsume Subscription Creation Event 54/132654/12
seanbeirne [Tue, 6 Dec 2022 11:12:18 +0000 (11:12 +0000)]
Consume Subscription Creation Event

Issue-ID: CPS-1392
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I0a5a8c256319a1a2944ee6606db1c14b50e8f8e4

17 months agoCSIT fix to use correct lib 26/132826/1
mpriyank [Thu, 22 Dec 2022 10:16:28 +0000 (10:16 +0000)]
CSIT fix to use correct lib

- Explicitly setting pylibs.txt file to use 3.0.0 version of
  robotframework-selenium2library
- Also updating the script to be read from WORKSPACE.

Change-Id: Ic66c5357f53e73678aac439d095d318dbd03c333
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
17 months agoAdd fix for posting nodes with xPath with '/' 19/132819/8
emaclee [Wed, 21 Dec 2022 09:29:24 +0000 (09:29 +0000)]
Add fix for posting nodes with xPath with '/'

- YangUtils method changed from using REGEX to cps path parser
- unit test added for cps path util

Issue-ID: CPS-1433
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: Ibb9efdd09423f9bade4a4a557d7d9ed49aa44ef4

17 months agoCpsPath Query Optimization 22/132822/3
ToineSiebelink [Wed, 21 Dec 2022 09:29:54 +0000 (09:29 +0000)]
CpsPath Query Optimization

- Optimized CpsPathqueries with descendants that only care about the xpath (no attribuets checks)
- Use native query with regular expression for target xpath and descendants
- Refactored so existing sql-geneartion code can be re-used in different repository implementations
- Adjusted related performance test expectations

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

17 months agoMerge "API versioning supported and added different versions for POST APIs"
Joseph Keenan [Wed, 21 Dec 2022 11:42:39 +0000 (11:42 +0000)]
Merge "API versioning supported and added different versions for POST APIs"

17 months agoCheck preformance impacts 13/132813/2
ToineSiebelink [Tue, 20 Dec 2022 11:32:26 +0000 (11:32 +0000)]
Check preformance impacts

-Added a basic perf. test to process 200K CPS paths using parser

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

17 months agoFix Delete uses case with '/' in path 04/132804/2
ToineSiebelink [Mon, 19 Dec 2022 14:19:29 +0000 (14:19 +0000)]
Fix Delete uses case with '/' in path

-Extend and use cpsPath parser (util) classes instead of regex

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

17 months agoMerge "Use public exposed interface of CPS service instead of spi"
Toine Siebelink [Mon, 19 Dec 2022 14:22:09 +0000 (14:22 +0000)]
Merge "Use public exposed interface of CPS service instead of spi"

17 months agoRTD Support for multiple data trees under 1 anchor 99/132799/1
arpitsingh [Mon, 19 Dec 2022 06:42:26 +0000 (12:12 +0530)]
RTD Support for multiple data trees under 1 anchor

Signed-off-by: arpitsingh <as00745003@techmahindra.com>
Change-Id: Icab15ac79053f91b2a126f944fec86474c944f80

17 months agoAPI versioning supported and added different versions for POST APIs 06/132706/5
rajesh.kumar [Wed, 14 Dec 2022 08:13:29 +0000 (08:13 +0000)]
API versioning supported and added different versions for POST APIs

Issue-ID: CPS-1189
Change-ID: I73f97f986a817d423f92f8d922dcd9647b1214aa
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
17 months agoUse public exposed interface of CPS service instead of spi 74/132774/5
sourabh_sourabh [Thu, 15 Dec 2022 17:16:04 +0000 (17:16 +0000)]
Use public exposed interface of CPS service instead of spi

- Used public interface of cps service to get data node or anchor names.

Issue-ID: CPS-1427
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I2a891dd5f8955977295f32005e49543886eac88c
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
17 months agoMerge "CPS-341 Support for multiple data tree instances under 1 anchor"
Toine Siebelink [Fri, 16 Dec 2022 09:15:34 +0000 (09:15 +0000)]
Merge "CPS-341 Support for multiple data tree instances under 1 anchor"

17 months agoChore: Update robot-framework scripts to use Python3.10 73/132773/4
Matthew Watkins [Thu, 15 Dec 2022 17:03:16 +0000 (17:03 +0000)]
Chore: Update robot-framework scripts to use Python3.10

Migrate these CSIT scripts to explicitly use the latest Python 3.x
version available in pyenv, the same as the earlier jobs that setup
the robot framework environment. Also, output some useful versioning
information to aid debugging.

Issue-ID: CCSDK-3820
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: I332f2c46018d4c3433f0a3df9a0f35bb90241b07

17 months agoCPS-341 Support for multiple data tree instances under 1 anchor 66/131466/19
arpitsingh [Thu, 13 Oct 2022 21:12:43 +0000 (02:42 +0530)]
CPS-341 Support for multiple data tree instances under 1 anchor

- Updated the parseJsonData method so it can parse JSON with multiple data trees, now it returns a ContainerNode
- ContainerNode holds a collection of NormalizedNodes
- Updated DataNodeBuilder and FragmentRepository as well to support collection of NormalizedNodes
- Added new methods in CpsDataPersistenceService to store multiple Data Nodes
- Added new test cases
- Updated existing test cases and fixed code coverage
- Addressed comments from previous patch

Issue-ID: CPS-341
Change-Id: Ie893e91c0fbfb139a1a406e962721b0f52412ced
Signed-off-by: arpitsingh <as00745003@techmahindra.com>
17 months agoMerge "Query Optimization"
Joseph Keenan [Thu, 15 Dec 2022 09:54:52 +0000 (09:54 +0000)]
Merge "Query Optimization"

17 months agoMerge "Analyze outdated CPS Dependencies"
Toine Siebelink [Thu, 15 Dec 2022 08:36:01 +0000 (08:36 +0000)]
Merge "Analyze outdated CPS Dependencies"

17 months agoAnalyze outdated CPS Dependencies 88/132688/2
leventecsanyi [Wed, 7 Dec 2022 15:22:39 +0000 (16:22 +0100)]
Analyze outdated CPS Dependencies

- Added guava & postgres dependency update

Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I28dab7c083330fff704d5e438566878f78eb53f9
Issue-Id: CPS-1408

17 months agoMerge "Fixing SonarQube violations"
Toine Siebelink [Tue, 13 Dec 2022 11:08:25 +0000 (11:08 +0000)]
Merge "Fixing SonarQube violations"

17 months agoQuery Optimization 81/132681/1
ToineSiebelink [Mon, 12 Dec 2022 17:39:26 +0000 (17:39 +0000)]
Query Optimization

- Refactor performance tests as multiple separate (data driven) tests
- This to improve redability and re-use and amke sure al tets are always ran
  (makign it easier to test/change thresholds for multiple scenarios at once)
- Add new query performance tests (on many descendants)

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

17 months agoMerge "Fix DataNodeBuilder for ChoiceNodes"
Toine Siebelink [Mon, 12 Dec 2022 16:09:21 +0000 (16:09 +0000)]
Merge "Fix DataNodeBuilder for ChoiceNodes"

17 months agoFix DataNodeBuilder for ChoiceNodes 05/132505/8
Lena Peuker [Tue, 29 Nov 2022 14:38:00 +0000 (15:38 +0100)]
Fix DataNodeBuilder for ChoiceNodes

Fix implemented to handle YangChoiceNode in right format

Issue-ID: CPS-1352
Signed-off-by: Lena Peuker <PeukerL@telekom.de>
Change-Id: I48d433bac96cfc647bc31c82817870995bace860

17 months agoIncrease performance test margins 73/132673/1
leventecsanyi [Mon, 12 Dec 2022 13:07:23 +0000 (14:07 +0100)]
Increase performance test margins

- Increased duration times

Issue-Id: CPS-1420
Change-Id: I510801a65194b63ce72a716ee3fc7258aef61207
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
17 months agoFixing SonarQube violations 50/132650/2
leventecsanyi [Thu, 8 Dec 2022 13:49:29 +0000 (14:49 +0100)]
Fixing SonarQube violations

- Code smell fixes

Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Issue-ID: CPS-475
Change-Id: I4b47ece82aed7e4b31aaa28e601e419fb6f06718

17 months agoRTD Release Notes get all schema sets 55/132655/1
lukegleeson [Fri, 9 Dec 2022 15:48:55 +0000 (15:48 +0000)]
RTD Release Notes get all schema sets

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

17 months agoMerge "Added API to get all schema sets for a given dataspace."
Toine Siebelink [Fri, 9 Dec 2022 15:33:12 +0000 (15:33 +0000)]
Merge "Added API to get all schema sets for a given dataspace."

17 months agoAdded API to get all schema sets for a given dataspace. 26/130926/23
rajesh.kumar [Wed, 14 Sep 2022 05:11:32 +0000 (05:11 +0000)]
Added API to get all schema sets for a given dataspace.

Issue-ID: CPS-1187
Change-ID: I73f97f986a817d423f93a8d922dcd9647b0914aa
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
17 months agoMerge "Fix SonarQube Violations"
Sourabh Sourabh [Thu, 8 Dec 2022 10:55:49 +0000 (10:55 +0000)]
Merge "Fix SonarQube Violations"

17 months agoMerge "Chore: Re-instate robotframework-requests==0.9.3"
Toine Siebelink [Thu, 8 Dec 2022 08:32:25 +0000 (08:32 +0000)]
Merge "Chore: Re-instate robotframework-requests==0.9.3"

17 months agoChore: Re-instate robotframework-requests==0.9.3 18/132618/1
Matthew Watkins [Wed, 7 Dec 2022 13:30:09 +0000 (13:30 +0000)]
Chore: Re-instate robotframework-requests==0.9.3

Need to re-instate a pinned version for the Python test suite.
Also we can add back the backup installation method from the script
in ci-management.

Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: If0ec07edb1c156b06a9c2621a4e22bd35b9240a9

17 months agoMerge "Update outdated dependencies"
Toine Siebelink [Wed, 7 Dec 2022 09:56:43 +0000 (09:56 +0000)]
Merge "Update outdated dependencies"

17 months agoMerge "Enhance read performance tests"
Toine Siebelink [Tue, 6 Dec 2022 10:10:23 +0000 (10:10 +0000)]
Merge "Enhance read performance tests"

17 months agoMerge "Upgrade Open daylight yang tool to version 8.0.6"
Toine Siebelink [Tue, 6 Dec 2022 10:07:49 +0000 (10:07 +0000)]
Merge "Upgrade Open daylight yang tool to version 8.0.6"

17 months agoUpgrade Open daylight yang tool to version 8.0.6 83/132383/8
emaclee [Tue, 22 Nov 2022 16:04:14 +0000 (16:04 +0000)]
Upgrade Open daylight yang tool to version 8.0.6

- changed classes according to upgrade of yang tool
- changed methods in YangUtils class to accomodate change for
  jSonParserStream method
- updated unit tests for the upgrade

Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: Ib62fe424150ed0695eed168e1ae21f4d9a61cdf4

17 months agoFix SonarQube Violations 14/132614/1
leventecsanyi [Mon, 5 Dec 2022 16:14:35 +0000 (17:14 +0100)]
Fix SonarQube Violations

Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Issue-ID: CPS-475
Change-Id: Ic5c83cf2952c649fb634c6a1660696e7575cc1c7

17 months agoUpdate outdated dependencies 70/132570/2
leventecsanyi [Thu, 1 Dec 2022 16:20:11 +0000 (17:20 +0100)]
Update outdated dependencies

- Updated cps-dependecies spring-web & jackson-databind & postgres version numbers

Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I3c9e72cafafb734852a594d14184edfc459db9fb
Issue-ID: CPS-1397

17 months agoEnhance read performance tests 48/132548/2
ToineSiebelink [Thu, 1 Dec 2022 11:27:22 +0000 (11:27 +0000)]
Enhance read performance tests

- Use cleaner base-data to prevent aready existing exception on generated IDs
- Increased sample size to 10K
- Test 3 scenarios now: get parent, get root and query as all 3 required separate perf improvements
- Adjusted Timing for new size (allowing approx 10% margin in Nordix build)

Issue-ID: CPS-1171

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

17 months agoMerge "Filter on private properties of CM Handles"
Toine Siebelink [Fri, 2 Dec 2022 09:18:50 +0000 (09:18 +0000)]
Merge "Filter on private properties of CM Handles"

17 months agoFilter on private properties of CM Handles 83/131883/24
leventecsanyi [Wed, 26 Oct 2022 08:44:08 +0000 (10:44 +0200)]
Filter on private properties of CM Handles

- Moved cm handle query validation to cps-ncmp-service (where it belongs!)
- Added new enum type for private/public field types
- Created new methods for private and public queries
- Added new REST endpoint
- Created service methods for filtering on different types of properties
- Refactored getPublicPropertyPairs and queryCmHandleAnyProperties
- Added unit test for the controller layer
- Fixed refactoring suggestions
- Imporved code coverage with unit tests
- Refactoring
- Added new functionality to NcmpRestInputMapper
- Updated version number to 3.2.1-SNAPSHOT and updated release-notes.rst

Issue-ID: CPS-1236
Change-Id: I0ddf6866473f7c3c6b8507d222d441bf97ca6bdc
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
17 months agoDocumentation update for enabled dataspace filter 41/132441/4
seanbeirne [Thu, 24 Nov 2022 11:01:22 +0000 (11:01 +0000)]
Documentation update for enabled dataspace filter

Issue-ID: CPS-1361
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I988350289a02e44515aeb2acfe6a83845d66e0d9

17 months agoFix: Update python environment to ROBOT3_VENV 40/132440/2
Matthew Watkins [Thu, 24 Nov 2022 09:22:55 +0000 (09:22 +0000)]
Fix: Update python environment to ROBOT3_VENV

Issue-ID: RELENG-4523
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: Id5ea08481bdf14cce149f047d7cd5b8d8254d200

17 months agoFix: Call source_safely after function declaration 23/132423/1
Matthew Watkins [Wed, 23 Nov 2022 14:31:40 +0000 (14:31 +0000)]
Fix: Call source_safely after function declaration

Issue-ID: RELENG-4523
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: Id74b1f24655a83f68b5f28c9eab68bb069f0bc74

17 months agoMerge "Performance Test settings exploration"
Toine Siebelink [Tue, 22 Nov 2022 17:09:45 +0000 (17:09 +0000)]
Merge "Performance Test settings exploration"

18 months agoMerge "Added get APIs for dataspace."
Sourabh Sourabh [Mon, 21 Nov 2022 13:26:49 +0000 (13:26 +0000)]
Merge "Added get APIs for dataspace."

18 months agoPerformance Test settings exploration 11/132311/1
seanbeirne [Fri, 18 Nov 2022 16:22:53 +0000 (16:22 +0000)]
Performance Test settings exploration

Issue-ID: CPS-1351
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I91624b74fc712078a22b9dc18851ca0b5de6a911

18 months agoAdded get APIs for dataspace. 52/130752/14
rajesh.kumar [Tue, 6 Sep 2022 11:47:18 +0000 (11:47 +0000)]
Added get APIs for dataspace.

Issue-ID: CPS-1186
Change-ID: I73f97f986a817d423f93a8d922dcd9647b0829aa
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
18 months agoFix: Swap prepare-csit.sh to Python3 robot framework 06/132306/1
Matthew Watkins [Fri, 18 Nov 2022 00:39:39 +0000 (16:39 -0800)]
Fix: Swap prepare-csit.sh to Python3 robot framework

Issue-ID: RELENG-4523
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: I246f9f76996943826afc7d05796e6ddc5c0de6dc

18 months agoMerge "Revert Hack to get CSIT test working Reverted to using ROBOT3_VENV (tetsing...
Toine Siebelink [Fri, 18 Nov 2022 00:23:32 +0000 (00:23 +0000)]
Merge "Revert Hack to get CSIT test working Reverted to using ROBOT3_VENV  (tetsing CI-mgmnt uodate)"

18 months agoFix: Swap run-csit.sh to Python3 robot framework 01/132301/2
Matthew Watkins [Thu, 17 Nov 2022 22:55:28 +0000 (14:55 -0800)]
Fix: Swap run-csit.sh to Python3 robot framework

Issue-ID: RELENG-4523
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: I15ad8a147a669c503ea023f79cef101baf99c21f

18 months agoRevert Hack to get CSIT test working 72/132272/4
ToineSiebelink [Wed, 16 Nov 2022 18:50:46 +0000 (10:50 -0800)]
Revert Hack to get CSIT test working
Reverted to using ROBOT3_VENV  (tetsing CI-mgmnt uodate)

Issue-ID: RELENG-4523
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I1e8ae6cba2b303042d9f22e1601e9846ebd2f7bf

18 months agoMerge "Query data NCMP-Operational with CPSpath"
Sourabh Sourabh [Wed, 16 Nov 2022 09:41:14 +0000 (09:41 +0000)]
Merge "Query data NCMP-Operational with CPSpath"

18 months agoQuery data NCMP-Operational with CPSpath 97/131797/15
lukegleeson [Thu, 20 Oct 2022 09:14:00 +0000 (10:14 +0100)]
Query data NCMP-Operational with CPSpath

New GET Endpoint: /v1/ch/{cm-handle}/data/ds/{ncmp-datastore-name}/query?cps-path={CPSPath}
Implemented error for {ncmp-datastore-name} other than operational
- (Toine) Refactored and renamed (abstract) handler for better re-use
Mainly by introducing a separate handler for OperationalQuery

Reviewers Toine, Sourabh, Priyank

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

18 months agoUpgrade testcontainers to 1.17.3 88/132188/1
mpriyank [Mon, 14 Nov 2022 15:04:33 +0000 (15:04 +0000)]
Upgrade testcontainers to 1.17.3

- upgrade the testcontainer version to run the integration tests

Issue-ID: CPS-1360
Change-Id: Ia84ebd68a10c72405d8038dbc30a12c97d37f188
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
18 months agoMerge "Node API - Find root by anchor method performance"
Toine Siebelink [Fri, 11 Nov 2022 14:17:34 +0000 (14:17 +0000)]
Merge "Node API - Find root by anchor method performance"

18 months agoMerge "HTTP error code 500 changed to 400 for invalid JSON payload"
Toine Siebelink [Fri, 11 Nov 2022 14:16:46 +0000 (14:16 +0000)]
Merge "HTTP error code 500 changed to 400 for invalid JSON payload"

18 months agoNode API - Find root by anchor method performance 44/132044/7
sourabh_sourabh [Tue, 8 Nov 2022 11:46:05 +0000 (11:46 +0000)]
Node API - Find root by anchor method performance

- Modified findFirstRootByAnchor
- Used fragment extract to build fragment entity to get root data node.

Reviewers : Toine, Priyank and Joe

Issue-ID: CPS-1171
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I843f270e4781f91ae496f39b976e2a7f2a14d55e
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
18 months agoTemporary registry update 46/132146/3
mpriyank [Fri, 11 Nov 2022 11:37:31 +0000 (11:37 +0000)]
Temporary registry update

- temporarily updating the registry to test the failing tests.

Issue-ID: CPS-1360
Change-Id: I7e303bb72b3f87565e27bcca7b1d9f5afc2b1417
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
18 months agoHTTP error code 500 changed to 400 for invalid JSON payload 47/131447/8
rajesh.kumar [Wed, 12 Oct 2022 12:11:00 +0000 (12:11 +0000)]
HTTP error code 500 changed to 400 for invalid JSON payload

Issue-ID: CPS-1289
Change-ID: I73f97f986a817d423f93a8d922dcd9647b1012aa
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
18 months agoMerge "Hack to get CSIT test working"
Sourabh Sourabh [Wed, 9 Nov 2022 09:54:39 +0000 (09:54 +0000)]
Merge "Hack to get CSIT test working"

18 months agoFix RTD broken links 66/132066/1
mpriyank [Wed, 9 Nov 2022 09:36:24 +0000 (09:36 +0000)]
Fix RTD broken links

- Broken link for logback xml file
- Broken link for oom_user_guide

Issue-ID: CPS-1378
Change-Id: I071d5ad890c1471b50a43517427eeab27631fd52
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>