aboutsummaryrefslogtreecommitdiffstats
path: root/cps-rest
AgeCommit message (Collapse)AuthorFilesLines
2020-12-17Redirecting logs to consoleniamhcore1-48/+0
Issue-ID: CPS-10 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ib10a813cf33ad634fc9992b3b3a54a20e2323be1
2020-12-17Adding logging exampleniamhcore1-0/+3
Logging example as part of CPS-10 Issue-ID: CPS-10 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I6428b01d112f27f9e4c9c72ac02236fcc49a6a1c
2020-12-17Split the CpsRestController.javaputhuparambil.aditya4-73/+67
1. Changes in openApi.yml tags to cps-admin and cps-data 2. 2 different controllers implementing the corresponding Interfaces generated by the openapi 3. CpsRestExceptionHandler.java modified to handle the exceptions from all the controllers Issue-ID: CPS-129 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: If4da380771093f2a06946340c015ffa5c39e105d
2020-12-16Few Sonar Fixesputhuparambil.aditya3-24/+37
Add spock-spring testing Issue-ID: CPS-89 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I1e12fb56916e2123fc1d29bdf1524accbb9eeffd
2020-12-11Remove depredcated code/classesniamhcore3-152/+5
Issue-ID: CPS-93 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I49db5244400d5eb4206d59e73aaf801b7f90c61c
2020-12-10Retrieve All anchors for a given Dataspaceputhuparambil.aditya3-3/+12
Issue-ID: CPS-8 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Idb2e4f83d390f078345e556d89781e0bf4a9a41f
2020-12-10Improve CPS Exception handlingToineSiebelink3-43/+80
- Removing unnecessary level of CPS(Validation)Exception - Moved exception inside spi package - Rename exceptions are per agreed new exception hierarchy - Use new exceptions - Added SchemaSetAlreadDefined Exception - Added AnchorAlreadyDefined Exception - Ensure unique serialVersionUIDs - Fixed CpsAdmin(Persistence)ServiceImplSpec tests (there was a mix-up about what this class was testing) - Replaced exception builder with dedicated exception (constructors) Issue-ID: CPS-8 Change-Id: I9cb80af4951e69ee7b0e99303853955de9d4399f Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2020-12-07Create Common Model objects in SPIniamhcore1-10/+18
Issue-ID: CPS-100 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I8ba54cc5d881d9d5f18b77a54ae28d3dda8412c1
2020-12-02Fix checkstyle violations for "final" keywordClaudio David Gasparini3-23/+23
Issue-ID: CPS-119 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I871a361937ed30047fe89ff2d2b17499cddad56c
2020-11-30REST level exception handling cleanupRuslan Kashapov3-77/+31
- removed direct handling of persistence exceptions - error message model is now described via OpenAPI config Issue-ID: CPS-79 Change-Id: Ib460b020ae9c650e1f81b46ab01dab641c953170 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-11-18VSE: Create an anchor in the given dataspaceRishi.Chail5-67/+98
Issue-ID: CPS-42 https://jira.onap.org/browse/CPS-42 Signed-off-by: Rishi Chail <rishi.chail@est.tech> Change-Id: If67be6f13889808da4d9fe830595766af67e4fdf
2020-11-16Fixing errors in openapi.yamlniamhcore2-17/+2
https://jira.onap.org/browse/CPS-83 Issue-ID: CPS-83 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I665b829b65cebcec6f03951aa1c8a91f59f2269b
2020-11-11Merge "Exception handling on REST unit test"Toine Siebelink1-0/+115
2020-11-10Dockerize the serviceClaudio David Gasparini1-0/+4
- automatically generate docker image - provide docker-compose to start the service together with dockerized postgres db Issue-ID: CPS-22 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I846d14e87de50bfb1411e0c9b49e9f6c6cc8ebda
2020-11-10Fix broken branch by adding missing dependencyClaudio David Gasparini1-1/+4
- commons-lang3 Move .gitignore to correct folder Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Ifb24f89c798c1e1f2a6bb8436562a2f98d044b57
2020-11-09Exception handling on REST unit testRuslan Kashapov1-0/+115
Issue-ID: CPS-41 JIRA: https://jira.onap.org/browse/CPS-41 Change-Id: Ieda9c14b7e9c5962bf0b39c168de4c5cc7929d80 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-11-06Move cps files to root dirJessica Wagantall10-0/+990
Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>