summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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-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
2022-04-05[cps] Fix getResourceDataForPassthroughOperational endpointputhuparambil.aditya15-138/+39
Get endpoint only accepts application/json. Issue-ID: CPS-957 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ifc7426fbcd6073a39554014dc18b2107b6343b16
2022-04-05Merge "Structured Exception details for DMI"Bruno Sakoto8-29/+232
2022-04-04Structured Exception details for DMImpriyank8-30/+232
- Introduced DmiErrorMessage in API docs with 502 Bad Gateway - HttpClientRequestException will be thrown which will be exposed as 502 BAD Gateway for the client from NCMP Issue-ID: CPS-917 Change-Id: Iba8f159e8216bc1f63a9ab86208e5c802437e2e8 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
2022-04-01Update CM-Handle registration responseRenu Kumari6-17/+196
- update openapi.yml with new response structure - send only details of failed cm-handle operations - updated csit to validate 200 status Issue-ID: CPS-896 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I3b868bcc5b8ff488c31faef51edc82c771452234
2022-04-01Fix issue around duplicate build tagToineSiebelink1-15/+13
Fixes failing build after merge of CPS-322. Duplicate build tag found in checkstyle POM Issue-ID: CPS-322 Change-Id: I099e4242e419d7b393e7787d3f75f9909dce52ac Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2022-03-31Merge "Additional validation for names/identifiers"Toine Siebelink25-60/+231
2022-03-30Merge "Copyright Check Script"Toine Siebelink6-0/+782
2022-03-30Additional validation for names/identifiersDylanB95EST25-60/+231
Implementing additional regex validation for names/identifiers in CPS - Introduces a CpsValidator - Applies to relevent java public API's - Tests have been updated where necessary Issue-ID: CPS-322 Change-Id: I29ab8820bb1fe0eee247e425d6bb018bcd38f28e Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
2022-03-28Merge "Updated the Documentation with sample yang and json"Toine Siebelink2-15/+138
2022-03-27Registration Response for Create cmhandles operationsRenu Kumari4-217/+227
- Changed implementation to register each cm-handle at a time instead of registering all at once - Removed YangCMHandleList class and using String format to generated expected JSON - Response of all three operation types is returned in the updateDmiRegistrationAndSyncModule method - Changed parseAndRemoveCmHandlesInDmiRegistration to protected to keep in sync with create flow - Refactored existing create CMHandle test cases Issue-ID: CPS-896 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I5b0c01b3b8e31ca7c257b1e04069e35268be1132
2022-03-25Merge "Add Start and Stop sessions on JAVA API"Toine Siebelink10-44/+302
2022-03-25Copyright Check Scriptlukegleeson6-0/+782
- Prints warnings to build log if copyright issues detected - File ignore included for checkstyle folder and common extensions which don't have copyrights - Included Tests Issue-ID: CPS-911 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Idbdd050af964335cc32218e3c11c77d4101f9ecd
2022-03-25Registration Response for Update and Delete cmhandles operationsRenu Kumari7-84/+228
- Process registration in the delete, create and update order - updateRegistration returns DMIRegistartionRespons that contains response for all operations - Added logic to not delete cmhandle if schemaset deletion fails Issue-ID: CPS-896 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I907ff678d478894e7d4d3cc24b23a979c02ed97a
2022-03-25Add Start and Stop sessions on JAVA APIemaclee10-44/+302
Issue-ID: CPS-899 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Idbeb922790824b1ca601d6d4798df45efa57d685
2022-03-25Merge "Update maven build deploy version"Toine Siebelink4-0/+48
2022-03-25Updated the Documentation with sample yang and jsonLathish2-15/+138
Issue-ID: CPS-940 Change-Id: I66b2f0cc1007a23498803cca695aa3d19c0eb433 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-03-24Update SpringBoot when approved version has Log4J 2.17.1 or higherJosephKeenan2-13/+3
-Updated cps-dependencies/pom.xml SpringBoot to v2.6.4 -Updated cps-parent/pom.xml springboot maven to v2.6.4 -Updated spring cloud dependencies to 2021.0.1 Issue-ID: CPS-958 Change-Id: I37aca89edf6da83501414b4f202d3bb88464c801 Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
2022-03-24Update maven build deploy versionemaclee4-0/+48
Issue-ID: CPS-953 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Icc79e3836a186a2a9ce79c0e97965bc7e1fbb347
2022-03-23Merge "Update log4j dependency version from 2.17.1 to 2.17.2"Toine Siebelink1-4/+4