aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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-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
2024-11-25Catch data validation exception in dmi data operationseanbeirne2-7/+12
Issue-ID: CPS-2510 Change-Id: I4093459c824c202dc8dec4b869e338d4b80fbac8 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-11-25Registration Optimization remaining Code CommentsToineSiebelink5-9/+6
Issue-ID: CPS-2478 Change-Id: I0aa3804225f053ff99176056fe71322a23cff31c Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-11-22Define new Suite (js): Endurancehalil.cakal6-139/+218
- have one ncmp-test-runner.js with different configs: kpi.json and endurance.json - move scenarios and thresholds settings into the json configs Issue-ID: CPS-2444 Change-Id: I72f65036dc3f7762284b32903e1d05474dbed6c2 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-11-22Make Content-Type header default to JSON for CPS APIsdanielhanrahan5-41/+73
Recent changes for XML support have made Content-Type header mandatory, where before it was not. This change makes CPS default to JSON if Content-Type is not specified. Issue-ID: CPS-2517 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ic3718bfe7aedd6fe9dbd978f520179b184c9c932
2024-11-21Merge "Prioritize cm handle ids over alternate ids in data operations"Daniel Hanrahan5-8/+43
2024-11-21Prioritize cm handle ids over alternate ids in data operationsToineSiebelink5-8/+43
Issue-ID: CPS-2510 Change-Id: I7068d0de45cc2c2e5d8815f0e78c260369f3551e Signed-off-by: seanbeirne <sean.beirne@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2024-11-21Add Rest tests for yang module APIsdanielhanrahan1-0/+101
Add tests of following rest endpoints, including error scenarios: - /ncmp/v1/ch/${cmHandleReference}/modules - /ncmp/v1/ch/${cmHandleReference}/modules/definitions Change-Id: Ia4b5a638345840970794c7ae93dfd44e5ea62252 Issue-ID: CPS-2509 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
2024-11-21Merge "Add new k6 test profile for running edurance tests"Daniel Hanrahan9-38/+86
2024-11-21Merge "Upgrade liquibase to version 4.30.0"Toine Siebelink1-2/+2