aboutsummaryrefslogtreecommitdiffstats
path: root/csit/tests
AgeCommit message (Collapse)AuthorFilesLines
2024-10-25Fix failing CSIT and add unit test proving the bugdanielhanrahan1-12/+12
It was determined that one CSIT is intermittently failing due to a CM-handle being deleted while module sync is in progress, which causes the whole batch operation to fail. Even CM-handles that did sync will not go into READY state, despite the logs saying otherwise. This commit reproduces the issue in a unit test, and prevents the issue in the CSIT by changing test order. Also, errors during module sync tasks are reported at ERROR level. (The actual bug fix will be addressed in another patch.) Issue-ID: CPS-2474 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I7e0d617cbd48d8fd1fad036079fbd876ee21d8a8
2024-09-02Remove event notifications when removing trust level entrieshalil.cakal1-2/+2
Issue-ID: CPS-2315 Change-Id: I4f0cb7c2066e0ab9c62ac9cdb0fc39ce7de7791b Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-08-26Remove trust level from cache when cm handles deletedhalil.cakal1-3/+3
- handle removal of device trust levels from the cache when cm handles deleted - handle initial dmi registration inside trust level manager Issue-ID: CPS-2315 Change-Id: I605ed78f164d7534069de8352dc3b0a81a4ce22c Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-08-21Revert "Remove trust level entries from cache when cm handles deleted"Lee Anjella Macabuhay1-3/+3
This reverts commit 77b8e25e14e698c853334ef57459c21d7813911a. Reason for revert: Performance degredation Change-Id: Ibd88e626189d821680568c63952b95e7d1e05dc4 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-08-21Remove trust level entries from cache when cm handles deletedhalil.cakal1-3/+3
- handle removal of device trust levels from the cache when cm handles deleted - handle initial dmi registration inside trust level manager - add get effective trust level function to trust level manager for get and query cm handle APIs (to set trust level on the return object) Issue-ID: CPS-2315 Change-Id: I8daa4a2ad8310de10e35fdc50351deb85fd3ffd0 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-08-16Merge "Rearrange CSIT test order"Sourabh Sourabh3-15/+38
2024-08-15Rearrange CSIT test ordermpriyank3-15/+38
- Waiting for Cmhandle to be ready before fetching the modules in the CSIT. - Added condition to check size of the json array if it atleast has one item Issue-ID: CPS-2313 Change-Id: Ib4f08069780c55a758ba976db5b96239c83ac990 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-08-14Upgrading robotframework confluentkafka libmpriyank1-2/+1
- upgrading confluentkafka library for robotframework to 2.4.0-2 - reverted the change for the CSIT as the fix was done in the dmi-plugin-stub Issue-ID: CPS-2363 Change-Id: I3f7cd622177485435566ef814ffb38d4a93ed0ad Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-08-12Fix CSIT build failurempriyank2-3/+4
- Doubling the CmHandle wait time to check for READY state - commenting the data operations header condition to check for source and to be investigated separately Issue-ID: CPS-2363 Change-Id: I1de8c61569444df7450af1142d8589e90d309340 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-07-24Fix timing issue for data sync CSITdanielhanrahan1-1/+1
The default data sync watchdog sleep time is 30 seconds, while the CSIT only waits 10 seconds for data sync to run. This is leading to intermittent failures. - increase CSIT time out to 40 seconds for data sync operation - adjust log levels for data sync so that issues are easier to debug Issue-ID: CPS-2313 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I3ceb9097bf357f47e5d49f84c70b1c711b52171a
2024-03-26Condense Liquibase stepsdavid.mcweeney1-9/+0
Change-Id: I1493f49bb93c359df3ff7d4f928f9a94fb8b2604 Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: CPS-2061
2024-02-12Fix test failure by ordering leaf-listsdanielhanrahan1-4/+1
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
2024-02-07Add CSIT test: Delete CM Handlehalil.cakal1-4/+16
- Add new csit test to ncmp inventory Issue-ID: CPS-2073 Change-Id: Ie683f043b2dc1cc742945a4874f19688a8702009 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-01-25Omitting the basic auth header in healthcheck testwaqas.ikram1-3/+1
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-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-17Remove deprecated cmSubscription codempriyank2-104/+10
- 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-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-11Improve dmi plugin csit stubsourabh_sourabh5-30/+30
- 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>
2023-12-19Improve naming of csit testJvD_Ericsson1-1/+1
Issue-ID: CPS-2002 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I7e6bfdad866fbf0dad442209f78e738bb056c5dc
2023-12-13Merge "Clean up CSIT Test"Toine Siebelink7-34/+22
2023-12-12Clean up CSIT TestJvD_Ericsson7-34/+22
- Removed gitignore from csit and made it top level - Removed tabs from all files - Created sub-folder for cps-core and ncmp in the data folder - Deleted csit/data/postModuleRequestBody.json, was not used - Removed setting variable for most response.json() calls Issue-Id: CPS-734 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I32fd5b4f5a0132987a4684c336846b86df7b49e7
2023-12-11Uplift Guava dependencyhalil.cakal1-1/+6
- upgrade Guava to the latest version to fix critial vulnerability Issue-ID: CPS-1987 Change-Id: I6ea314407133dea229e9626fdf2d9c938f7c7e08 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-12-04CSIT for trust level epicJvD_Ericsson1-0/+90
Issue-ID: CPS-1976 Change-Id: I00cef4bc4fef0744616de8a0fb9ad153842d4452 Signed-off-by: halil.cakal <halil.cakal@est.tech> Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2023-11-06[BUG] CPS NCMP management endpoints updatempriyank1-1/+1
- CPS and NCMP management endpoint updated from /manage to /actuator now - The management port is same as application port now - CSIT test cases update - Update in Security params to allow the changed URL. - Admin guid update - Release notes updated - Local docker-compose and prometheus updated Issue-ID: CPS-1923 Change-Id: I013d35fd96d393dec8cf067bbeae0f92b6b8d8db Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-09-22Reinstate Spring Boot 3.0 after revertegernug1-1/+1
Issue-ID: CPS-1789 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: Iee5c514ccdba36a387f83948d8a3ba26e6b1de5b
2023-09-20Revert "Migrate CPS to Spring-boot 3.0"Toine Siebelink1-1/+1
This reverts commit 9693ec51cf6526082f0ad0c3ad208d144cbbb163. Reason for revert: Bug fix delivery Change-Id: I73bdc1528192c662983b0bbef73b10b6d612a719 Signed-off-by: egernug <gerard.nugent@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2023-09-14Migrate CPS to Spring-boot 3.0egernug1-1/+1
Issue-ID: CPS-1789 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: I932fca8a50cedf2ae0604401c5e2b27896e4d449
2023-09-11Verify kafka headers by header namehalil.cakal2-17/+24
- Change subscription notification flow - Change data operations flow Issue-ID: CPS-1613 Change-Id: I5c8aeb26c925071d810975dd6686309b7ad6b76f Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-08-21Add verification flow in CSIT: Cm Data Subscription Createhalil.cakal2-1/+87
- Add Confluent Kafka Library support for Robot Framework - Add capability of testing for Kafka flows - Add CSIT test: Cm Data Notifications Subscription Create complying with CloudEvents - Change DMI version to latest for CSIT - Change DMI service name for Kafka topic extension - Change kafka listeners in docker compose Issue-ID: CPS-1613 Change-Id: Ic22cb36fdcee0f5c2bd6ff5c1876747aef563f8b Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-07-13[CSIT] Testing DataOperations Request with positive Scenarioraviteja.karumuri1-0/+77
# Sending CMHandle with ready state to the NCMP then it forwarded to DMI to complete the read operation once done with success it produces a message to the client topic' Issue-ID: CPS-1560 Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech> Change-Id: I0af68fdf97bf0a5063361ae08475dee38dbe7b8e
2023-04-13Add patch operation for update node leaveshalil.cakal1-1/+18
Issue-ID: CPS-1602 Change-Id: Ie67e6cb6810cd6ea05f3a11f7b195f0f23d39138 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2022-12-22Add fix for posting nodes with xPath with '/'emaclee1-2/+2
- 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
2022-11-02Ensure prefix is correct module prefixToineSiebelink1-1/+1
- Moved Prefix logic from RI to Service layer - Prefix is no PREFIX propety, not the moduel name! == RI (DB Layer) Changes - Removed prefix logic incl hazelcast - Added new basic ri-test for getDataNode and assert prefix is null - Updated exsiting ri-test to us getDataNode - Updated existing ri-test to only use " where really needed == CPS Service Layer Changes - Introduced PrefixResolver with clear and limited responsibility - Use PrefixResolver where needed - Cache prefix map per anchor, use cached entry when available - Disabled SONAR on new Regex == REST Layer - Use PrefixResolver where needed Issue-ID: CPS-1353 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ie16f0e1ee1c280f3eb69c9e64fab69a780fb692a
2022-08-10CSITs for DataStore SyncStateemaclee1-0/+55
- add new test for dataSyncEnabled API - verify data sync follows after setting dataSyncEnabled flag Issue-ID: CPS-1168 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Ie22a6b8d6be15a05bfa3ee90218af27fe7092dd0
2022-06-14Exclude CM-Handles that are not in state 'READY'JosephKeenan1-1/+2
Exclude CM-Handles which are not in state ready from ncmp operations Issue-ID: CPS-877 Change-Id: I59783c860091d99e328cec9ccafb34c09b277753 Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Signed-off-by: lukegleeson <luke.gleeson@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-06-08Merge 2 'query' end points in NCMPkissand1-6/+15
- merge two endpoint for a same backend - use xPath query instead of sql query - modify searches endpoint to return a cmHandle object with all public properties - handle old (deprecated) queries - handle public property queries - create useful examples - use more verbose error messages - simplify openapi yamls - create new query service - change second endpoint name to a better matched name - modify legacy tests with new requirements - create new tests for the new scenarios Issue-ID: CPS-1016 Change-Id: I7476e9dbd510ec93b5b48ce85d477ecb2dadffff Signed-off-by: kissand <andras.zoltan.kiss@est.tech>
2022-06-02Merge "Add module name to cps core output"Toine Siebelink1-1/+2
2022-06-02Add module name to cps core outputemaclee1-1/+2
- add withModuleName method - add getNodeIdentifierWithPrefix method - add unit test in DataMapUtilsSpec - add unit test in DataNodeBuilderSpec - fix all existing unit tests Issue-ID: CPS-870 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I51b70fa2dd3381eef9500b4339d4922c017e3000
2022-05-25Async request response NCMP -> ClientJosephKeenan1-1/+8
-Added consumer for DMI events and producer for forwarding to client -Added schemas for events -Updated tests -Added new module for ncmp events -Used mapstruct for event mapping Issue-ID: CPS-830 Change-Id: I096d08af9d69092cf8651e11eaa00ce441fc3605 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-04-06Query based on Public CM PropertiesJosephKeenan2-1/+52
-Updated OpenAPI for new Endpoint -Will replace SQL with CPSPathQuery once investigation is complete -Functionality in place to determine if public properties match - -Added Unit and CSIT tests - small modifications may need to be made -CSIT tests enhanced to add additional nodes and tests Issue-ID: CPS-731 Change-Id: I403e603ce79c4a4a6994d51b459b5703510d5a83 Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-04-01Update CM-Handle registration responseRenu Kumari1-2/+2
- update openapi.yml with new response structure - send only details of failed cm-handle operations - updated csit to validate 200 status Issue-ID: CPS-896 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I3b868bcc5b8ff488c31faef51edc82c771452234
2022-03-01Create Endpoint For Get Cm Handles By NameDylanB95EST1-3/+36
Create endpoint and implement logic for get cm handle details by cm handle name Issue-ID: CPS-817 Change-Id: I83bd2da9219d13fac715a08b19108028ca6f6751 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-02-28NCMP Java API depends on NCM-Rest-API (cyclic) through json properties on ↵DylanB95EST1-1/+1
Java API Using POJO and new converter class instead of previous object mapper Issue-ID: CPS-893 Change-Id: I75531f386f08cb172d2901a4bbe97ae22cc5937e Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-02-25Fix success response code CM Handle Registrationmpriyank1-1/+1
- changed registartion response code to 204 NO_CONTENT - improved exception handling for registration API - fixed failing csit related to changed response code - updated the release notes for CPS-892 and CPS-837 Issue-ID: CPS-892 Change-Id: I616e340debf1583b058e7ae6b8960972eec00f3e Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-02-17Align JSON DataNode for Get and Post/Put API in CPSputhuparambil.aditya1-1/+2
Issue-ID: CPS-865 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I60b1f9c94e79bdd66d60fe6a68f5fc4adc718d35
2022-02-11Upgrade SDN-Cemaclee1-2/+2
Issue-ID: CPS-802 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I29604d4e57160c346b5a2a8ce30bda816eae2ecb Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Signed-off-by: lukegleeson <luke.gleeson@est.tech>
2022-01-27Added CPS enhanced health checkNagendra902871-8/+6
-Added new test for enhanced health check Issue-ID: CPS-840 Change-Id: I6800620ee2b16c21e99b37b2ce07b179e29f9798 Signed-off-by: Nagendra90287 <nagendrakumar.pal@amdocs.com>
2022-01-21Merge "patch operation for ncmp running"aditya puthuparambil1-0/+21
2022-01-21patch operation for ncmp runningtragait1-0/+21
Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: Ib136291963a5d7f115c8637708a1d5a64c62c9f2 Issue-ID: CPS-641
2022-01-19Add CSIT Test for Registration of a cm-handle endpointDylanB95EST1-16/+16
Integration Test for Registering a CM-Handle through NCMP with both public and additional properties Issue-ID: CPS-853 Change-Id: I1ea3f11f02cd8339f354c9671c4cdf6d68040713 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>