summaryrefslogtreecommitdiffstats
path: root/csit
AgeCommit message (Collapse)AuthorFilesLines
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
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 -> ClientJosephKeenan2-15/+10
-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-05-10Improve Local Running of CSIT Testslukegleeson1-1/+1
Issue-ID: CPS-734 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Iff92f43dc69cdaf3e1e78551f68ecfb08bde4b93
2022-04-06Merge "dmi plugin version updated to 1.2.0-SNAPSHOT-latest"Bruno Sakoto1-1/+1
2022-04-06Query based on Public CM PropertiesJosephKeenan4-10/+56
-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-06dmi plugin version updated to 1.2.0-SNAPSHOT-latestputhuparambil.aditya1-1/+1
CSIT updated to test the changes on Accept header Issue-ID: CPS-957 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I2fb4abd5dff5ab7b02345ad6b4899987c2553130
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-15Fragment handling decreasing performance for large number of cmHandlesDylanB95EST1-63/+63
- allow fragmentEntity to set parent id (needed for optimization) - updated addListAlement and addChildDataNode to use new common optimized metghod to add to exsiting children - ensure methods are transactional - Refactored test around adding list elements to clearly define test checking the presence of grandchild element Issue-ID: CPS-886 Change-Id: Ic4381f0f7170ebd666d5bc8aa6ef2c4548d81766 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-02-11Upgrade SDN-Cemaclee5-27/+41
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 puthuparambil2-0/+80
2022-01-21patch operation for ncmp runningtragait2-0/+80
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>
2022-01-07Register cm-handle returns 500 internal server errorDylanB95EST1-0/+0
Fix for bug around cm handle registration. Issue around duplicate modules between dummy modules inserted through liquibase changelog and create schema CSIT test Yang resources name have been changed in the zipped file cps-ran-schema-model@2021-01-28 -> cps-ran-schema-model-test@2021-01-28 ietf-inet-types.yang -> ietf-inet-types-test.yang ietf-yang-types.yang -> ietf-inet-types-test.yang Module names have also been changed accordingly as above too, along with the import in the cps-ran-schema-model yang resource. Issue-ID: CPS-797 Change-Id: I83d2aea6de2611d904b22f70329e1135b5a41d81 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>