summaryrefslogtreecommitdiffstats
path: root/csit
AgeCommit message (Collapse)AuthorFilesLines
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>
2022-01-07CPS-Core: Unable to parse JSON input with space for POST endpointsourabh_sourabh1-1/+1
Issue-ID: CPS-831 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: If2f5f7034f05763990001c9dd8ccd9d8dc0099cf
2022-01-04Remove compulsory body from delete passthrough requestToineSiebelink2-3/+3
- yaml spec (please note how order of parameter changed!) - Updated CSIT test - Slight improvement of cist setup script to prevent double download Issue-ID: CPS-836 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ic3510c9dfe28a3be09f5239ab5c8c4797d4f4792
2021-12-14Changing putOperationWithJson to postOperationWithJsonJosephKeenan2-1/+7
-Modified responseEntity<String> to reesponseEntity<Object> -Changed behaviour of sync to use new repsonses and removed JSON parsing -Updated tests to use new responsess -Tests have been updated and added jira to docs -Added messageConverters to RestTemplate to support plain text with ResponseEntity<Object> -Added docker log output for cps & dmi containers during CSIT teardown -Moved reponse conversion from service into DMIModelOperations class -Added response handling test (edgecases) -Updated response request body for passthrough-running CSIT test to pass Issue-ID: CPS-777 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: If2acf83a97b8aad5aa2c342154d807a47cace6a0
2021-12-09CSIT Tests for NCMP Delete on Passthrough Running. 3/3DylanB95EST1-1/+21
Adding Integration End To End tests for delete passthrough running with SDNC. Change-Id: I0e9aeefe3456d404f0f03b60bee0d08b3464cb6f Issue-ID: CPS-769 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-12-08Add CSIT Tests for Update Operation on Passthrough-running 2/3DylanB95EST4-24/+80
Add robot integration test for update scenario in Passthrough-running Modify existing write data test json body to include better examples Issue-ID: CPS-768 Change-Id: Ie769a33a86ec1a8384585484c54598189fdd5124 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-12-02Changing putOperationWithJson to postOperationWithJsonJosephKeenan2-1/+2
Issue-ID: CPS-736 Change-Id: I3fd2e0b6d6c20683b18f79ed78ed5c8990aee6d8 Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2021-11-25Allow separate registration of DMIDataPlugin and DmiModelPuginJosephKeenan2-24/+21
Moved relevant code from NetworkCmProxyDataServiceImp to DmiOperations Split DmiOperations into DMiData... and DMIModelOperations Merged update-operation changes Added tests for error message validation in NetworkCmProxyDataServiceImplSpec Removede @Service from DMIOperations and added @component to DmiDataOperations & DmiModelOperations Verify sync robot test is now hardened Added exitonfailure so robot tests stop after first encountered failed test Issue-ID: CPS-736 Change-Id: I0b40931cc8cd4fc0452328a0a7e0f60e6fc38d0a Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2021-10-21fix docker-compose for ncmptragait8-78/+120
Issue-ID: CPS-725 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: Ibd646c225b4b9b205fdc34012f10a627e7827513
2021-10-15CPS-615 - CSIT for model sync & passthroughJosephKeenan17-18/+604
This commit contains -Registration and sync test cases -Passthrough read and write test case Issue-ID: CPS-615 Change-Id: I1ad70dbc8c0af96bd5cf69476acdad42cf3c179d Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2021-09-15Remove dependency on ci-management for robot framework configurationputhuparambil.aditya4-4/+50
Issue-ID: CPS-666 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ief1ce66203e42964db855304b47f6bf0fdd140c3
2021-07-14Expose Prometheus metrics for monitoringputhuparambil.aditya4-15/+21
Issue-ID: CPS-492 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I264066bd543daf2a45f2ec9a6b8cdf8012927828
2021-07-06Addition of missing licenses to fileslukegleeson4-1/+75
Issue-ID: CPS-467 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Id39fa218b5d56f2350133dac8df38f75e6d42638
2021-05-17nexus registry is parmateterizedRenu Kumari1-1/+1
Issue-ID: CPS-311 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I158387f54b1a9d3d60e6d97cc3336391745af3c0
2021-05-07Fix cps ran yang data modelBruno Sakoto1-1/+11
* Add a liquibase change set to update cps ran model data * Rename model "cps-ran-schema-model@2021-01-28.yang" to be compliant with yang specifications related to file layout https://tools.ietf.org/html/rfc7950#section-5.2 * Improve yang validation error handling to provide more information about the validation failure in the request response * Add csit test to verify cps ran model retrieval Issue-ID: CPS-377 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I4f0e337b50d79e81f895eb32f09ae9cb5d9d8a70
2021-04-23Update documentation for csit testsBruno Sakoto1-1/+1
Issue-ID: CPS-356 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Ic6f31e7eaaf86fd51bb65f22b51668a74d792472