summaryrefslogtreecommitdiffstats
path: root/cps-rest
AgeCommit message (Collapse)AuthorFilesLines
2021-03-12Merge "Move web security configuration to application module"Toine Siebelink7-179/+30
2021-03-12Move web security configuration to application moduleRuslan Kashapov7-179/+30
Issue-ID: CPS-288 Change-Id: Ieba184c3e4727e354c19a3db31325052d15ced44 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-03-11Exception stack trace is exposedniamhcore2-38/+16
Issue-ID: CPS-249 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I1e03c17364c925c6f976f2147cb17f8ac26ba995
2021-03-11Suppress csrf sonar security hotspot warningBruno Sakoto1-0/+5
Issue-ID: CPS-285 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I95d2b7d48714d21e2cdcaab36f3ba9903f0b5342
2021-03-09Improve error reporting for invalid cps path queryniamhcore2-3/+9
Issue-ID: CPS-276 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I0e0abbaff32c936c67fc1092dc8385a0bc5ae49e
2021-03-05Update versions for next releaseRishi.Chail1-1/+1
Issue-ID: CPS-256 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: Ifce438495233edd7de9f42129ab60bebc365f0b9
2021-03-05Merge "Upgrade version number"Toine Siebelink1-1/+1
2021-03-05Add basic authentication securityBruno Sakoto7-65/+268
Endpoints exposed outside from the cluster require basic authentication except actuator health and info endpoints. Default user credentials are embedded in the application, they can be overridden with system environment properties. Issue-ID: CPS-175 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I3dfa0e49e5f4538c923e6bbe9bef976d30359fe6
2021-03-04Upgrade version numberBruno Sakoto1-1/+1
Honolulu RC0 will be version 1.0.0 Issue-ID: CPS-260 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Ib4d464100b7b5814070d41dc911f342f58836442
2021-03-04Fix cps-nf-proxy standalone assembly.Ruslan Kashapov1-4/+4
Application dependency on cps-ri module moved from cps-rest module (indirect) to cps-application (direct, using assembly profiles) Issue-ID: CPS-274 Change-Id: Id246dc4c6d15343e4862f70151aa82c5020862c9 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-03-02CPS-265 - updating cps path to support include-descendants option.niamhcore3-11/+24
Issue-ID: CPS-265 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I9e9b84760dbc8b5eb4b31ab972fdb2d186c6bb48
2021-02-26Implement getDataNode(anchorName, xPath) in NF-ProxyHanif Kukkalli1-0/+11
Added spring-boot-starter-validation instead of cps-ri. Added test 'Data node without leaves and without children.' to MultipartFileUtilSpec groovy test Created a method getNodeByCmHandleIdAndXpath(cmHandleId, cpsPath) Added hardcoded value of NFS DataspaceName as: "NFP-Operation". Issue-ID: CPS-172 Signed-off-by: Hanif Kukkalli <lte-ng@outlook.com> Change-Id: Ie8086ede01a9c5069b1ee75864b04a0ee5e8a4f6
2021-02-22Upgrade version numberBruno Sakoto1-1/+1
Issue-ID: CPS-175 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I23bdd1b406e2076c612c06c1677af4440c0b883f
2021-02-22Rest & Java API layer - Query Datanodes using cpsPath that contains contains ↵niamhcore8-0/+180
a leaf name and a leaf value Issue-ID: CPS-231 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I3bf2a9946746ad06ddb4bc832206a36b78ff2175
2021-01-27Correct URL for Get a node using anchor and dataspaceRishi.Chail4-11/+21
Issue-ID: CPS-252 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I26bf4e30f49d1b47c38826360cd046ff41081aa8
2021-02-18Data fragment update by xpath #3 - rest and service layersRuslan Kashapov4-16/+126
Issue-ID: CPS-58 Change-Id: Ie224da95b07748b63648226df6484cebae91cdec Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-26Ensure CPS REST API Specs conform to ONAP standardsRishi.Chail5-157/+178
Issue-ID: CPS-25 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I17fec852cf2dcb824dfc0ab7f00ebe4cfd9e09b5
2021-01-25Ensure CPS REST API Specs conform to ONAP standardsRishi.Chail2-31/+15
Issue-ID: CPS-25 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I289248b0f67949a2b9515932628edd4a7bd77a58
2021-02-10Remove extra dependencies on actuator for rest servicesRuslan Kashapov1-4/+0
Issue-ID: CPS-232 Change-Id: I321752949ae8eed31e5ac3a1683f67fab30c5367 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-09General groovy test improvementsToineSiebelink1-30/+43
- Use the power of Groovy (maps and collections) - Improve data sample readability - Split out Datanode get scenarios: Separate Leave test from children related tests Issue-ID: CPS-160 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ife40749525a931b23091b472680c233f012bc457
2021-02-04Fetching data node by xpath - rest and service layersRuslan Kashapov5-13/+113
IssueID: CPS-71 Change-Id: I54801fc12a8aa700d85e774780c9990b7f19c747 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-04fix mvc tests skipped for rest servicesRuslan Kashapov4-130/+161
IssueID: CPS-175 Change-Id: I0ec53bf1b00a7fe7413819398cc7eddd520b4358 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-02-04Decouple application configuration fileClaudio D. Gasparini1-1/+1
Agreement is that application configuration should live on OOM - leave an example of the configuration file under docker compose to run locally, instead of use OOM. Mainly for devs - document on README how to run the app with IDE or with docker compose - remove duplicate code on poms Issue-ID: CPS-175 Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I328e89dba78cdf4d8abab51e3be5cb6d641064db
2021-02-04Merge "Decouple configuration from application"Toine Siebelink8-127/+35
2021-02-02Refactoring tests and adding tests for creating a node.niamhcore2-90/+176
Issue-ID: CPS-26 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I36e3f2bbb2928cc6b8d0d4a079516f801c33df13
2021-02-01Decouple configuration from applicationClaudio D. Gasparini8-127/+35
- Decouple configuration from application - Generate all 3 types of docker variations Issue-ID: CPS-175 Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I1e2e0577c5911f7c79801e4c691d196515dc02a1
2021-02-01Merge "Retrieve an Anchor for a given dataspace by anchor name - REST layer"Toine Siebelink3-8/+23
2021-02-01Attach a (JSON) data instance for a container with children to a given Anchorniamhcore4-30/+39
Issue-ID: CPS-26 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I38fc1b1a6ccf84e64eff3218372b40c8fa2491ba
2021-01-26Loggers actuator config typo fixRuslan Kashapov1-1/+1
Issue-ID: CPS-158 Change-Id: I55abb9a459288d83eb7002e8f92c6e89148087db Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-23Retrieve an Anchor for a given dataspace by anchor name - REST layerRishi.Chail3-8/+23
Issue-ID: CPS-186 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I2dceb582c6277e56400dfbc46340c70d814603ee
2021-01-22Merge "Enable log level management via actuator, /cps/api path to use for ↵Toine Siebelink5-10/+28
REST controllers only only"
2021-01-22Merge "ZIP archive support for multiple YANG files delivery on Schema Set ↵Toine Siebelink6-27/+197
creation using REST"
2021-01-22Move jib plugin configuration from parentClaudio David Gasparini1-6/+35
and leave profile generating container under single module responsible of such task Issue-ID: CPS-22 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Iaf4b0d6ef8211aab0556288912a6a49bf4c98bfd
2021-01-21Introduce caffeine cacheClaudio David Gasparini1-0/+5
Issue-ID: CPS-163 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Iff9b831c2d895d82aff419f60a8dd86a38b545d0
2021-01-21Enable log level management via actuator, /cps/api path to use for REST ↵Ruslan Kashapov5-10/+28
controllers only only Issue-ID: CPS-158 Change-Id: I1f9ff4429f331ca4204d1acaf73ac896a68994d0 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-21ZIP archive support for multiple YANG files delivery on Schema Set creation ↵Ruslan Kashapov6-27/+197
using REST Issue-ID: CPS-180 Change-Id: I7e78a595593b170b981746e9aed1a7e5a45b202a Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-19Delete schema set - REST and service layersRuslan Kashapov6-7/+87
Issue-ID: CPS-121 Change-Id: I0fe885c79f98c994a8ac25a59b77b99eee4b3076 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-15Configure coverage per module for cps-serviceClaudio David Gasparini1-0/+4
Set global minimum to 90 % coverage Set specific minimum for cps-service, once achieved the 90 all modules should respect this minimum Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I29172e47b907d596ffe983ff16429f44e44f8913
2021-01-15SonarQube fixesToineSiebelink1-0/+37
- Ignore missed SonarQube violations on SchemaSetAlreadyDefinedException - Added coverage fro CpsConfig as it will not be covered by MVC tests Issue-ID: CPS-89 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: I52911419dd9556cf078f2a05eab2c7783cbf304f
2021-01-15Split OpenAPI yaml fileputhuparambil.aditya7-396/+356
1. components like schema, parameters, responses, requestBodies all moved to components.yml (https://swagger.io/docs/specification/components/) 2. CpAdmin.yml includes the configuration details for cpsAdmin APIs 3. CpsData.yml includes the API configuration details for cpsData Issue-ID: CPS-155 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I18fb9b8a2be85d180d4625657aca399dbf60b7bc
2021-01-14Fix code coverage for sonarClaudio David Gasparini1-4/+0
The get the multi module aggregate report to be consumed by sonar we are enforced to use full path to all reports. - 90.4 % coverage detected by sonar achieved Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I91d81063e7234327cb4458c31fa27601ec22e9cd
2021-01-13Include aggregate xml report on sonar coverageClaudio David Gasparini1-0/+4
Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I50de5df1bc79ff22c90a5cbe2f1b143164c8abea
2021-01-12Enable spotbugs and fix spotbugs warnsClaudio David Gasparini1-2/+4
Issue-ID: CPS-159 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: Iee572fd740689a172ca599123b0751b5e909223a
2021-01-11Rework CpsModulePersistenceServiceClaudio David Gasparini3-13/+68
- remove getModuleReferences - provide service returning YangTextSchemaSourceSet Issue-ID: CPS-21 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I61cf6450c8ed8a5154990ea19467e016dc1155b4
2021-01-06Create dataspaceRuslan Kashapov3-0/+63
Issue-ID: CPS-134 Change-Id: Ie7f00f9c322a12a6c2a71c1407f6970a7dd24d2d Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2021-01-06WebMVC groovy test cases for AdminRestControllerputhuparambil.aditya1-1/+38
Issue-ID: CPS-129 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Id4bdfb7b6602244ae5abac646a9ec9f68f63cad2
2021-01-06Merge "Create schema set REST API and service level"Toine Siebelink6-3/+260
2020-12-24Create schema set REST API and service levelRuslan Kashapov6-3/+260
Issue-ID: CPS-123 Change-Id: Ie6d5fd4755454331415af7b80eaf85925efab395 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
2020-12-17Merge "Redirecting logs to console"Toine Siebelink1-48/+0
2020-12-17Redirecting logs to consoleniamhcore1-48/+0
Issue-ID: CPS-10 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: Ib10a813cf33ad634fc9992b3b3a54a20e2323be1