mpriyank [Wed, 8 Feb 2023 11:21:08 +0000 (11:21 +0000)]
Release Process Step 7
- updated pom to 3.2.3-SNAPSHOT
- updated version.properties and updated the release notes to properly
depict the correct version
Issue-ID: CPS-1476
Change-Id: Ied60194c6dd4153b58a43715cb729ad75b8e12bf
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
mpriyank [Wed, 8 Feb 2023 10:40:18 +0000 (10:40 +0000)]
Release Step 6
- adding container yaml file for the release
Issue-ID: CPS-1476
Change-Id: Ib61a14591b9fe62e96d24ae3c557f720a23217c7
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
mpriyank [Wed, 8 Feb 2023 09:58:24 +0000 (09:58 +0000)]
Release process Step 4
- adding maven stage yaml file
Issue-ID: CPS-1476
Change-Id: Iafbc5ed63cf4edc275e5b4087c154439c5c5ac55
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
mpriyank [Tue, 7 Feb 2023 17:55:10 +0000 (17:55 +0000)]
Release Steps 1 and 2
- added the jira ticket as part of step1
- copied the changes of openapi.yaml as part of step2 of release process
Issue-ID: CPS-1476
Change-Id: I877757e0396e6349b1ab5e966ae4440c4fead829
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Arne Chrestin [Tue, 7 Feb 2023 16:39:24 +0000 (17:39 +0100)]
Correct calculation of zip archive size for schemaset upload
Correct calculation of zip archive size for schemaset upload
Issue-ID: CPS-1477
Change-Id: I73f97f986a817d423f93a8d922dcd9647b0203ab
Signed-off-by: Arne Chrestin <arne.chrestin@telekom.de>
danielhanrahan [Fri, 3 Feb 2023 18:35:16 +0000 (18:35 +0000)]
Update CmHandleState on deregistration response
Current implementation incorrectly sets CmHandleState to DELETED for
CM handles that were not deleted.
- Update CmHandleState to DELETED only for deleted CM handles
- Minor test refactoring
Issue-ID: CPS-1471
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ibf8b6d2b87d46a7633f0497b065e3d4099851fd6
Luke Gleeson [Fri, 3 Feb 2023 10:08:57 +0000 (10:08 +0000)]
Merge "Descendants description changed in openApi"
rajesh.kumar [Fri, 3 Feb 2023 06:36:40 +0000 (06:36 +0000)]
Descendants description changed in openApi
Issue-ID: CPS-1381
Change-ID: I73f97f986a817d423f93a8d922dcd9647b0203aa
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
danielhanrahan [Wed, 1 Feb 2023 14:48:52 +0000 (14:48 +0000)]
CmHandle batch deletion
- Use plural deleteDataNodes to remove CmHandles in batches,
falling back to individual delete on error
- Use single deleteDataNode instead of deleteListOrListElement for
individual delete
Issue-ID: CPS-1464
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If09f22478df8703290c8fc24aa6fe2a11c90788a
emaclee [Thu, 2 Feb 2023 10:58:35 +0000 (10:58 +0000)]
Modify CSIT script to have absolute root path env
- change set up to call docker compose for cps-ncmp
- add root as a property in 'test.properties'
- root is specified to be root directory folder for the current
project
- modified docker compose init container to use ROOT env var
Issue-ID: CPS-1472
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: Ie5ac6bbff7cb1e761501bd0db8447f86af06b95f
danielhanrahan [Tue, 24 Jan 2023 11:23:02 +0000 (11:23 +0000)]
Create plural version of deleteDataNode
- Add method to CpsDataService to batch delete data nodes and lists
- Use native queries to batch delete fragment entities by xpaths,
for data nodes and lists
- Add performance tests for batch delete
- Refactor FragmentNativeRepository
- Add single-column version of createTemporaryTable
- Renamed metric cps.data.service.datanode.batch.delete
to cps.data.service.datanode.all.delete
Issue-ID: CPS-1438
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I1851f9c7ef0b1be4bd421b3352d9697a2dd23f79
Luke Gleeson [Tue, 31 Jan 2023 11:41:54 +0000 (11:41 +0000)]
Merge "Introduce Instrumentation"
ToineSiebelink [Thu, 19 Jan 2023 16:45:58 +0000 (16:45 +0000)]
Introduce Instrumentation
- Add instrumentation related dependency
- Added Timed Instrumentation
- CPS-Service Crud methods
- CPS Yang parsing
- NCMP Registration methods
- NCMP Events handling
- Remove manual Gauge for YanResources Cache
as (better!) instrumentation is already built into the 3PP
- Sorted dependecies alphabetically (as we used to enforce, to prevent duplicates)
- Added ## P E R F O R M A N C E T E S T R E S U L T S ### mini report
- (unrelated) test improvement (because of bug that turned out to be invalid)
Reviewers: Sourabh,Priyank, Luke
Issue-ID: CPS-1457
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I34b20bece2f59488b022b8effa9470704c57be4d
seanbeirne [Mon, 30 Jan 2023 16:53:37 +0000 (16:53 +0000)]
Edit example given for ncmp datastore
Issue-ID: CPS-1468
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: Id746604fca83333f4ee186ce96ea80cb779c4ac2
lukegleeson [Mon, 30 Jan 2023 15:18:54 +0000 (15:18 +0000)]
Fix for integration test module tests
Added Fragment Native Repository to test config
Removed test profile
Issue-ID: CPS-1466
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: Id845b713e760801be480aa9aea6cb304decd05b9
seanbeirne [Fri, 27 Jan 2023 18:09:33 +0000 (18:09 +0000)]
Update version files for release process
- Updated version.properties
- Updated release-notes
- Updated pom files
Issue-ID: CPS-1835
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I0f837ac41d24b41d7c2b9e3dfe2dacc550c0aafa
seanbeirne [Fri, 27 Jan 2023 16:56:00 +0000 (16:56 +0000)]
Create release container yaml file for release process
Issue-ID: CPS-1385
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I95f3f76c49ea9eb9556fb4b32dbe10dc3e8283ad
Priyank Maheshwari [Fri, 27 Jan 2023 16:54:31 +0000 (16:54 +0000)]
Merge "Create release yaml file for release process"
Sourabh Sourabh [Fri, 27 Jan 2023 16:41:37 +0000 (16:41 +0000)]
Merge "Release Note Update"
lukegleeson [Wed, 25 Jan 2023 15:06:52 +0000 (15:06 +0000)]
Release Note Update
Added Query large outputs using limit/depth/pagination
Reordered existing items in ascending Jira number order
Added missing Jiras
Issue-ID: CPS-1381
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I1a124db8d8a4adffc7807aecddb378876b732cd7
seanbeirne [Thu, 26 Jan 2023 14:19:31 +0000 (14:19 +0000)]
Create release yaml file for release process
Issue-ID: CPS-1385
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I98c7cafb3b850ef6a419c87c242e1f469ccf600e
Luke Gleeson [Fri, 27 Jan 2023 13:37:17 +0000 (13:37 +0000)]
Merge "Define and onboard model for subscription events"
emaclee [Wed, 25 Jan 2023 12:18:15 +0000 (12:18 +0000)]
Define and onboard model for subscription events
- created new yang model for subscription events; added in
ncmp-service
- created new container/service to run an init container
- added script file to the container
- added Dockerfile to be the base image of the init container
- health check for CPS added as part of script
- removed previous patch modification in setup
- changed path of models and dockerfile to main project
- latest patch: changed connection to external ports of CPS
Issue-ID: CPS-1393
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I2367020e57b34a669dda93050eeaeede5846304e
Sourabh Sourabh [Thu, 26 Jan 2023 17:39:23 +0000 (17:39 +0000)]
Merge "NCMP De-Register response payload and status is invalid"
Toine Siebelink [Thu, 26 Jan 2023 17:36:17 +0000 (17:36 +0000)]
Merge "Disable persistence integration tests"
lukegleeson [Thu, 26 Jan 2023 17:17:56 +0000 (17:17 +0000)]
Disable persistence integration tests
Disable tests for deploy
Enable tests in Nordix jobs
Issue-ID: CPS-1466
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I2aa4952ea800d3499ea7380faefdcac1d8955cb4
sourabh_sourabh [Wed, 25 Jan 2023 17:13:38 +0000 (17:13 +0000)]
NCMP De-Register response payload and status is invalid
-Refactored "DELETING" and "DELETED" update state to avoid wrong
response code.
Issue-ID: CPS-1463
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I639ba94986c4ffe48d2d42f14f6a6b4e2bd2713e
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Sourabh Sourabh [Thu, 26 Jan 2023 12:03:10 +0000 (12:03 +0000)]
Merge "Springboot Integration tests improvements"
seanbeirne [Thu, 26 Jan 2023 09:21:44 +0000 (09:21 +0000)]
Update openAPI documentation for release process
Issue-ID: CPS-1385
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: Ia0b011d4497e7d95f9b625514e8b3216575df044
lukegleeson [Wed, 11 Jan 2023 09:45:53 +0000 (09:45 +0000)]
Springboot Integration tests improvements
Creation of CpsIntegrationSpecBase
Demonstration of test class implementing CpsIntegrationSpecBase in CpsPersistenceSpec
Tests use reduced liquibase steps, basic bookstore yang model and bookstore json payload
Issue-ID: CPS-1379
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I38202d0888808d08d85fce1aab45fc43e8b0cec3
Toine Siebelink [Tue, 24 Jan 2023 17:36:46 +0000 (17:36 +0000)]
Merge "Update INFO.yaml Committers"
lukegleeson [Tue, 24 Jan 2023 12:20:28 +0000 (12:20 +0000)]
Update INFO.yaml Committers
Issue-ID: CPS-1462
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I0b5bd7baffc03ae8c91a73926c4fa7596dba1a96
danielhanrahan [Thu, 19 Jan 2023 18:20:11 +0000 (18:20 +0000)]
Handle root xpaths in getDataNodes
Issue-ID: CPS-1458
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I64abf97317afe4335c8d04169689ee1396e75860
Toine Siebelink [Tue, 24 Jan 2023 10:12:16 +0000 (10:12 +0000)]
Merge "Use native query to delete data nodes"
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>
Toine Siebelink [Mon, 23 Jan 2023 16:32:55 +0000 (16:32 +0000)]
Merge "Further TTL increase"
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
Toine Siebelink [Mon, 23 Jan 2023 12:07:27 +0000 (12:07 +0000)]
Merge "Added depth parameter in query nodes API."
Toine Siebelink [Mon, 23 Jan 2023 11:08:07 +0000 (11:08 +0000)]
Merge "[NCMP] Consume & Forward to client topic"
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>
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>
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>
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
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>
Toine Siebelink [Wed, 18 Jan 2023 15:24:15 +0000 (15:24 +0000)]
Merge "Bug Analysis for LOCKED cmHandles"
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>
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
Sourabh Sourabh [Mon, 16 Jan 2023 08:40:23 +0000 (08:40 +0000)]
Merge "Fetch CM handles by collection of xpaths"
Toine Siebelink [Thu, 12 Jan 2023 16:31:07 +0000 (16:31 +0000)]
Merge "Updating CmHandleStates using batch operation"
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
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
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
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
Toine Siebelink [Fri, 23 Dec 2022 14:40:44 +0000 (14:40 +0000)]
Merge "Fix SonarQube warnings"
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
Toine Siebelink [Fri, 23 Dec 2022 11:41:20 +0000 (11:41 +0000)]
Merge "Update Release Notes"
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
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
Toine Siebelink [Thu, 22 Dec 2022 16:01:28 +0000 (16:01 +0000)]
Merge "Temp Table Creation improvements"
Toine Siebelink [Thu, 22 Dec 2022 15:46:16 +0000 (15:46 +0000)]
Merge "XML content on create anchors node support"
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
Toine Siebelink [Thu, 22 Dec 2022 15:12:50 +0000 (15:12 +0000)]
Merge "Add fix for posting nodes with xPath with '/'"
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>
Toine Siebelink [Thu, 22 Dec 2022 12:22:19 +0000 (12:22 +0000)]
Merge "Consume Subscription Creation Event"
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
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>
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
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
Joseph Keenan [Wed, 21 Dec 2022 11:42:39 +0000 (11:42 +0000)]
Merge "API versioning supported and added different versions for POST APIs"
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
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
Toine Siebelink [Mon, 19 Dec 2022 14:22:09 +0000 (14:22 +0000)]
Merge "Use public exposed interface of CPS service instead of spi"
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
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>
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>
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"
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
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>
Joseph Keenan [Thu, 15 Dec 2022 09:54:52 +0000 (09:54 +0000)]
Merge "Query Optimization"
Toine Siebelink [Thu, 15 Dec 2022 08:36:01 +0000 (08:36 +0000)]
Merge "Analyze outdated CPS Dependencies"
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
Toine Siebelink [Tue, 13 Dec 2022 11:08:25 +0000 (11:08 +0000)]
Merge "Fixing SonarQube violations"
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
Toine Siebelink [Mon, 12 Dec 2022 16:09:21 +0000 (16:09 +0000)]
Merge "Fix DataNodeBuilder for ChoiceNodes"
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
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>
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
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
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."
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>