summaryrefslogtreecommitdiffstats
path: root/csit
AgeCommit message (Collapse)AuthorFilesLines
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 codempriyank4-116/+11
- 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-15Testing for jenkins pluginemaclee1-1/+1
Issue-ID: CPS-1953 Change-Id: I3ee12576e75449c90c789de32a50f9b8e8757ff7 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-01-11Improve dmi plugin csit stubsourabh_sourabh9-37/+37
- 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-15Move mount node after cps test during CSITsJvD_Ericsson6-111/+161
* Split test plans into cps and ncmp * Check sdnc moved to after cps tests * Moved mounting of node to after cps tests Issue-ID: CPS-2001 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I5a36238d8ee6c91087cd2712c69e169257d48faa
2023-12-13Merge "Clean up CSIT Test"Toine Siebelink19-52/+27
2023-12-12Clean up CSIT TestJvD_Ericsson19-52/+27
- 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-11Uplift Onap dmi version to 1.5.0-SNAPSHOThalil.cakal1-1/+1
Issue-ID: CPS-1987 Change-Id: I22b123a5df5ec9340c6303d7dfbaf981857f4a0c Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-12-04CSIT for trust level epicJvD_Ericsson2-0/+91
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 updatempriyank3-7/+5
- 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.cakal8-3/+138
- 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-08-04Ability to disable sending auth headermpriyank2-1/+3
- introduced configurable parameter to disable sending auth header in the request to dmi-plugin - default is to include the auth header - DMI_AUTH_ENABLED flag can be set to true/false to control the behaviour - Also added the env variables to the CSITs - updated release-notes Issue-ID: CPS-1819 Change-Id: If97c06e33f06e391d2190b7300d73210ed2f4e27 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2023-07-13[CSIT] Testing DataOperations Request with positive Scenarioraviteja.karumuri5-2/+96
# 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-07-13Introduced a dmi rest demo csit stubsourabh_sourabh1-0/+3
- Introduced a new response code 0 for data operational success response. - Created a new dmi plugin rest stub for demo and performance testing. - Removed dmi plugin stub of wiremocked. - Updated parent pom to add newely created demo stub. - updated docker compose to add neww demo stub with profile for CSIT, demo and performance testing. - Removed target id list from unsupported operation/datastore from REST response. Issue-ID: CPS-1560 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: Ie8198366df820e7d4b8b6e8a85ff9cdb0fce7435 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2023-05-16Fixing minor compilationwaqas.ikram1-2/+2
- Complilation issues while importing project in eclipse - Fixing CSIT Change-Id: Idb85b08066d27a7f2a9b297d1580915df2b67541 Issue-ID: CPS-1672 Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
2023-04-13Add patch operation for update node leaveshalil.cakal2-1/+29
Issue-ID: CPS-1602 Change-Id: Ie67e6cb6810cd6ea05f3a11f7b195f0f23d39138 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2023-02-15Introducing GrafanaToineSiebelink1-3/+3
- Added profiles to docker compose: dmi-service/dmi-stub, monitoring - NOTE: now need to add '--profile dmi-service' to enable dm-plugin (e.g. for csit) - using container names to resolve hosts for prometheus Issue-ID: CPS-1465 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I5d7365a3f789cc698e2702d72700a002cf03eaef
2023-02-02Modify CSIT script to have absolute root path envemaclee3-3/+4
- 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
2022-12-22Merge "Add fix for posting nodes with xPath with '/'"Toine Siebelink2-5/+5
2022-12-22CSIT fix to use correct libmpriyank2-2/+3
- 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>
2022-12-22Add fix for posting nodes with xPath with '/'emaclee2-5/+5
- 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-12-15Chore: Update robot-framework scripts to use Python3.10Matthew Watkins2-4/+43
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
2022-12-07Chore: Re-instate robotframework-requests==0.9.3Matthew Watkins3-6/+11
Need to re-instate a pinned version for the Python test suite. Also we can add back the backup installation method from the script in ci-management. Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org> Change-Id: If0ec07edb1c156b06a9c2621a4e22bd35b9240a9
2022-11-24Fix: Update python environment to ROBOT3_VENVMatthew Watkins1-5/+6
Issue-ID: RELENG-4523 Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org> Change-Id: Id5ea08481bdf14cce149f047d7cd5b8d8254d200
2022-11-23Fix: Call source_safely after function declarationMatthew Watkins1-11/+10
Issue-ID: RELENG-4523 Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org> Change-Id: Id74b1f24655a83f68b5f28c9eab68bb069f0bc74
2022-11-17Fix: Swap prepare-csit.sh to Python3 robot frameworkMatthew Watkins2-11/+13
Issue-ID: RELENG-4523 Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org> Change-Id: I246f9f76996943826afc7d05796e6ddc5c0de6dc
2022-11-18Merge "Revert Hack to get CSIT test working Reverted to using ROBOT3_VENV ↵Toine Siebelink1-4/+4
(tetsing CI-mgmnt uodate)"
2022-11-17Fix: Swap run-csit.sh to Python3 robot frameworkMatthew Watkins1-7/+7
Issue-ID: RELENG-4523 Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org> Change-Id: I15ad8a147a669c503ea023f79cef101baf99c21f
2022-11-17Revert Hack to get CSIT test workingToineSiebelink1-4/+4
Reverted to using ROBOT3_VENV (tetsing CI-mgmnt uodate) Issue-ID: RELENG-4523 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I1e8ae6cba2b303042d9f22e1601e9846ebd2f7bf
2022-11-08Hack to get CSIT test workingToineSiebelink1-4/+4
Issue-ID: CPS-1353 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I47b0b4e628e6685c0b63bf64ef3a147d6d9de774
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-10-27Updating CSIT DMI Snapshot versionToineSiebelink1-2/+2
Update default and DMI_VERSION property in test.prooerties Issue-ID: CPS-1353 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ibe56f85fb047aca1d10e0d61a521c7448bd4306b
2022-08-16Set Sleep Times as Environment Variable in CSITlukegleeson1-1/+4
Sleep times for Model and Data sync were being set to 2 seconds in the docker-compose file so that it may be used in CSIT tests This change defaults them to 30 seconds and adds environment variables which are overridden by the test.properties for CSIT tests Issue-ID: CPS-1195 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Id254e3ec82fb4685fd6678d1a345b16f108b2707
2022-08-10CSITs for DataStore SyncStateemaclee2-0/+56
- 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-07-14Remove ALL Docker File Versionssourabh_sourabh2-6/+2
Issue-ID: CPS-1095 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I11790e271ec784dfa9dbdaea497d50e95f884600
2022-06-30Kafka consumer can not be turned offJosephKeenan2-3/+3
-NOTE: Build will fail until docker-compose version issues on build server are fixed --Ticket raised https://jira.linuxfoundation.org/plugins/servlet/theme/portal/2/IT-24219 -added flag for async -added response if async is triggered without being enabled & associated test -modified to use one global flag for notifications Issue-ID: CPS-1088 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: If9d988b4dcb71bf37c1b1bf9464090782708ffc2
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 NCMPkissand2-7/+16
- 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