summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-02-06[BUG] Retry interval for kafka consumermpriyank1-0/+3
- 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>
2024-02-06Merge "Set resource limits of docker-compose containers"Lee Anjella Macabuhay1-1/+17
2024-02-05CmHandle delete is failing with InternalServerError: Null key is not allowedleventecsanyi1-1/+7
- added null check to alt id removal from cache Issue-ID: CPS-2064 Change-Id: Iee484b96f505106613ce2d646898ca7ee3873f28 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-02-02Documentation update for Delta FeatureArpit Singh4-0/+118
- 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
2024-02-01Merge "Extend API: Get Module Definitions"Sourabh Sourabh19-71/+291
2024-02-01Extend API: Get Module Definitionshalil.cakal19-73/+293
- 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>
2024-02-01Set resource limits of docker-compose containersdanielhanrahan1-1/+17
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
2024-02-01Introduce Hazelcast for alternateId-cmHandle relationleventecsanyi12-91/+450
- 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>
2024-01-31Fix: Add six as dependency for sphinxcontrib-swaggerdocJessica Wagantall1-0/+1
Issue-ID: CIMAN-33 Change-Id: Ic9f1fcc4e220163e20bf61da0511d7479eb4f180 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2024-01-29Merge "Correct datastore names via DatastoreType Enum"Priyank Maheshwari2-5/+5
2024-01-26Correct datastore names via DatastoreType Enumemaclee2-5/+5
- Use existing DatastoreType enum in defining datastore name Issue-ID: CPS-2046 Change-Id: I6f2f77c96b239546f7141267c0c01edfc599b445 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-01-25CloudEvents support for cps-corempriyank20-53/+131
- 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>
2024-01-25Merge "Omitting the basic auth header in healthcheck test"Priyank Maheshwari2-5/+3
2024-01-25Omitting the basic auth header in healthcheck testwaqas.ikram2-5/+3
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>
2024-01-25Merge "CPS 1824: Delta Between 2 Anchors release notes"Toine Siebelink3-19/+18
2024-01-23Merge "Add retry mechanism instead of sleep"Toine Siebelink4-23/+52
2024-01-23Add retry mechanism instead of sleepJvD_Ericsson4-23/+52
- 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
2024-01-22CmSubscription review commentsmpriyank9-154/+1
- 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>
2024-01-22Read and validate incoming sub create request from Kafkaseanbeirne3-0/+182
Issue-ID: CPS-1951 Signed-off-by: seanbeirne <sean.beirne@est.tech> Change-Id: I402dacc47c93e77a4ca63598acebe27c780951de
2024-01-22Merge "Remove Lambda & Restructure File"Lee Anjella Macabuhay3-309/+298
2024-01-22Merge "Use PollingConditions to improve intermittent test failure"Toine Siebelink1-10/+18
2024-01-19Merge "Remove onboarding of old solution subscription model"Priyank Maheshwari2-68/+0
2024-01-19Remove Lambda & Restructure Fileseanbeirne3-309/+298
-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>
2024-01-19CPS 1824: Delta Between 2 Anchors release notesArpit Singh3-19/+18
Updated release notes for Delta Feature Issue-ID: CPS-1824 Signed-off-by: Arpit Singh <as00745003@techmahindra.com> Change-Id: I1c2403391e85aec6a9e34f0ff616c17b100bf6a9
2024-01-18Remove onboarding of old solution subscription modelemaclee2-68/+0
-Remove onboarding of old subscription model -Remove initial solution subscription model Change-Id: Id930dcfd078d71e7c275d0a3ef1117f8fed2e9d3 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-01-18Merge "CPS Delta API: Update action for delta service"Toine Siebelink6-71/+261
2024-01-18Merge "Create datastores for NCMP w/subscription model"Priyank Maheshwari6-19/+74
2024-01-18Use PollingConditions to improve intermittent test failureJvD_Ericsson1-10/+18
Set timeOutInMilliSeconds to 100 (default was 0) Issue-ID: CPS-1950 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I0028f0cd5e5e89d979d4200df77dbd7a42105622
2024-01-18Merge "Remove deprecated cmSubscription code"Lee Anjella Macabuhay41-3322/+12
2024-01-17Create datastores for NCMP w/subscription modelemaclee6-19/+74
Issue-ID: CPS-2035 Change-Id: I80234c7ca93c5774ee50082803cdc102f693a5a7 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-01-17Remove deprecated cmSubscription codempriyank41-3322/+12
- 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>
2024-01-17Clear instance based Schema Context Cache upon validation errorsToineSiebelink16-511/+650
- 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
2024-01-16CPS Delta API: Update action for delta serviceArpit Singh6-71/+261
- 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
2024-01-16Add CSIT test for CPS Swagger UIhalil.cakal1-7/+17
- Test that CPS Swagerr UI is accessible. Issue-ID: CPS-1916 Signed-off-by: halil.cakal <halil.cakal@est.tech> Change-Id: Id8dba21f400412fc8b81892e29454f8606e53008
2024-01-15Testing for jenkins pluginemaclee1-1/+1
Issue-ID: CPS-1953 Change-Id: I3ee12576e75449c90c789de32a50f9b8e8757ff7 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-01-15Merge "Create tests for EventPublisher error scenarios"Toine Siebelink2-4/+124
2024-01-11Bump CPS to 3.4.3-SNAPSHOTdanielhanrahan25-26/+55
- 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
2024-01-11Add container yaml for CPS 3.4.2danielhanrahan1-0/+8
- 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
2024-01-11Add maven stage yaml for CPS 3.4.2danielhanrahan1-0/+4
- maven stage yaml to release 3.4.2 Issue-ID: CPS-2026 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ibe7d85c81383e678783c10383bf142523c8cdf51
2024-01-11Create tests for EventPublisher error scenariosJvD_Ericsson2-4/+124
- 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
2024-01-11Merge "Improve dmi plugin csit stub - Modified dmi plugin stub to return ↵Toine Siebelink14-56/+119
diff. modules based on cm handle id"
2024-01-11Update release notes for 3.4.2halil.cakal1-0/+1
- Add Trust Level epic to the release notes Issue-ID: CPS-2024 Change-Id: Ie5425bca6e3d48b957c703af50c7542c4401d1b4 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-01-11Improve dmi plugin csit stubsourabh_sourabh14-56/+119
- 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>
2024-01-11Merge "Enable hibernate write batching"Lee Anjella Macabuhay14-39/+133
2024-01-10Merge "Remove inefficient saveListElementsBatch API"Lee Anjella Macabuhay11-146/+44
2024-01-10Introduce cmSubscriptionEventCachempriyank7-1/+249
- 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>
2024-01-10Enable hibernate write batchingdanielhanrahan14-39/+133
- 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
2024-01-09Remove inefficient saveListElementsBatch APIdanielhanrahan11-146/+44
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
2024-01-08Clean up cps temporal related notification codeJvD_Ericsson9-363/+0
- 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
2024-01-08Merge "Allow updating of cmHandles with an alternateId"Sourabh Sourabh2-4/+104