summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-05-24Enhanced response with Complex State in APImpriyank10-9/+259
- Introduced RestOutputCmHandleState in API specs of retrieveCmHandleDetailsById - Mapper to map CompositeState to RestOutputCmHandleState - Enhanced existing test cases and introduced new one to test the mapping result Issue-ID: CPS-1047 Change-Id: I34fa198287e5d920bc0cea312ee4e368f3be2b90 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-05-20Merge "Get cm-handle public properties endpoint"Toine Siebelink10-18/+128
2022-05-20Get cm-handle public properties endpointlukegleeson10-18/+128
Added RestOuputCmHandlePublicProperties OpenApi Object Added Get cm-handle public properties endpoint Added rest and service layer functionality for endpoint with tests Fixed Copyright Checker violations Issue-ID: CPS-1018 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Ifc13cde350a49f6ba705a09e31853dc9c73be168
2022-05-20Merge "URI is not absolute when service name is not set"Joseph Keenan2-3/+15
2022-05-19Merge "Composite State to handle dmi-reg YANG updates"Toine Siebelink10-32/+211
2022-05-19Composite State to handle dmi-reg YANG updatesmpriyank10-32/+211
- Introduce CompositeState object which handles change in updated YANG for dmi-registry - Used Builder pattern as some of the fields are optional - Removed the abstract ready method from CmHandleState which was used as state machine - Fixed few test cases Issue-ID: CPS-1042 Change-Id: I8aaf6f819c66b3a9d30c5e8f0a0007f9528b247f Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-05-19URI is not absolute when service name is not setDylanB95EST2-3/+15
BUG - URI is not absolute exception when dmi-service-name is not set in the database, due to null String Has now been set to null value Issue-ID: CPS-1043 Change-Id: If48c34d8caee302a1849555755960dccfd26ab7a Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-05-16Remove NCMP tag from propertiesDylanB95EST4-21/+21
We have decided to remove the NCMP tag from properties and will add it later as part of our release process for KOHN. Issue-ID: CPS-875 Change-Id: I7282c3c11879f2252c8a1b193df17f3f4bb1cf14 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-05-13Merge "Watchdog-process that syncs 'ADVISED' CM Handles"Toine Siebelink8-24/+130
2022-05-12Watchdog-process that syncs 'ADVISED' CM HandlesDylanB95EST8-25/+131
- Sync and Create Schema Set during module sync watchdog process. - Add a cm handle state transition machine to handle state changes for a cm handle during watchdog which syncs module service. Issue-ID: CPS-875 Change-Id: I3b178f5693cb7ac30577dd81cdc82b462555389a Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-05-12Merge "Add graceful shutdown for Session Manager"Joseph Keenan7-44/+184
2022-05-12Add graceful shutdown for Session Manageremaclee7-44/+184
Introduce singleton session manager Add unit test for session manager Issue-Id: CPS-898 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Iaf91f1aa6c1ebfe0ab907e7f7d80a01e940a0fdd
2022-05-11Merge "Update DMI Registry yang to support DataStoreSyncState"Toine Siebelink4-0/+239
2022-05-11Update DMI Registry yang to support DataStoreSyncStateLathish4-0/+239
- Added dmi-registry@2022-05-10 yang to support DataStoreSyncState - Added changelog 14 to add the dmi-registry Issue-ID: CPS-1014 Change-Id: I910d2496a359fdf2441e172ca270036272d31dc6 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-05-10Watchdog Process-Make ConfigurableDylanB95EST3-10/+23
Make time configurable for the watchdog process. Add documentation outlining this. Issue-ID: CPS-875 Change-Id: I1307c82d02789097efda1ba981eb1fd36c9efc38 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-05-10Merge "Add ncmp tag to application yaml"Toine Siebelink3-16/+17
2022-05-10Merge "Improve Local Running of CSIT Tests"Toine Siebelink1-1/+1
2022-05-10Improve Local Running of CSIT Testslukegleeson1-1/+1
Issue-ID: CPS-734 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Iff92f43dc69cdaf3e1e78551f68ecfb08bde4b93
2022-05-09Add ncmp tag to application yamlDylanB95EST3-16/+17
Add an NCMP tag to Application.yml to store NCMP related propeties Issue-ID: CPS-875 Change-Id: I2bce3d765ae69cc2a4bb52a472eea7cae745fd2c Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-05-06Security Logging Fieldssourabh_sourabh1-1/+1
- Made logging.format value case insensitive for consistency as we did same change for cps-temporal, ncmp-dmi-plugin and oom. Issue-ID: CPS-986 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I085a3777e8f4cf9e6b62e40d05672ce455916a85 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
2022-05-05Security Logging Fieldssourabh_sourabh4-56/+68
- logback core and encoder dependencies are added. - New appender is added to log JSON format content on console. Issue-ID: CPS-986 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: Ia72b27f306019fa259b3d6de4c5399f0ae734076
2022-05-03Merge "Fix sonar code smells"Joseph Keenan1-2/+17
2022-05-03Merge "Watchdog-process that changes CM Handles state"Joseph Keenan12-12/+283
2022-05-03Fix sonar code smellskissand1-2/+17
* Increase code coverage in DataNodeBuilder Issue-ID: CPS-475 Change-Id: I00a3b1c81911c1ccd3db810eec2f2989946809c5 Signed-off-by: kissand <andras.zoltan.kiss@est.tech>
2022-05-03Merge "Updated the documentation with limitation of leaf condition"Toine Siebelink1-1/+4
2022-04-29Merge "[STRIMZI] Add strimzi kafka notes"Toine Siebelink2-10/+13
2022-04-29Watchdog-process that changes CM Handles stateDylanB95EST12-12/+283
Add a fixed delay scheduler to switch cm-handles found in an ADVISED state to a READY state Scheduler currently runs every 30 seconds Will only update a single cm-handle at a time Queries CM-Handle with Advised States Only using CPS Path. Will choose cm handle at random Issue-ID: CPS-875 Change-Id: Ie1b49c89a0350d20e14748a65f9c1d260d8502d2 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-04-29Merge "Fix sonar code smells"Toine Siebelink1-5/+7
2022-04-29Fix sonar code smellskissand1-5/+7
* Increase code coverage https://sonarcloud.io/component_measures?metric=uncovered_conditions&id=onap_cps Issue-ID: CPS-475 Change-Id: I124bad6c01acbcb9658f52eb68079628e074168e Signed-off-by: kissand <andras.zoltan.kiss@est.tech>
2022-04-28Updated the documentation with limitation of leaf conditionLathish1-1/+4
Issue-ID: CPS-988 Change-Id: I6d02b35b949c62f956b291a86d4abe6e1a70b3ec Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-04-27Add methods to Lock Anchor entityemaclee12-36/+415
Added separate integration and mock-based unit tests Issue-ID: CPS-898 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: I14d1d1c41759ce028e2417fdd2df001280e19ab2
2022-04-26Merge "Fix Absolute Path to list with Integer/String key"Toine Siebelink13-149/+392
2022-04-25Fix Absolute Path to list with Integer/String keyLathish13-149/+392
- Introduced normalizedXpath to normalize the xpath and cpspath - Introduced normalizedAncestorpath to normalize the ancestor path in xpath and cpspath - Added new condition in the ANTLR Grammar to capture the invalid path in the xpath - Introduced PathParsingException to replace the IllegalStateException Issue-ID: CPS-961 Change-Id: Ie10f5c6cfc466387e79eec184b933297d1d79587 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-04-21Review spring framework dependencyBruno Sakoto1-5/+3
Use default spring framework version from spring boot dependencies. Then, cps application is now currently using spring-web 5.3.16 (from spring boot 2.6.4) instead of previously specified 5.3.13. Issue-ID: CPS-998 Change-Id: If16c5f4c7176a34b5a595a1411d3caa763d3c2f0 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
2022-04-18Document ncmp-inventory error code in openapiRenu Kumari2-23/+55
Issue-ID: CPS-896 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Ic39da86c18ac921a6a3d213064f0b7c77d08e06f
2022-04-12Refactor existing model sync code into separate packagesourabh_sourabh5-66/+134
- Created a new class to seperate sync related operations of modules. - Kept newly created class into .../api/inventory/sync package. - Created a separate groovy test. - Fixed existing groovy test. Issue-ID: CPS-950 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: Ie7cc36ea75daf43f1383757bcf2057c5cb4894b1
2022-04-12Fix ANTLR version issueLathish1-0/+1
- Updated ANTLR compiler version to 4.9.2 to be compatible with runtime version Issue-ID: CPS-961 Change-Id: I78a3fe541c9edcfc891fb045a60ed117d3aa5b08 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-04-11Add bounds to sphinx requirementCédric Ollivier1-1/+3
As ONAP was created before Oct 20 2020 in RTD, we must set bounds to enforce a compatible Sphinx version (see manual). Issue-ID: DOC-782 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I5ed268d592986764bf040690a47c5024692768b7
2022-04-11Fix Sonar Qube ViolationsDylanB95EST1-12/+11
Immediately return expression Issue-ID: CPS-475 Change-Id: I2c33c94bef1ff097786299d3a037feea2b4ebbff Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-04-08Fix Sonar Qube Violations - Recurring taskDylanB95EST2-3/+4
Fix sonar issues in CPS. - Remove Unnecessary cast to List - Immediately return expession Issue-ID: CPS-475 Change-Id: Ic3fa2f3f92784682045a780d87c6737d04f37659 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-04-08Merge "Refactoring/ Adding Tests for Validation"Joseph Keenan29-121/+633
2022-04-08Refactoring/ Adding Tests for ValidationDylanB95EST29-121/+633
Refactored classes affected by validation Have added tests for anywhere where validation is used Have refactored the parse and sync modules validation to be validated at the public api method Issue-ID: CPS-322 Change-Id: I4989cfd03300fbdca41571d0aa2d0b96978858ba Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-04-08Merge "Fix to stop build failure on CopyrightCheck Error"Toine Siebelink1-0/+4
2022-04-08Merge "Update info.yml for new Committer"Toine Siebelink1-0/+5
2022-04-07Update info.yml for new CommitterJosephKeenan1-0/+5
-Updating INFO.yaml to include new committer for CPS (JosephKeenan) Issue-ID: CPS-985 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: I08ca90749e13a977f83d173f2cd72146753c2370
2022-04-07Fix to stop build failure on CopyrightCheck Errorlukegleeson1-0/+4
- This will make the maven build see an error thrown by the python script as a success and won't fail the build Issue-ID: CPS-911 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Ibc5311de8a2f173a92e44c20c1c244f016a99588
2022-04-06Merge "dmi plugin version updated to 1.2.0-SNAPSHOT-latest"Bruno Sakoto1-1/+1
2022-04-06Query based on Public CM PropertiesJosephKeenan24-23/+415
-Updated OpenAPI for new Endpoint -Will replace SQL with CPSPathQuery once investigation is complete -Functionality in place to determine if public properties match - -Added Unit and CSIT tests - small modifications may need to be made -CSIT tests enhanced to add additional nodes and tests Issue-ID: CPS-731 Change-Id: I403e603ce79c4a4a6994d51b459b5703510d5a83 Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-04-06dmi plugin version updated to 1.2.0-SNAPSHOT-latestputhuparambil.aditya1-1/+1
CSIT updated to test the changes on Accept header Issue-ID: CPS-957 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I2fb4abd5dff5ab7b02345ad6b4899987c2553130
2022-04-05Async: NCMP Rest impl. including Request ID generationsourabh_sourabh7-137/+161
- Restructured code and moved some of them at controller and service layer. - Unit is fixed and organized to it's belonging classes. Issue-ID: CPS-828 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I0919218e35b1d11cb579d707f376b76de80409da