summaryrefslogtreecommitdiffstats
path: root/csit
AgeCommit message (Collapse)AuthorFilesLines
2024-08-27Merge "Remove trust level from cache when cm handles deleted"Daniel Hanrahan1-3/+3
2024-08-27Install dependencies for k6 and csitdanielhanrahan3-7/+41
- install docker-compose in csit and k6 tests - install k6 with kafka extension in k6 tests Issue-ID: CPS-2376 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I8a67813a96dc7f321d4abe0aa91e236fd1060f3e
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-20Fix docker image for netconf-pnp-simulator to fix CSITsdanielhanrahan1-1/+1
The image on onap nexus is missing. Issue-ID: CPS-2313 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ifd410de6d9607705857e4d98e2afab2556940f96
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 libmpriyank3-4/+3
- 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 NCMP CSITs by using new TLS certificatesdanielhanrahan6-6/+79
TLS certs for SDNC and PNF simulators have expired, causing CSITs to fail. The new certificates are valid until 22/07/2034 - Add new certificates, valid for 10 years - Re-enable NCMP CSITs Issue-ID: CPS-2327 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I6c4361da9f8aaf1449a2ba22e701f1c0ec33a34b
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-07-24Disable NCMP CSITsmpriyank1-5/+5
- comment the CSITs temporarily until the SDNC certs are corrected. Issue-ID: CPS-2325 Change-Id: I335b17e4f148ff838301fb511656da1068d124b4 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-07-12Print DMI stub logs in CSITsdanielhanrahan1-0/+3
Issue-ID: CPS-2313 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I4ecb5ce1713666b5e90b90eba3c98b737fd91896
2024-07-12Print docker logs in CSITs for 2 cps-and-ncmp instancesdanielhanrahan1-2/+5
Following introduction of 2 instances of cps-and-ncmp, CSIT logs show an error "No such container: cps-and-ncmp". This commit prints docker logs for each cps-and-ncmp container. Issue-ID: CPS-2038 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: If3ed4590cef0f5b59d74e62c84f6c6e72edfd411
2024-07-10Remove nginx logs that not being used anywherehalil.cakal1-4/+0
Issue-ID: CPS-2038 Change-Id: Iba8950db4f3fcfc13f32bf915189f5fcb2ccee90 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-07-01Setup automated tests with two replicas of cps-and-ncmphalil.cakal1-0/+5
- this change for two test suits: CSIT and K6 - increase cps-and-ncmp replicas to 2 - introduce nginx as load-balancer - set proxies inside nginx for the cps-and-ncmp URI paths - upgrade hazelcast-spring to 5.3.7 Issue-ID: CPS-2038 Change-Id: If1b6c1e1218af16b24cc061507ea9b25d277d143 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-06-14Update ONAP DMI version in NCMPmpriyank1-1/+1
- update the docker compose file to point to latest version on onap-dmi-plugin. Same to be used to run the CSITs during build. Issue-ID: CPS-2271 Change-Id: Ifbb2ee9c9548d54979a04595e19062d9192bfd1d Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
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