summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-02-07Merge "Fix: Documentation for Delta Feature"Priyank Maheshwari1-0/+6
2024-02-06Merge "Add integration test for extending API: Get Module Definitions"Toine Siebelink10-45/+94
2024-02-06Merge "Add maven classifier to Spring Boot JAR"Lee Anjella Macabuhay2-1/+18
2024-02-06Merge "[BUG] Retry interval for kafka consumer"Toine Siebelink1-0/+3
2024-02-06Fix: Documentation for Delta FeatureArpit Singh1-0/+6
Issue-ID: CPS-2074 Signed-off-by: Arpit Singh <as00745003@techmahindra.com> Change-Id: Ib32b4c75f7eb5402367f69a077c447a3eb062b0b
2024-02-06Merge "Limit heap size in Groovy integration tests"Priyank Maheshwari1-1/+20
2024-02-06Merge "CmSubscription service layer method #1"Lee Anjella Macabuhay3-0/+146
2024-02-06Merge "CmSubscription validate datastore"Lee Anjella Macabuhay3-0/+116
2024-02-06Merge "moduleSetTag and cmhandle upgrade functionalities fix"Toine Siebelink12-23/+101
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-06moduleSetTag and cmhandle upgrade functionalities fixsourabh_sourabh12-23/+101
- 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>
2024-02-06Add maven classifier to Spring Boot JARdanielhanrahan2-1/+18
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
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-02CmSubscription service layer method #1mpriyank3-0/+146
- 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>
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-01Add integration test for extending API: Get Module Definitionshalil.cakal10-45/+94
- 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>
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-01CmSubscription validate datastorempriyank3-0/+116
- 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>
2024-02-01Limit heap size in Groovy integration testsdanielhanrahan1-1/+20
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
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>