summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-04-12Handle Subscription Response from DMIseanbeirne4-6/+126
Issue-ID: CPS-1972 Change-Id: Idb8ad14f06e365707404d099a4581282d4a0add9 Signed-off-by: seanbeirne <sean.beirne@est.tech>
2024-03-25Merge "Save new cm notification subscription"Priyank Maheshwari4-7/+168
2024-03-22Save new cm notification subscriptionemaclee4-7/+168
Issue-ID: CPS-2043 Change-Id: If1c066a7d1c1f7e1c154714fe06f2566b727634c Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-03-19Merge "Add kafka messaging support to integration test module"Toine Siebelink4-4/+122
2024-03-19Merge "Update deployment docs for Postgres shared_buffers value"Toine Siebelink1-0/+7
2024-03-19Add kafka messaging support to integration test modulehalil.cakal4-4/+122
- add ncmp test using kafka to integration test suite Issue-ID: CPS-2152 Change-Id: Ia486bbcf1590ecf3ec6cbc2f513b74d55e4d6a31 Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-03-19Merge "Fix SonarQube warnings"Priyank Maheshwari16-274/+199
2024-03-19Update deployment docs for Postgres shared_buffers valuedanielhanrahan1-0/+7
- update deployment.rst to include info on Postgres shared_buffers Issue-ID: CPS-2156 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ia6e896e066227477a4824c03336de270800698d2
2024-03-19Fix SonarQube warningsToineSiebelink16-274/+199
targetted: - Introduced CmResourceAddress (name agreed with Daniel and Priyank) - Extracted out private method in AltenateIdChecker to reduce complexity side effects: - use 'record' java feature as suggested by ItelliJ - had to uprade spotbugs version to avoid incorrect warning on 'record' equeals method - convention: added missing 'asserts' in affected testware - my preference: removed a lot of unnecessary linebreaks in affected testware - removed redunfant (variation) of a 'delegation' test Issue-ID: CPS-475 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ie0c9d5ebc33196ae14ed6c226843095a2a040d1d
2024-03-19Set Postgres shared_buffers in docker-composedanielhanrahan2-0/+3
By default, Postgres uses value of 128MB for shared_buffers, regardless of available memory. It is recommended to use between 25% and 40% of memory for shared_buffers in Postgres. Current value can be checked in SQL using 'SHOW shared_buffers'. Issue-ID: CPS-2156 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ib20502f159f005ba941f39758555551f447d2b67
2024-03-19Configure Hazelcast to have 1 backup to reduce memorydanielhanrahan4-16/+13
Currently Hazelcast is configured to have 3 synchronous backups and 3 asynchronous backups. These are separate, meaning there will be 7 copies in the cluster (1 original + 3 sync + 3 async backups). Even if only 1 instance of CPS/NCMP is running, it will have 7 copies in memory. Given that CPS/NCMP is typically only deployed using 1 or 2 instances, the settings are changed to 1 synchronous backup (same as Hazelcast's default configuration). This change has been tested and shown to reduce heap usage by around 100MB during 20K CM-handle registration. Issue-ID: CPS-2146 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I4a5f6d83bc35e2c13cfb32002e38dc365da34c8e
2024-03-15Merge "[Bug] Removing inner TaskExecutor to call DMI"Sourabh Sourabh9-85/+29
2024-03-14Merge "Performance tests of alternate-id/module-set-tag lookup"Toine Siebelink7-22046/+185
2024-03-14[Bug] Removing inner TaskExecutor to call DMImpriyank9-85/+29
- Removing TaskExecutor from cps-ncmp-service package as anyways the call coming over from the cps-ncmp-rest layer is managed by a different thread executor(CpsNcmpTaskExecutor) - Provided 60secs timeout value. - Spawning new thread from a different executor might not be needed - Removing @Async from a non spring managed method as its of no use Issue-ID: CPS-2150 Change-Id: Ic99632983aff2c40df81421d782cf98ec600fc41 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-03-14Modify lcm events to include dataProducerIdentifier and moduleSetTag ↵JvD_Ericsson3-11/+23
(CPS-1964 3) Issue-ID: CPS-2114 Change-Id: I52ae18fe849801706491742818b316df9f8cb554 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2024-03-13Modify the get cmHandle api to return dataProducerIdentifier, moduleSetTag, ↵JvD_Ericsson6-3/+38
and alternateId (CPS-1964 2) Issue-ID: CPS-2113 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I672e5c8408e77a5fa15d6fc2f41438aca705484c
2024-03-13Provide support for data producer identifier during registration (CPS-1964 1)JvD_Ericsson16-36/+146
- Added support for the dataProducerIdentifier to be added, and updated from blank to something once - The dataProducerIdentifier is persisted in the DB Issue-ID: CPS-2105 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I1c230be8f9402154a761e8c2ba4d8a6331965b3c
2024-03-08Performance tests of alternate-id/module-set-tag lookupdanielhanrahan7-22046/+185
- Add some tests of CPS get/query operations comparing look up of cm-handle id vs alternate-id - Add test of querying all CM handles by module-set-tag - Test accuracy is improved by performing warmup operations (reported results are faster with more warmup iterations) Issue-ID: CPS-2087 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I4214e157ccf93f751c69b8a17d55f4185749ca90
2024-03-07Mapper to form CmNotificationSubscriptionNcmpOutEventmpriyank2-0/+151
- mapper to be used in the subsequent patches - test case to support the mapping of CmNotificationSubscriptionNcmpOutEvent Issue-ID: CPS-2147 Change-Id: I7f0be81941b774a27ddc343ed304a68c23796a60 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-03-06Merge "Advance DMI Stub to change module set (tags) used by cm handle"Priyank Maheshwari13-65/+102
2024-03-06Merge "Test of retry of failed module sync"Toine Siebelink3-18/+78
2024-03-06Advance DMI Stub to change module set (tags) used by cm handlesourabh_sourabh13-65/+102
- Renamed json response file name based on module set tag into Dmi plugin stub. - Added in memory map to hold the information of cm handle per module set tag int dmi plugin stub. - Exposed a REST api to perform diff. operations on memory map to replicate dmi plugin stub. Issue-ID: CPS-2079 Change-Id: I7818fa4c47be9a02068976fd116a1dbc36b134ef Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-03-06Merge "Log all incoming HTTP requests to NCMP with Authorization Header"Toine Siebelink2-0/+53
2024-03-06Merge "Update postman collection to utilize newest yang files"Toine Siebelink1-19/+60
2024-03-06Merge "Error reporting when registering cm handle with alternate id 2 - ↵Toine Siebelink7-126/+147
update scenario"
2024-03-05Error reporting when registering cm handle with alternate id 2 - update scenariohalil.cakal7-126/+147
- added error collection to cmhandle update Issue-ID: CPS-2109 Change-Id: I751cad7c35ec53e914888760dd66eb52054da36e Signed-off-by: halil.cakal <halil.cakal@est.tech>
2024-03-05Integration test of Bearer Token pass-through (CPS-2126 #5)danielhanrahan3-2/+132
This covers REST endpoints of GET, POST, PUT, PATCH, DELETE of /ncmp/v1/ch/{cmHandleId}/data/ds/{datastoreName} and the async REST endpoint of POST /ncmp/v1/data It verifies that: - bearer token is passed from NCMP to DMI - basic auth header is not passed from NCMP to DMI Issue-ID: CPS-2137 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ie4761a848904175a9d8cd5b917817e85f5b69813
2024-02-29Bump CPS to 3.4.7-SNAPSHOTmpriyank25-25/+52
- bump cps to 3.4.7-snapshot - updated the relese notes Issue-ID: CPS-2135 Change-Id: Ib166ebae2e3de9a727b3d0d4d21832c8858f4108 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-29Merge "Add container yaml for release"Sourabh Sourabh1-0/+8
2024-02-29Add container yaml for releasempriyank1-0/+8
- add container yaml to relase CPS 3.4.6 version Issue-ID: CPS-2135 Change-Id: Iabf6b3de1e29c894e95bb5659c0a357dd9876991 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-29Add maven stage yamlmpriyank1-0/+4
- maven stage yaml to release 3.4.6 version of CPS Issue-ID: CPS-2135 Change-Id: Icce73ceece62c889596bd757abe74844cd2f9531 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-29Merge "Release notes added for 3.4.6"Sourabh Sourabh4-490/+53
2024-02-29Add bearer token to NCMP async batch data passthrough (CPS-2126 #4)danielhanrahan8-29/+44
Async processing was not passing bearer token. Issue-ID: CPS-2128 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I75da35cce555c49cca638b68f106a9daba79c24a
2024-02-29Release notes added for 3.4.6mpriyank4-490/+53
- added the release notes and openapi documentation Issue-ID: CPS-2135 Change-Id: Ib224353ca5a529b6788ecb67c6432b806acdf557 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-29Update postman collection to utilize newest yang filesJvD_Ericsson1-19/+60
Issue-ID: CPS-2054 Change-Id: Id7aec68922157b1e662418de880742114b6ccc9e Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2024-02-29Add bearer token to NCMP passthrough operations (CPS-2126 #2)danielhanrahan19-91/+164
For NCMP resource data passthrough operations, accept an authorization header and propagate it to outgoing DMI request if it has a bearer token, otherwise use same behaviour as before Issue-ID: CPS-2128 Change-Id: Ib3bf401abce4221a8b706989fb6f07618aa33fe2 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
2024-02-29Merge "Remove Http Status 401 for cps core and NCMP(CPS-2126 #3)"Sourabh Sourabh10-92/+0
2024-02-29Remove Http Status 401 for cps core and NCMP(CPS-2126 #3)mpriyank10-92/+0
- Removing Unauthorized Http Status code 401 from the repo for CPS-Core and NCMP Issue-ID: CPS-2134 Change-Id: I535156fa30dd4292ad390177c217ddb3e8942d34 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-29Disable Spring Security and HTTP Basic Auth (CPS-2126 #1)danielhanrahan3-112/+4
This allows any authorization header to be passed in. Issue-ID: CPS-2127 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Ib1c5bd7024eed39afd1ae6e19325ed4733c853d4
2024-02-28Revert Spring Boot Upliftmpriyank18-44/+69
- reverting back to spring 3.1.2 - manual changes to revert as other apps not fully ready for the delivery Issue-ID: CPS-2133 Change-Id: I670b67916fa4a5d4e5bced6548b7fcd5ee12e855 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-28Log all incoming HTTP requests to NCMP with Authorization Headersourabh_sourabh2-0/+53
- Enabled configuration to log NCMP request header and payload. - Enabled the DEBUG level log into application.yml. Issue-ID: CPS-2131 Change-Id: I458b1148894b8f460b013f0fa93032231ac47938 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2024-02-27Bump CPS to 3.4.6-SNAPSHOTmpriyank25-25/+53
- bumping CPS to 3.4.6-SNAPSHOT - updated the release notes Issue-ID: CPS-2124 Change-Id: Id28af9340da9c1ce118b2122e97b8717860c7932 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-27Add maven container yamlmpriyank1-0/+8
- maven container yaml for the cps 3.4.5 release Issue-ID: CPS-2124 Change-Id: I185562247b39b7eed0f489be2f1cabd432a53a9b Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-27Add maven stage yamlmpriyank1-0/+4
- maven stage yaml for 3.4.5 version of CPS Issue-ID: CPS-2124 Change-Id: I61aadcf6400ba47ee511b4da1e324909473d6860 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-27Test of retry of failed module syncdanielhanrahan3-18/+78
A new integration test verifies that LOCKED handles that failed module sync will be retried after a few minutes. Issue-ID: CPS-2033 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: If194daeb315090f2710a017270875b6301f7140a
2024-02-27Release notes updatempriyank1-0/+1
- Added the spring boot uplift ticket Issue-ID: CPS-2124 Change-Id: I55b1e246d5bce92ed0a34deb19afe4903db4a7bc Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-02-27update link to upper-constraints.txtthmsdt1-3/+3
Issue-ID: DOC-823 Change-Id: I797b8e1058e8afe511bb9b140c75c887728ba311 Signed-off-by: thmsdt <thomas.kulik@telekom.de>
2024-02-26Merge "Populate cmSubscription cache"Priyank Maheshwari8-27/+293
2024-02-26Merge "Create shared postman collections"Sourabh Sourabh8-0/+2154
2024-02-26Merge "Add passthrough read operation (synchronous) to DMI stub"Lee Anjella Macabuhay2-6/+118