summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-03-29Bump CPS versionmpriyank25-25/+48
- bump cps to 3.4.8-SNAPSHOT - also updated the release notes Issue-ID: CPS-2168 Change-Id: Iee7f1e2febbf28b0d5a2855d3128d9eb8bb3c490 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-03-29Container YAML for CPSmpriyank1-0/+8
- added container yaml for cps 3.4.7 Issue-ID: CPS-2168 Change-Id: Ieb3afc2eb7f62e20bedef28cd5da3a2e7731bfa0 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-03-29Maven stage yaml for 3.4.7mpriyank1-0/+4
- added maven stage yaml to release CPS 3.4.7 version Issue-ID: CPS-2168 Change-Id: Id139fcf1c19acb2ffdd0a9e39066dc961158159b Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-03-29Release notes for 3.4.7 CPSmpriyank1-0/+1
- updated release notes for CPS 3.4.7 version Issue-ID: CPS-2168 Change-Id: I3a6689234e63db301787d49a5c76063c0b6203ae Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-03-29Merge "Uplift Spring boot 3.2.4"Priyank Maheshwari24-133/+87
2024-03-29Uplift Spring boot 3.2.4emaclee24-133/+87
- uplifted spring boot from 3.1.2 to 3.2.4 - removed redundant dependencies - upgraded relevant dependencies - use of @Bean(some_name) is give a specific bean name - using @Bean(some_name) with @Qualifier so on the injection point to specify which bean to actually inject, this is used as we deal with multiple beans of the same type. Issue-ID: CPS-2101 Change-Id: I64d5bf567b9eb03fb39034a46528d0160b332715 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-03-27Merge "Scheduled task for Subscription Response"Lee Anjella Macabuhay3-18/+182
2024-03-27Fix code smellemaclee1-9/+2
- change string to formatted Issue-ID: CPS-475 Change-Id: I59271c63f244c4d6684b145b1afe2356668e6fd8 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
2024-03-27Scheduled task for Subscription Responsempriyank3-18/+182
- Need to send the response back to the client in max 30 secs - Also have the capability to send the response right away - Testware added for the same - Also added code to cancel the scheduled task - Added state for cancelling the task Issue-ID: CPS-2140 Change-Id: I3ab321d8221cd8f697c26be46d2e63d89b360923 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2024-03-26Merge "Condense Liquibase steps"Toine Siebelink51-8492/+260
2024-03-26Condense Liquibase stepsdavid.mcweeney51-8492/+260
Change-Id: I1493f49bb93c359df3ff7d4f928f9a94fb8b2604 Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: CPS-2061
2024-03-26Merge "Code review cleanup for: Add kafka messaging support to integration ↵Lee Anjella Macabuhay3-22/+25
test module"
2024-03-25Code review cleanup for: Add kafka messaging support to integration test modulehalil.cakal3-22/+25
- Address code review on commit which already merged https://gerrit.onap.org/r/c/cps/+/137496 Issue-ID: CPS-2152 Change-Id: I7a46dd08c919227c37fdeacf4763d0ab364c88c1 Signed-off-by: halil.cakal <halil.cakal@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>