summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-11-15[k6] Lower load for legacy async batch operation testdanielhanrahan2-3/+2
Legacy async batch operation test is failing and reporting zero as result due to timeouts in the test. - Lower total batch requests to 100 instead of 1000 - Limit the number of kafka messages per batch to 200 instead of 1000 to avoid timeout issues. Issue-ID: CPS-2274 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I06c04173ca1ed0f3580df6a73b5d647ab7ed0c71
2024-11-15Fixing dmi plugin version in NCMPmpriyank2-2/+2
- Fallback to previous stable version of NCMP in order to stabilize the CPS-NCMP CSIT issue so that we are not blocked in our development - Note : Issue at DMI plugin is still investigated Issue-ID: CPS-2503 Change-Id: I060c89e927465f16ef979e45f18f98fe605d5b7f Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-11-15Merge "Support alternate Id interface for ncmp inventory /ch/cmhandles endpoint"Priyank Maheshwari20-110/+158
2024-11-14Merge "[k6] Output git build info in k6 log"Toine Siebelink1-1/+6
2024-11-13Merge "Hashmark support in 3gpp objects"Toine Siebelink2-7/+12
2024-11-13[k6] Output git build info in k6 logdanielhanrahan1-1/+6
- output build info in k6 log using actuator endpoint - use quiet output while pulling images for less log noise Issue-ID: CPS-2445 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I4464b70650828c842c94677dddcc4d112f9758e0
2024-11-13Fix for cps-master-merge-java job after removing oParentsourabh_sourabh6-14/+38
- Added ecom repo. configuration into cps-aggregator - Explicitly set onap.nexus.url Issue-ID: CPS-2496 Change-Id: I010f97ea438bfbaa9cde81ef1a5cc9839b0d1121 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-11-13Fix for cps-master-merge-java job after removing oParentsourabh_sourabh8-6/+29
Issue-ID: CPS-2496 Change-Id: I94eef4006b8c96db2c9d350c3330edf98924099c Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-11-13Support alternate Id interface for ncmp inventory /ch/cmhandles endpointseanbeirne20-110/+158
Issue-ID: CPS-2481 Change-Id: I8a200495be1afb9a4f256127f886bed78c77f653 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-11-12Merge "Configure Maven Profile for Performance Tests"Toine Siebelink3-54/+35
2024-11-12Hashmark support in 3gpp objectsegernug2-7/+12
NCMP should cut off the part after the # of an alternateid and use only the first part in CPS match check, but send the complete request to the DMI plugin. Issue-ID: CPS-2485 Change-Id: Icc1442f2be9545036619043692c3559ffadecb0d Signed-off-by: egernug <gerard.nugent@est.tech>
2024-11-12Merge "Add index to yang_resource for faster registration"Toine Siebelink2-0/+33
2024-11-11Merge "CM Data Notifications RTD"Toine Siebelink2-4/+104
2024-11-11Configure Maven Profile for Performance Testssourabh_sourabh3-54/+35
- Enhance: Define global property for maven-resources-plugin and maven-failsafe-plugin version. - Updated Maven configuration to include performance test cases - Enable performance test inclusion in build with include-performance profile - Configured build to run all performance tests with include-performance profile Issue-ID: CPS-2491 Change-Id: Iecedfc0fce9ce8ed2bfab00784d22eb53cacd18a Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-11-11Merge "Support Alternate-Id for CPS-E05 data batch interface"Priyank Maheshwari18-72/+149
2024-11-11CM Data Notifications RTDmpriyank2-4/+104
- Added RTD for CM Data Notifications and left a note about the key usage. Issue-ID: CPS-2436 Change-Id: Id1592c85009b945d1785350d54ae8884fcc8bebd Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-11-08Add index to yang_resource for faster registrationdanielhanrahan2-0/+33
This doubles registration speed by adding a DB index for yang resource module_name and revision. Issue-ID: CPS-2478 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I747ac3c8d4a524082b08ab44417e913b163207ce
2024-11-07Merge "Cm Avc Event to have same key"Toine Siebelink4-9/+20
2024-11-07Merge "Removing ONAP O-Parent as parent from CPS"Toine Siebelink10-130/+542
2024-11-06Merge "XML content support on get a node"Priyank Maheshwari10-25/+285
2024-11-06Merge "Change the dmi address source from dmi-service-name to ↵Sourabh Sourabh2-10/+28
dmi-data-service-name for writeDataJob"
2024-11-05Change the dmi address source from dmi-service-name to dmi-data-service-name ↵egernug2-10/+28
for writeDataJob -Change implementation to convert datanode to yang model -Change to resolve service name consistent with other implementations Issue-ID: CPS-2455 Change-Id: I9cbe494b8c37eb963c42abee1ac5f04a3f695d07 Signed-off-by: egernug <gerard.nugent@est.tech>
2024-11-05Support Alternate-Id for CPS-E05 data batch interfaceseanbeirne18-72/+149
Issue-ID: CPS-2274 Change-Id: I75163bc7943fca5cbbe8c24601a2dfc184a9e6cc Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-11-05Removing ONAP O-Parent as parent from CPSsourabh_sourabh10-130/+542
- Fixed checkstyle and license validation. - Updated checkstyle configuration (`onap-java-style.xml` and `check-license.xml`) to ensure compatibility with Maven Checkstyle Plugin version 3.3.1 - Removed obsolete properties causing build failures. - Improved code style rules to meet ONAP Java guidelines. - Vulnerabilities scan are now configured on parent pom.xml - Fixed all code style. Issue-ID: CPS-2470 Change-Id: I1e72af604415aa7587cbe1dff471ed0323e29aa3 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-11-05XML content support on get a nodeRudrangi Anupriya12-28/+325
Here to bring Support for XML Response Entity In GET A NODE - Made changes in components.yml to support contentType as application/xml - Add ContentTypeInheadr in cpsDataV2.yml to support application/xml - Add contentTypeInHeader parameter to accept xml in DataRestController.java - Implemented Logic to convert DataMaps To XML Data - written testcase for above changes made Issue-ID: CPS-2280 Change-Id: Ibe7ffb66ccbb03703626132c6d5c2eade0e7ab4b Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
2024-11-04Refactor module synch taskhalil.cakal1-26/+29
- improve readablity of ModuleSyncTasks Issue-ID: CPS-2474 Change-Id: Ib0342e8fad00b431a293c5095fe54f4917f7a51b Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-11-04Merge "[Module Sync] Always update states at end of batch"Toine Siebelink1-5/+5
2024-11-04Cm Avc Event to have same keympriyank4-9/+20
- incoming Cm Avc Event from DMI Plugin is consumed and forwarded to target topic - the key from source topic to be used in the target topic while forwarding - with same key the ordering of the message will be preserved - NOTE: the RTD related changes will be a separate patchset Issue-ID: CPS-2436 Change-Id: Ie692663706b378022ec0d621d92ca5054bad8d1b Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-11-04Merge "Verify LCM events during registration"Daniel Hanrahan2-31/+65
2024-11-04Verify LCM events during registrationmpriyank2-31/+65
- verifying the LCM state transition to ADVISED and then to READY state during cm handle registration - enhanced the base kafka test container to be thread safe - changed the auto offset reset policy for integration test to latest (default) from earliest - added retry mechanism to poll for the records Issue-ID: CPS-2468 Change-Id: Iabe603e1f5dd985899f04f5ace5d082acef7567a Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-11-04Merge "Add docker compose deployment for endurance tests"Lee Anjella Macabuhay2-18/+55
2024-11-04[Module Sync] Always update states at end of batchdanielhanrahan1-5/+5
This commit moves the state update code into the 'finally' block, so that state updates are always sent for the handles that finished syncing, even if an exception occurred. This commit also fixes a typo in cmHandleStatePerCmHandle. Issue-ID: CPS-2474 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ic25608a5772c0873fe0d0f8aca8d70bcda51d94a
2024-11-04Merge "[Module Sync] Log state changes after persistence"Priyank Maheshwari9-156/+191
2024-11-01[Module Sync] Log state changes after persistencedanielhanrahan9-156/+191
Currently, module sync will output messages such as: "cm-handle-1 is now in READY state" before the state change is persisted to the DB. If an exception occurs, the new state may not be persisted, which makes debugging hard due to misleading log entries. This commit moves the logging to the LCM state handler immediately after the change is persisted. - Move logging of state changes to LcmEventsCmHandleStateHandler. - Remove unused code in LcmEventsCmHandleStateHandler. - Add tests of state change logging. - Update the main test showing the bug to instead show expected behaviour, but disable test for now using @Ignore. Issue-ID: CPS-2474 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I58646af6df95e07e69ca525744713a7c01c25e41
2024-11-01Add docker compose deployment for endurance testshalil.cakal2-18/+55
- add new config file containing env variables for endurance test - add notes to describe how to run and stop it Note 1: Existing docker-compose deployment won't be affected by this changes Note 2: Both docker-compose can be deployed simultaneously without any issue Issue-ID: CPS-2463 Change-Id: I15936718dda2f31a5077b9c36eded21c1a85dfcd Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-10-30Changing git-info plugin phasempriyank1-1/+1
- get-git-info plugin to generate the output during validate phase instead of package phase for it to be part of cps-application jar Issue-ID: CPS-2445 Change-Id: Ibdd1eea8e3e4cb58d6b16ef47b0d158dc1f842a9 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-10-29Merge "Fix failing CSIT and add unit test proving the bug"Toine Siebelink3-15/+36
2024-10-29Merge "Add metadata related to builds and commits"Toine Siebelink4-6/+43
2024-10-29Merge "[k6] Increase timeouts after DMI stub changes"Daniel Hanrahan1-2/+2
2024-10-29Merge "Support Alternate-Id for CPS-E05 id-searches and searchCmHandleIds"Daniel Hanrahan22-160/+310
2024-10-29[k6] Increase timeouts after DMI stub changesdanielhanrahan1-2/+2
This commit changes k6 setup and teardown timeouts to 20 minutes. This fixes current test failures due to time-outs. Issue-ID: CPS-2410 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ifdbf26ed1669cdb3a2fc9afb551308757511281b
2024-10-25Support Alternate-Id for CPS-E05 id-searches and searchCmHandleIdsseanbeirne22-160/+310
Issue-ID: CPS-2402 Issue-ID: CPS-2383 Change-Id: I5dd3132b70b401bf2f50f77c2c131d5d34aa0c0a Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-10-25Fix failing CSIT and add unit test proving the bugdanielhanrahan3-15/+36
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-10-25[k6] Update tests for DMI stub changes for modulesdanielhanrahan3-4/+4
It is needed to update k6 tests due to changes made in the DMI stub for dynamic module generation: - Increase setup timeout to 30 minutes - Use 5 module set tags: tagA to tagE - Update module search to look for module100 Issue-ID: CPS-2410 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I17830e4d858883743476d297af90d1ceaba1eb44
2024-10-24Remove note about TBDMT from DocumentationToineSiebelink1-8/+0
Issue-ID: CPS-2433 Change-Id: Ia791cd7214eec08d2209469b82f56a04de42868c Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-10-24Merge "Added arcitecture tests for CPS (REST and service and RI)"Toine Siebelink3-48/+149
2024-10-24Merge "Update deployment docs for load balancer config"Lee Anjella Macabuhay1-0/+6
2024-10-24Added arcitecture tests for CPS (REST and service and RI)leventecsanyi3-48/+149
- added Base class and extracted common method for 3pp checks - added ArchTests for cps REST and cps service Issue-ID: CPS-2423 Change-Id: Icf70b79d1397b002d75ec5c8761775dfd7a6c6d9 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-10-24Add multi-threaded Integration Test for Module SyncToineSiebelink23-97/+354
- Add tests for multi threaded scenarios around module sync - Disabled ModuleSyncWatchdog timer using long delay and interval - Call Module Sync method as needed for more control (sometimes it needs to be triggered twice like retry use cases as designed) - Improve NCMP performance test setup (consistent naming etc.) - Rename some production code method names to better reflect functionality - Disabled intermittent failing test for create cm handle as it is not asserting the correct message - Improved Code Coverage ModuleSyncWatchdog Issue-ID: CPS-2462 Change-Id: Ia907af77d2037309f1bbb73ea671679b788bab9e Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-10-24Refactor: Improve code quality and compliance with SonarQube standardssourabh_sourabh2-22/+19
- Consolidated multiple `if` statements to enhance readability and maintainability. - Replaced traditional `instanceof` checks followed by casting with the new pattern matching syntax for improved type safety and clarity. - Removed unnecessary casts and streamlined code in `addYangLeafList` and `addDataNodeFromNormalizedNode` methods. Issue-ID: CPS-1957 Change-Id: I46696dc184b6b3c3d0fe3a6bd12267a4e0d76193 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>