mpriyank [Mon, 12 Feb 2024 16:16:36 +0000 (16:16 +0000)]
Update cm-data-subscriptions model
- rename leaf-list subscribers to subscriptionIds
- code using the same also updated
- not creating a new version of model as nobody is using it at the
moment
Issue-ID: CPS-2088
Change-Id: I43d679047bdfc665b56f262757acc4bbaba2733f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
mpriyank [Wed, 7 Feb 2024 14:55:03 +0000 (14:55 +0000)]
CmSubscription minor code refactoring
- As per discusstion , refactoring the naming of the classes and caches
- Combining the validation service with CmSubscriptionPersistence
service
- removed dmiCmNotificationScopeFilter class and the attributes are part
of Predicates only
Issue-ID: CPS-2078
Change-Id: Ic2b3ee28a150f3ae6e0911e88296f01e22604ef5
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
danielhanrahan [Thu, 8 Feb 2024 15:04:05 +0000 (15:04 +0000)]
Fix test failure by ordering leaf-lists
YANG specifies two ways that leaf-lists can be ordered:
- ordered-by user: original order in JSON is preserved
- ordered-by system (default): it is up to the system how to order
For leaf-lists to preserve same order as the JSON, the Yang module
must specify 'ordered-by user'. To ensure consistent behaviour even
when system ordering is used, the leaf-list is sorted during parsing.
- Add 'ordered-by user' to authors field in bookstore.yang
- Sort leaf-list during parsing when using 'ordered-by system'
- Add new tests to verify ordering
Issue-ID: CPS-2057
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I6ab688ec2fa4a22182e853d1a8b26642f278c40a
danielhanrahan [Fri, 9 Feb 2024 17:40:18 +0000 (17:40 +0000)]
Include integration test results in Jacoco
integration-test module is not recording code coverage due to
incorrectly overriding the maven surefire config from parent pom.
Issue-ID: CPS-2086
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I774c64acedca546f5c01403597bd9f5010de73d2
JvD_Ericsson [Wed, 31 Jan 2024 13:47:28 +0000 (13:47 +0000)]
Add a configurable delay to the DMI stub
Added realistic default delay to application.yaml
Added realistic default delay to docker-compose.yml
Issue-ID: CPS-2053
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I756774e9538926aa341f1338fcb6882951ce3e69
rajesh.kumar [Mon, 5 Feb 2024 13:37:11 +0000 (19:07 +0530)]
Create schemas for notification service in cps-core
Add schema files for notification service
Issue-ID:CPS-2066
Change-Id: I56c34400dc73c71b936a51260efd230205abbacd
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
Toine Siebelink [Thu, 8 Feb 2024 16:40:21 +0000 (16:40 +0000)]
Merge "Add CSIT test: Delete CM Handle"
Toine Siebelink [Thu, 8 Feb 2024 16:38:37 +0000 (16:38 +0000)]
Merge "Correct use of Spock setup and cleanup methods (no need for @Before @After)"
Toine Siebelink [Thu, 8 Feb 2024 16:36:52 +0000 (16:36 +0000)]
Merge "Revert "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection""
Levente Csanyi [Thu, 8 Feb 2024 16:12:06 +0000 (16:12 +0000)]
Revert "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection"
This reverts commit
67681820f2a7fea88cbc6cbe5b3d483dae506d55.
Reason for revert: does not work
Change-Id: I92c063b59261d25774ee34664d834399c269f0c2
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Toine Siebelink [Thu, 8 Feb 2024 14:08:47 +0000 (14:08 +0000)]
Merge "Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection"
leventecsanyi [Thu, 1 Feb 2024 12:35:52 +0000 (13:35 +0100)]
Introduce Hazelcast for alternateId-cmHandle relation pt. 2 - error collection
- added business logic to check duplicated ids (create and update scenarios)
- added new unit test for CmHandleIdMapperSpec
- added test for the new registration scenario
Issue-ID: CPS-1988
Change-Id: I4bf2e25c87c57938d336f2fe70378b400bab07b0
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
ToineSiebelink [Wed, 7 Feb 2024 17:07:25 +0000 (17:07 +0000)]
Correct use of Spock setup and cleanup methods (no need for @Before @After)
- unfortunately we copied the bad test code for logging about 4 times alraedy...
- simplified setup for WatchdogSchedulingConfigurerSpec
Issue-ID:CPS-465
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I8d068541263272fdf99a6e30d365d85e31726432
Toine Siebelink [Thu, 8 Feb 2024 10:48:23 +0000 (10:48 +0000)]
Merge "CmHandle delete is failing with InternalServerError: Null key is not allowed - add missing unit test"
JvD_Ericsson [Wed, 31 Jan 2024 15:01:31 +0000 (15:01 +0000)]
Add alternateId to legacy lcm-event
Issue-ID: CPS-2039
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I03863e986ea6b847fd7d25e55a24f948ca9a983d
Toine Siebelink [Wed, 7 Feb 2024 17:47:19 +0000 (17:47 +0000)]
Merge "Replace sleep with PollingConditions"
Toine Siebelink [Wed, 7 Feb 2024 17:36:05 +0000 (17:36 +0000)]
Merge "Orphaned modules are removed from the DB before cmhandle removal"
danielhanrahan [Wed, 7 Feb 2024 16:07:27 +0000 (16:07 +0000)]
Bump CPS to 3.4.4-SNAPSHOT
- bump CPS to 3.4.4-SNAPSHOT and update the docs
Issue-ID: CPS-2077
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I1658c83642c8e64903f4bc03b74b6f5726d0227e
halil.cakal [Tue, 6 Feb 2024 11:54:51 +0000 (11:54 +0000)]
Add CSIT test: Delete CM Handle
- Add new csit test to ncmp inventory
Issue-ID: CPS-2073
Change-Id: Ie683f043b2dc1cc742945a4874f19688a8702009
Signed-off-by: halil.cakal <halil.cakal@est.tech>
danielhanrahan [Wed, 7 Feb 2024 15:45:06 +0000 (15:45 +0000)]
Add container yaml for CPS 3.4.3
- added container yaml to release the docker images for CPS 3.4.3
Issue-ID: CPS-2077
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I2e0563a1942d571135ce688c1a339cd4a56f7458
danielhanrahan [Wed, 7 Feb 2024 15:39:22 +0000 (15:39 +0000)]
Add maven stage yaml for CPS 3.4.3
- maven stage yaml to release 3.4.3
Issue-ID: CPS-2077
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iaef72394a7ddc64999c95c96aed9873a6487be77
danielhanrahan [Wed, 7 Feb 2024 14:21:58 +0000 (14:21 +0000)]
Update release notes for CPS 3.4.3
- updated release notes for 3.4.3
- updated openapi files
Issue-ID: CPS-2077
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I2ded94a243dbe93885525d73f90dde3dbbb79696
JvD_Ericsson [Thu, 1 Feb 2024 13:55:50 +0000 (13:55 +0000)]
Replace sleep with PollingConditions
Issue-ID: CPS-1950
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I0e23c697ef6b5a134295728f352f2dff7be05a62
sourabh_sourabh [Wed, 7 Feb 2024 10:26:33 +0000 (10:26 +0000)]
Orphaned modules are removed from the DB before cmhandle removal
- changed sequence of delete schema set by cascade to remove unused yang
resource modules at last.
Issue-ID: CPS-2031
Change-Id: Icefc075165231cc4b9b170e04a2d12af645529e9
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
leventecsanyi [Tue, 6 Feb 2024 12:56:13 +0000 (13:56 +0100)]
CmHandle delete is failing with InternalServerError: Null key is not allowed - add missing unit test
Issue-ID: CPS-2064
Change-Id: If765c25cae8d69796fff219fc39ab27455bfd957
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Priyank Maheshwari [Wed, 7 Feb 2024 09:27:29 +0000 (09:27 +0000)]
Merge "Fix: Documentation for Delta Feature"
Toine Siebelink [Tue, 6 Feb 2024 17:46:51 +0000 (17:46 +0000)]
Merge "Add integration test for extending API: Get Module Definitions"
Lee Anjella Macabuhay [Tue, 6 Feb 2024 14:35:04 +0000 (14:35 +0000)]
Merge "Add maven classifier to Spring Boot JAR"
Toine Siebelink [Tue, 6 Feb 2024 11:53:52 +0000 (11:53 +0000)]
Merge "[BUG] Retry interval for kafka consumer"
Arpit Singh [Tue, 6 Feb 2024 11:24:50 +0000 (16:54 +0530)]
Fix: Documentation for Delta Feature
Issue-ID: CPS-2074
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Change-Id: Ib32b4c75f7eb5402367f69a077c447a3eb062b0b
Priyank Maheshwari [Tue, 6 Feb 2024 11:10:25 +0000 (11:10 +0000)]
Merge "Limit heap size in Groovy integration tests"
Lee Anjella Macabuhay [Tue, 6 Feb 2024 10:49:21 +0000 (10:49 +0000)]
Merge "CmSubscription service layer method #1"
Lee Anjella Macabuhay [Tue, 6 Feb 2024 10:49:01 +0000 (10:49 +0000)]
Merge "CmSubscription validate datastore"
Toine Siebelink [Tue, 6 Feb 2024 10:47:40 +0000 (10:47 +0000)]
Merge "moduleSetTag and cmhandle upgrade functionalities fix"
mpriyank [Tue, 6 Feb 2024 10:44:14 +0000 (10:44 +0000)]
[BUG] Retry interval for kafka consumer
- added retry interval of 10 seconds in case of any auth exception when
consuming kafka messages.
- This fix prevents us from restarting the whole app inorder to restart
the consumer.
Issue-ID: CPS-2070
Change-Id: Ie02d3cb686741cd92dd006dab1d49c3480d58720
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
sourabh_sourabh [Fri, 12 Jan 2024 10:24:42 +0000 (10:24 +0000)]
moduleSetTag and cmhandle upgrade functionalities fix
- Insert only unmapped yang resources
- In case of removed module call dmi plugin service to get modules.
Issue-ID: CPS-2027
Change-Id: Ic1903c20169a913c835a3eee909357daec45f51e
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
danielhanrahan [Fri, 2 Feb 2024 12:25:47 +0000 (12:25 +0000)]
Add maven classifier to Spring Boot JAR
Use a classifier so that both thin jar and spring boot jar are built.
Issue-ID: CPS-2072
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iafa35992db09abf01b82668cde0eb75f12db7258
Lee Anjella Macabuhay [Tue, 6 Feb 2024 10:17:06 +0000 (10:17 +0000)]
Merge "Set resource limits of docker-compose containers"
leventecsanyi [Mon, 5 Feb 2024 10:19:34 +0000 (11:19 +0100)]
CmHandle delete is failing with InternalServerError: Null key is not allowed
- added null check to alt id removal from cache
Issue-ID: CPS-2064
Change-Id: Iee484b96f505106613ce2d646898ca7ee3873f28
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
mpriyank [Thu, 1 Feb 2024 10:57:02 +0000 (10:57 +0000)]
CmSubscription service layer method #1
- adding a service layer method to check if we have an ongoing
cmsubscription or not.
- test scenario for the same.
- Other service layer method to be introduced in the subsequent patches.
Issue-ID: CPS-2042
Change-Id: I33637138457a0c5d49b80dd4967057bd5bfa69d4
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Arpit Singh [Tue, 30 Jan 2024 05:21:28 +0000 (10:51 +0530)]
Documentation update for Delta Feature
- Documantation about Delta Feature
- Documantation on API 1: Delta between 2 anchors
Issue-ID: CPS-2056
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Change-Id: I9841ea166f7c57ab6218fefa5b577b4053e39490
halil.cakal [Tue, 30 Jan 2024 18:46:45 +0000 (18:46 +0000)]
Add integration test for extending API: Get Module Definitions
- Add new module: bookstore-types
- Import the new module from stores module
- Change integration testwares to comply with
the new module
- Add new integration test for retrieving module
definition
Issue-ID: CPS-1135
Change-Id: Ib51c998ceeab50d3fcea212ed55c8ab50ca09257
Signed-off-by: halil.cakal <halil.cakal@est.tech>
Sourabh Sourabh [Thu, 1 Feb 2024 16:57:22 +0000 (16:57 +0000)]
Merge "Extend API: Get Module Definitions"
halil.cakal [Tue, 23 Jan 2024 10:05:36 +0000 (10:05 +0000)]
Extend API: Get Module Definitions
- add query parameters: module-name and revision to OpenAPI
- extend the controller method to hande the new parameters
- add the new method stack to the service layer
- extend the SQL query to support the new parameters
- add unit and integration testwares
Issue-ID: CPS-1135
Change-Id: I089ad2ad71effb58ac0ba809e9f441d6cdb59c4f
Signed-off-by: halil.cakal <halil.cakal@est.tech>
mpriyank [Thu, 1 Feb 2024 12:48:34 +0000 (12:48 +0000)]
CmSubscription validate datastore
- introduced isValidDatastore to check the incoming datastore against
the valid datastore for this use case.
- Testware added
Issue-ID: CPS-2059
Change-Id: I2602396fe2f404789fc4e0f01850eeba2a75bd21
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
danielhanrahan [Mon, 29 Jan 2024 14:28:06 +0000 (14:28 +0000)]
Limit heap size in Groovy integration tests
Configure maven to limit heap size in integration tests to
help detect OutOfMemory errors in groovy tests.
The figure 512MB was chosen as this is 25% of 2GB
(JVM by default uses 25% of total memory for heap).
Issue-ID: CPS-2052
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ie1160f85ba3970e4c43fccee41c2821dc83a8e53
danielhanrahan [Mon, 29 Jan 2024 13:44:13 +0000 (13:44 +0000)]
Set resource limits of docker-compose containers
Without explicit limits, docker will use all available system
resources for containers. In order to better detect/reproduce
performance issues, limits are set to reflect those used in our
production deployment.
Issue-ID: CPS-2048
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I0549b7f9e57dff10c8b09d839ffb4979d66c643e
leventecsanyi [Thu, 11 Jan 2024 11:53:26 +0000 (12:53 +0100)]
Introduce Hazelcast for alternateId-cmHandle relation
- added new Hazelcast config
- added cache initialization in CmHandleIdMapper
- added unit tests
- updated deployment.rst
- refactored cache updating
Issue-ID: CPS-1988
Change-Id: Iea6f884e584bf8cea8612ddbced4329e783c60a5
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Jessica Wagantall [Wed, 31 Jan 2024 19:59:37 +0000 (11:59 -0800)]
Fix: Add six as dependency for sphinxcontrib-swaggerdoc
Issue-ID: CIMAN-33
Change-Id: Ic9f1fcc4e220163e20bf61da0511d7479eb4f180
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Priyank Maheshwari [Mon, 29 Jan 2024 13:33:05 +0000 (13:33 +0000)]
Merge "Correct datastore names via DatastoreType Enum"
emaclee [Wed, 24 Jan 2024 18:46:15 +0000 (18:46 +0000)]
Correct datastore names via DatastoreType Enum
- Use existing DatastoreType enum in defining datastore name
Issue-ID: CPS-2046
Change-Id: I6f2f77c96b239546f7141267c0c01edfc599b445
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
mpriyank [Tue, 23 Jan 2024 15:48:07 +0000 (15:48 +0000)]
CloudEvents support for cps-core
- Moving cloud events dependencies to the cps-service module instead of
cps-ncmp-service
- Testware has moved and new tests also introduced
- EventsPublisher also moved
Issue-ID: CPS-2040
Change-Id: Ibafb15e7e9efbdbe1e00e2b4f0da820bbcead004
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Priyank Maheshwari [Thu, 25 Jan 2024 13:38:02 +0000 (13:38 +0000)]
Merge "Omitting the basic auth header in healthcheck test"
waqas.ikram [Thu, 25 Jan 2024 11:36:16 +0000 (11:36 +0000)]
Omitting the basic auth header in healthcheck test
as it is not required and adding v3 to uri of api-docs
Issue-ID: CPS-2045
Change-Id: If229bbd46a5c5187ddac242f8bfda00d5c951995
Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
Toine Siebelink [Thu, 25 Jan 2024 12:42:14 +0000 (12:42 +0000)]
Merge "CPS 1824: Delta Between 2 Anchors release notes"
Toine Siebelink [Tue, 23 Jan 2024 12:02:12 +0000 (12:02 +0000)]
Merge "Add retry mechanism instead of sleep"
JvD_Ericsson [Mon, 22 Jan 2024 13:32:34 +0000 (13:32 +0000)]
Add retry mechanism instead of sleep
- replaced sleeps with retry mechanism
- removed unnecessary sleeps before polling
- changed formatting
Issue-ID: CPS-1093
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I7e26570eeedea09fd36f9c9bce87c4cd45906aa9
mpriyank [Mon, 22 Jan 2024 15:46:37 +0000 (15:46 +0000)]
CmSubscription review comments
- Removed the old deprecated cmSubscription json examples
- Incorporated minor review comments from myself
Issue-ID: CPS-1951
Change-Id: Ifadaa186cc210b81bb1b27f73f537e1c11bf461d
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
seanbeirne [Wed, 20 Dec 2023 16:37:37 +0000 (16:37 +0000)]
Read and validate incoming sub create request from Kafka
Issue-ID: CPS-1951
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I402dacc47c93e77a4ca63598acebe27c780951de
Lee Anjella Macabuhay [Mon, 22 Jan 2024 09:40:02 +0000 (09:40 +0000)]
Merge "Remove Lambda & Restructure File"
Toine Siebelink [Mon, 22 Jan 2024 08:35:36 +0000 (08:35 +0000)]
Merge "Use PollingConditions to improve intermittent test failure"
Priyank Maheshwari [Fri, 19 Jan 2024 13:56:22 +0000 (13:56 +0000)]
Merge "Remove onboarding of old solution subscription model"
seanbeirne [Wed, 17 Jan 2024 15:18:10 +0000 (15:18 +0000)]
Remove Lambda & Restructure File
-Removed Lambda from CompositeStateUtils
-Restructured CpsDataPersistenceServiceImpl to more logical layout
Issue-ID: CPS-1238
Change-Id: I09096dab474230d04b15c204cbea95a2f1285366
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Arpit Singh [Fri, 19 Jan 2024 08:16:03 +0000 (13:46 +0530)]
CPS 1824: Delta Between 2 Anchors release notes
Updated release notes for Delta Feature
Issue-ID: CPS-1824
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Change-Id: I1c2403391e85aec6a9e34f0ff616c17b100bf6a9
emaclee [Thu, 18 Jan 2024 17:27:54 +0000 (17:27 +0000)]
Remove onboarding of old solution subscription model
-Remove onboarding of old subscription model
-Remove initial solution subscription model
Change-Id: Id930dcfd078d71e7c275d0a3ef1117f8fed2e9d3
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Toine Siebelink [Thu, 18 Jan 2024 16:51:48 +0000 (16:51 +0000)]
Merge "CPS Delta API: Update action for delta service"
Priyank Maheshwari [Thu, 18 Jan 2024 15:07:38 +0000 (15:07 +0000)]
Merge "Create datastores for NCMP w/subscription model"
JvD_Ericsson [Thu, 11 Jan 2024 11:57:17 +0000 (11:57 +0000)]
Use PollingConditions to improve intermittent test failure
Set timeOutInMilliSeconds to 100 (default was 0)
Issue-ID: CPS-1950
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I0028f0cd5e5e89d979d4200df77dbd7a42105622
Lee Anjella Macabuhay [Thu, 18 Jan 2024 10:09:30 +0000 (10:09 +0000)]
Merge "Remove deprecated cmSubscription code"
emaclee [Wed, 17 Jan 2024 11:59:29 +0000 (11:59 +0000)]
Create datastores for NCMP w/subscription model
Issue-ID: CPS-2035
Change-Id: I80234c7ca93c5774ee50082803cdc102f693a5a7
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
mpriyank [Fri, 12 Jan 2024 11:12:13 +0000 (11:12 +0000)]
Remove deprecated cmSubscription code
- Newer approach for cm subscription is in progress so removing the
deprecated code now
- Also deleted the old cache config
- Changes to trust level csit to fix the kafka unknown partition issue
Issue-ID: CPS-2028
Change-Id: Ieb19669e53f3f64cca876fa67d0b6409a97b2a09
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
ToineSiebelink [Tue, 16 Jan 2024 08:40:51 +0000 (08:40 +0000)]
Clear instance based Schema Context Cache upon validation errors
- retry yang parser exceptions one time by clearing cache
- split yangUtils into YangParserHelper (instance based) and YangUtils for non-parsering static methods
- removed public methods only used from test. Refactored to use variation with (empty) parent path
- removed use of optional for parentPath, easier to handle with just an empty string!
- make methods no longer used in production code in YangUtils are private
- udpate testware to use proper public methods instead of private methods of yang utils / parser (helper)
Issue-ID:CPS-2000
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I0c7590a5e1495d047006e7136f1bd873be37f7b0
Arpit Singh [Tue, 21 Nov 2023 15:31:43 +0000 (21:01 +0530)]
CPS Delta API: Update action for delta service
- Added code for Update action in Delta service
- added method to get updated Leaf data: getUpdatedLeavesBetweenSourceAndTargetDataNode
- added method to compare Leaf data common in source and target data
node
- added method to process leaves unique to target data node
- added method to compare leaves: compareLeaves
- added method to store updated data to a DeltaReport: addUpdatedLeavesToDeltaReport
- Added corresponding testware
Issue-ID: CPS-1824
Signed-off-by: Arpit Singh <as00745003@techmahindra.com>
Change-Id: I3de07ea3227988784a0892f6a92c238ecf00a7fa
halil.cakal [Wed, 10 Jan 2024 11:32:59 +0000 (11:32 +0000)]
Add CSIT test for CPS Swagger UI
- Test that CPS Swagerr UI is accessible.
Issue-ID: CPS-1916
Signed-off-by: halil.cakal <halil.cakal@est.tech>
Change-Id: Id8dba21f400412fc8b81892e29454f8606e53008
emaclee [Mon, 15 Jan 2024 12:58:27 +0000 (12:58 +0000)]
Testing for jenkins plugin
Issue-ID: CPS-1953
Change-Id: I3ee12576e75449c90c789de32a50f9b8e8757ff7
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Toine Siebelink [Mon, 15 Jan 2024 10:29:14 +0000 (10:29 +0000)]
Merge "Create tests for EventPublisher error scenarios"
danielhanrahan [Thu, 11 Jan 2024 15:25:18 +0000 (15:25 +0000)]
Bump CPS to 3.4.3-SNAPSHOT
- bump CPS to 3.4.3-SNAPSHOT and update the docs
Issue-ID: CPS-2026
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If0036c6245ddbae2a401b712cc13e3208491ed2f
danielhanrahan [Thu, 11 Jan 2024 15:05:08 +0000 (15:05 +0000)]
Add container yaml for CPS 3.4.2
- added container yaml to release the docker images for CPS 3.4.2
Issue-ID: CPS-2026
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I6970a99894ceed26a982350663533cb344ec3e50
danielhanrahan [Thu, 11 Jan 2024 14:52:50 +0000 (14:52 +0000)]
Add maven stage yaml for CPS 3.4.2
- maven stage yaml to release 3.4.2
Issue-ID: CPS-2026
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ibe7d85c81383e678783c10383bf142523c8cdf51
JvD_Ericsson [Wed, 10 Jan 2024 11:01:05 +0000 (11:01 +0000)]
Create tests for EventPublisher error scenarios
- Added tests for error scenarios
- Added tests for expected scenarios
Issue-ID: CPS-1978
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I6ba19ac456098f074e634f7cf70fdc141491c635
Toine Siebelink [Thu, 11 Jan 2024 14:25:42 +0000 (14:25 +0000)]
Merge "Improve dmi plugin csit stub - Modified dmi plugin stub to return diff. modules based on cm handle id"
halil.cakal [Thu, 11 Jan 2024 11:10:17 +0000 (11:10 +0000)]
Update release notes for 3.4.2
- Add Trust Level epic to the release notes
Issue-ID: CPS-2024
Change-Id: Ie5425bca6e3d48b957c703af50c7542c4401d1b4
Signed-off-by: halil.cakal <halil.cakal@est.tech>
sourabh_sourabh [Thu, 4 Jan 2024 17:01:27 +0000 (17:01 +0000)]
Improve dmi plugin csit stub
- Modified dmi plugin stub to return diff. modules based on cm handle
id
Issue-ID: CPS-2006
Change-Id: I61a0fd11b8f41ceb69dac296ad3570b91137cdcd
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Lee Anjella Macabuhay [Thu, 11 Jan 2024 09:28:17 +0000 (09:28 +0000)]
Merge "Enable hibernate write batching"
Lee Anjella Macabuhay [Wed, 10 Jan 2024 15:05:30 +0000 (15:05 +0000)]
Merge "Remove inefficient saveListElementsBatch API"
mpriyank [Tue, 9 Jan 2024 11:32:38 +0000 (11:32 +0000)]
Introduce cmSubscriptionEventCache
- inmemory datastructure to keep track of the ongoing subscriptions
- Test cases to cover cache config and sample data test
- Use of cache will be in other patchsets after this
Issue-ID: CPS-2022
Change-Id: Ic6cd22cceaeacb9c7184f42c1ebfac28303f2c26
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
danielhanrahan [Thu, 17 Aug 2023 13:58:30 +0000 (14:58 +0100)]
Enable hibernate write batching
- Implement fragment ID sequence generator with allocation size of 100
- Enable write batching for insert and update, with batch size of 100
- Write performance is over 2x faster
Issue-ID: CPS-1795
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I7ebd0f834abb57c593603e2cd3fafc7e3425ab1e
danielhanrahan [Fri, 4 Aug 2023 10:22:43 +0000 (11:22 +0100)]
Remove inefficient saveListElementsBatch API
CpsDataService::saveListElementsBatch method is not needed as
saveListElements supports saving multiple list elements in a single
operation. This both simplifies implementation and greatly improves
performance when saving list elements, as the Yang parser need only
run once for the whole batch.
- Change InventoryPersistence to save CM-handles in batches of 100
using existing CpsDataService::saveListElements method.
- Remove not needed CpsDataService::saveListElementBatch.
Issue-ID: CPS-2019
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I8b74dda2917e094d064b42f2c0e4d57029b90395
JvD_Ericsson [Mon, 8 Jan 2024 13:28:53 +0000 (13:28 +0000)]
Clean up cps temporal related notification code
- remove 'test' level folder
- remove schemas but leave structure
- remove 'data-updated' from test application.yaml
- remove NOTIFICATION_DATASPACE_FILTER_PATTERNS from docker-compose
Issue-ID: CPS-2005
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I3962d795c760de6ba5ff353e85894895437ad5e7
Sourabh Sourabh [Mon, 8 Jan 2024 13:13:57 +0000 (13:13 +0000)]
Merge "Allow updating of cmHandles with an alternateId"
leventecsanyi [Thu, 4 Jan 2024 09:06:00 +0000 (10:06 +0100)]
Allow updating of cmHandles with an alternateId
- added methods to update alternate id
- fixed unit tests
- added new unit test for coverage
Issue-ID: CPS-1986
Change-Id: I9ef717c5f2c405482e0a5bb70f94f465ba1ff64f
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Toine Siebelink [Fri, 5 Jan 2024 16:56:43 +0000 (16:56 +0000)]
Merge "Normalize JSON attributes during update"
Toine Siebelink [Fri, 5 Jan 2024 16:48:04 +0000 (16:48 +0000)]
Merge "Add performance tests for saveListElements"
Sourabh Sourabh [Fri, 5 Jan 2024 10:20:47 +0000 (10:20 +0000)]
Merge "Amend http status for CM Handles Data Enpoints in Documentation"
david.mcweeney [Thu, 4 Jan 2024 12:29:33 +0000 (12:29 +0000)]
Amend http status for CM Handles Data Enpoints in Documentation
Change-Id: I4b2778e9e1107fc2934df292bee99d36030c8093
Signed-off-by: david.mcweeney <david.mcweeney@est.tech>
Issue-ID: CPS-1998
danielhanrahan [Thu, 4 Jan 2024 13:26:34 +0000 (13:26 +0000)]
Add performance tests for saveListElements
Add performance tests for CpsDataService methods:
- saveListElements
- saveListElementsBatch
Results show that saveListElementsBatch (used only by NCMP for
saving CM-handles) has extremely poor performance compared to
saveListElements, which is over 4x faster and uses less memory.
Issue-ID: CPS-2019
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I89d634c69b3790f1e1a79e2ff5392db5a45c761b
danielhanrahan [Thu, 17 Aug 2023 13:58:30 +0000 (14:58 +0100)]
Normalize JSON attributes during update
This change fixes a few issues related to JSON encoding of
FragmentEntity attributes (data leaves). This significantly
improves update performance in cases of partial updates.
- Normalize JSON and order leaves by name when comparing
data leaves during update operations.
- Update performance test timings.
Issue-ID: CPS-2018
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ia764a353bf96c05758827845e1358745247ee237
danielhanrahan [Thu, 17 Aug 2023 13:58:30 +0000 (14:58 +0100)]
CpsDataService Update performance tests
Test suite for CpsDataService update methods:
- updateDataLeaves
- updateDataNodeAndDescendants
- replaceListContent
Added JVM warmup for update tests
Issue-ID: CPS-1674
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ia07d792bef63fbe2d376a16c210d9d0c4425e302
danielhanrahan [Fri, 22 Dec 2023 00:18:34 +0000 (00:18 +0000)]
Fix performance tests after anchor/dataspace split
CpsAdminService was split into CpsDataspaceService and CpsAnchorService.
One test has incorrect changes.
Issue-ID: CPS-871
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I8013c4d9d17a5846d183e1c06bc11fa5ef9b4c4d
seanbeirne [Tue, 19 Dec 2023 14:18:58 +0000 (14:18 +0000)]
Deprecate use of basic subscription model
- Deprecate json files in resources
Issue-ID: CPS-1973
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I3bf59807f740e3e6f19af0cf0d418edb4f961328