aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-12-11Merge "Policy Executor API Review Board Comments"Lee Anjella Macabuhay6-315/+291
2024-12-11Merge "Extend the container-up time after the tests finished"Lee Anjella Macabuhay4-4/+9
2024-12-10Policy Executor API Review Board CommentsToineSiebelink6-315/+291
- Implemented Guild review comments in API - Updated Stub to reflect new API and 'support' all operations - Updated production code to use new API - Updated Semi-Integration Tests Issue-ID: CPS-2479 Change-Id: Ibe307b0d859312b534009a384e9f71e1ea2affe0 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-12-10Extend the container-up time after the tests finishedhalil.cakal4-4/+9
- extend it 5 mins for kpi test suit - extend it 7 mins for endurance test suit Issue-ID: CPS-2535 Change-Id: Ifecf2cdea67c12ff671da5f90e6715de7089e755 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-12-10Separated inventoryFacade to Interface and Implleventecsanyi10-131/+206
- created NetworkCmProxyInventoryFacade IF Issue-ID: CPS-2513 Change-Id: Ibda2d7899514ee22d4b04cad971e107bfccce2df Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-12-10Merge "Hazelcast Optimisation"Toine Siebelink13-54/+89
2024-12-09Hazelcast Optimisationemaclee13-54/+89
Issue-ID: CPS-2420 Change-Id: I707e0fbbddeb4ddc7c573a2b3ebd8fbca08126a6 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-12-09Merge "[k6] Use constant arrival rate"Toine Siebelink2-70/+116
2024-12-06[Module Sync] Store CM-handle IDs in work queuedanielhanrahan12-129/+122
This fixes bug CPS-2474, handling various edge cases, such as CM handles being deleted during module sync. - Change moduleSyncWorkQueue to store CmHandleId instead of DataNode. - Freshly fetch Cm Handles in module sync task, so latest CM-handle state is used, and only process ADVISED CM handles in module sync. Issue-ID: CPS-2474 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I53d5796c56014a2bfbe5b1c3f17d3991e4feef53
2024-12-05[k6] Use constant arrival ratedanielhanrahan2-70/+116
Currently, k6 KPI tests send requests using 'constant-vus' executor. This continuously sends requests on different threads - as soon as one request completes, another is sent. This leads to weird results where improving performance of one operation ends up degrading other test cases, due to more requests being sent per second. This change makes KPI tests send requests at a constant rate, making the mixed-load tests less prone to such anomalies. - Send requests at constant rates for test cases 3, 4, 5, 6. - Throughput tests 1, 2 & 7 still send at the fastest rate. - Adjust expected performance timings. Issue-ID: CPS-2519 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I641ead7d2d9d3b29116e1cf0d4bf8cd345b01a98
2024-12-05Moved common classes under the api package under apileventecsanyi201-495/+582
- moved common classes under the api package - moved Spec files Issue-ID: CPS-2512 Change-Id: I88046280ce359ce8cc488ad37d4e6f85406b0dbf Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
2024-12-05Merge "Add persistent storage to prometheus"Toine Siebelink3-4/+42
2024-12-04Inventory Persistance returns YangModelCmHandles for alternate Idsseanbeirne10-66/+85
-Remove getCmHandleDataNodeByAlternateId(s) methods and replace with Yang Model methods Issue-ID: CPS-2486 Change-Id: I2c9c96f033b3b1eefadb7eff14c91f9a936630e6 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-12-04Merge "[BUG] Effective trust factors in DMI trust level"Toine Siebelink7-30/+131
2024-12-04Merge "Add tests of attribute-axis feature"Toine Siebelink4-6/+75
2024-12-04[BUG] Effective trust factors in DMI trust leveldanielhanrahan7-30/+131
Effective trust of a CM handle should be the trust level of the handle or the DMI, whichever is lower. Currently, effective trust level of a CM handle is not reported correctly when the DMI is down, as DMI trust level is not considered. - Add DMI service names to NcmpServiceCmHandle - Introduce new DmiServiceNameResolver class - Correctly calculate effective trust level Issue-ID: CPS-2375 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Iaded0fadad58d960eb76c69f79a308df8329e534
2024-12-04Add persistent storage to prometheushalil.cakal3-4/+42
- add healthcheck to ensure prometheus service is running correctly and restarts it if it becomes unhealthy - set the data retention time to 30d - update readme Issue-ID: CPS-2466 Change-Id: I0f6186f8577e8e0113831ed040298b823e33d624 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-12-04Merge "Plot metrics for each cps-and-ncmp instance separately in Grafana"Daniel Hanrahan3-2/+14
2024-12-04Plot metrics for each cps-and-ncmp instance separately in Grafanahalil.cakal3-2/+14
- assing port range to cps-and-ncmp service to plot metrics separately Issue-ID: CPS-2536 Change-Id: Ic097017bbcca25f28341e8e77f658a0a4e8964d7 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-12-04Merge "Improve test coverage trustlevel manager"Daniel Hanrahan1-6/+9
2024-12-04Merge "Add comments to (describe) all Liquibase steps"Daniel Hanrahan3-4/+51
2024-12-03Improve test coverage trustlevel managerToineSiebelink1-6/+9
Issue-ID: CPS-475 Change-Id: I572227b4f6c61bd2286d8cb3fb85c3dc21142a47 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-12-03Add comments to (describe) all Liquibase stepsToineSiebelink3-4/+51
Issue-ID: CPS-776 Change-Id: I768da4e9d9a1e75d2cc1fa879a5237efb4c7421f Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-12-03Added performance section and updated api versionmpriyank7-10/+14
- Added a performance section to the release notes - Populated the correct info.version for NCMP and CPS Rest interfaces Issue-ID: CPS-2537 Change-Id: Iae07da57fc45100b4d250fcfb86a95079869b221 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-12-03Add tests of attribute-axis featuredanielhanrahan4-6/+75
Following TDD, functional acceptance tests are added for attribute-axis feature. This covers xpaths such as '//books/@title' - Add stub to CpsQueryService throwing UnsupportedOperationException - Add tests showing expected behaviour (tests currently ignored) - Implementation will be provided in following commmit for CPS-2416 Issue-ID: CPS-2416 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I71817e66b28dfc21e7b75243fd0135f3cceddb8e
2024-12-03Merge "[Cps Path Parser] Introduce Attribute axis"Priyank Maheshwari4-1/+38
2024-12-03Merge "Faster CM-handle searches using Hazelcast optimization"Toine Siebelink8-65/+146
2024-12-02[k6] Adjust expectationsdanielhanrahan1-12/+12
Some performance improvements were made over last months, so this commit adjusts expected performance to match. Issue-ID: CPS-1975 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Iff6a303e8424a9d8d8b1effe27724844eadbf7fd
2024-12-02Update the minor version of CPSmpriyank22-23/+23
- Update the minor version of cps. - New version being 3.6.0-SNAPSHOT now. Issue-ID: CPS-2488 Change-Id: I87fb29fe45dc942b258bc1d45e09a3351739539b Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-12-02Faster CM-handle searches using Hazelcast optimizationdanielhanrahan8-65/+146
This uses IMap::getAll(setOfKeys) to bulk read trust levels. This reduces CM-handle search time by a third. Issue-ID: CPS-2420 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ie63b45a76bee146def537b749074ecbb7715e6fc
2024-12-02[Cps Path Parser] Introduce Attribute axisdanielhanrahan4-1/+38
Add grammar and tests for attribute-axis to match cps paths like: //books/@title which should return the titles of all books (a subsequent patch will implement the logic). The syntax is compatible with XPath standard. Issue-ID: CPS-2416 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I25164b23670147c504f0f0f6c0cc8ff15997f2a3
2024-11-29Bump CPS to 3.5.6-SNAPSHOTegernug23-23/+54
Issue-ID: CPS-2488 Change-Id: Ib17e4283de959ec4aab3c68bb3ba8018a10a10b2 Signed-off-by: egernug <gerard.nugent@est.tech>
2024-11-29Merge "Container yaml for 3.5.5"Priyank Maheshwari1-0/+8
2024-11-29Container yaml for 3.5.5egernug1-0/+8
Issue-ID: CPS-2488 Change-Id: Ie09e3239e1bcb1878b43f8201595f0aea175bfa9 Signed-off-by: egernug <gerard.nugent@est.tech>
2024-11-29maven stage yaml for 3.5.5egernug1-0/+4
Issue-ID: CPS-2488 Change-Id: I04d65ba05e24b64932c887eea039f3ab05157702 Signed-off-by: egernug <gerard.nugent@est.tech>
2024-11-29Merge "Update release notes for OSLO"Daniel Hanrahan2-1/+15
2024-11-29Update release notes for OSLOmpriyank2-1/+15
- Added release notes for the features that were delivered in 3.5.5 version of CPS Issue-ID: CPS-2488 Change-Id: I31e863430a5aff41814bed0a4d39ef8546b8e617 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-11-29Merge "XML content support on Replace list content"Priyank Maheshwari10-21/+103
2024-11-28Merge "De-Registration without Orphaned Module Check"Toine Siebelink10-16/+119
2024-11-28De-Registration without Orphaned Module CheckToineSiebelink10-16/+119
- Testware updates to measure time spent for de-registration - Removed orphan check from module delete methods - Using @scheduled to run Db Cleaner method once (see https://lf-onap.atlassian.net/wiki/spaces/DW/pages/52494359/CPS-2478+Module+Sync+Inefficiencies#De-Registration:-Test-Measurements-With-and-Without-Orphanage-removal for reasoning) - Updated integration tests to call orphan check where need (after schema set deletion) Issue-ID: CPS-2478 Change-Id: I513af9d8bb88486a242284b58e0363a527346dd4 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-11-28XML content support on Replace list contentRudrangi Anupriya10-21/+103
Here to bring Support for XML Response Entity in Replace List content - Add ContentTypeInheadr in cpsData.yml to support application/xml - Add contentTypeInHeader parameter to accept xml in DataRestController.java - Modify the code return xml Data - written testcase for above changes made Issue-ID: CPS-2411 Change-Id: Ibb7ffb66ccdd03703266123c6d5c2eade0e7cb4a Signed-off-by: Rudrangi Anupriya <ra00745022@techmahindra.com>
2024-11-27Minor refactor of CPS rest controllerdanielhanrahan1-12/+3
Use streams to simplify logic Issue-ID: CPS-2416 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I1c37ac9c2fa7543e94f8cd60447f4a879a7376f7
2024-11-27Merge "Implement ancestor axis in SQL"Priyank Maheshwari4-62/+90
2024-11-27Merge "Catch data validation exception in dmi data operation"Daniel Hanrahan2-7/+12
2024-11-27[CPS] Reverted ncmp-dmi-plugin version to latestsourabh_sourabh2-2/+2
- Reverted DMI_VERSION to latest Ncmp-dmi-Plugin 1.6.0-SNAPSHOT-latest for CSIT. - Corrected dmi-stub docker image name from "dmi-plugin-demo-and-csit-stub" to "dmi-stub" Issue-ID: CPS-2499 Change-Id: I99087b7230a40e958b3b789549a4a8e4c9dd0341 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-11-26Implement ancestor axis in SQLdanielhanrahan4-62/+90
Currenty ancestor axis is implemented in Java using regex, which then sends a second SQL query to fetch ancestors. Implementing ancestor axis in SQL is more efficient, and is needed for limiting/paginating Cps Path Query results. Issue-ID: CPS-2416 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I0d8933f86c5a422f366ad7c417a17e263a13960f
2024-11-26Don't handle root xpath in getFragmentEntitydanielhanrahan3-18/+5
getFragmentEntity is an internal method only used for resovling parent xpaths. The root xpath handling is never reachable. - Remove root xpath handling in getFragmentEntity - Clean up unneeded FragmentRepository code Issue-ID: CPS-2511 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I910065bdb2e7c5fbb7c67af87f3f68af6c0fd4e0
2024-11-26Merge "[Cps Path Parser] Don't quote numbers in comparison"Lee Anjella Macabuhay2-10/+14
2024-11-25CpsDataPersistenceService refactoringdanielhanrahan1-197/+174
- Extract common code to reduce duplication. - Move private methods below public methods, and move private static methods to bottom of file. - Note some private methods are left in-place due to checkstyle rules (method overloads belong together). Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I088a5340e315d55aaf427444bdbfdcadf918464a
2024-11-25[Cps Path Parser] Don't quote numbers in comparisondanielhanrahan2-10/+14
Presently, Cps Path Parser will wrap numbers in quotes when normalizing or getting parent path, which can lead to invalid paths. For example: /books[@price > 15] will be normalized to: /books[@price>'15'] This causes trouble when running queries on normalized paths: (CpsPathException: "can use only > with integer") Note this patch will still normalize numbers to string for equality: /books[@price='15'] Much existing code relies on this, and it does not cause problems. Issue-ID: CPS-2365 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I15d326ad7db2311b64c636283a4d52623a125176