aboutsummaryrefslogtreecommitdiffstats
path: root/runtime-acm/src
AgeCommit message (Collapse)AuthorFilesLines
2022-12-14Server stubs for acm runtimelapentafd14-3/+639
- Added spring profile "stub" - Added Commission and Instantiation stub controllers - Added util function that decodes the object from the openapi/examples - Added 2 missing examples - Added Unit Test for stub controllers Issue-ID: POLICY-4143 Change-Id: Ife91a74e93df4e9db55e17ca9d1793a7ed289e92 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2022-12-13Merge "Link the existing InstantiationController with the generated code"Ramesh Murugan Iyer10-581/+320
2022-12-12Merge "Adding examples for openapi specification"Pamela Dragosh26-0/+3696
2022-12-12Link the existing InstantiationController with the generated codeFrancescoFioraEst10-581/+320
Issue-ID: POLICY-4467 Change-Id: Ibe9206ee4189e73357271211d83b0603edfb86da Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-09Merge "Add instanceId support in AutomationCompositionProvider"Liam Fallon7-38/+48
2022-12-08Add instanceId support in AutomationCompositionProviderFrancescoFioraEst7-38/+48
As part of the endpoint refactoring of InstantiationController, AutomationCompositionProvider have to support instanceId in CRUD operations. InstanceId will be temporary add as normal field and it will became primary key in next Jira task. Issue-ID: POLICY-4478 Change-Id: I0f7a1ab7683671403831cffdfe6db37eea569c74 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-08Adding examples for openapi specificationlapentafd26-0/+3696
Issue-ID: POLICY-4435 Change-Id: Icc45000058a579a076bbb0c2ae9bf3e66bce6f67 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2022-12-08Remove test statistics json filesFrancescoFioraEst4-119/+0
Issue-ID: POLICY-4481 Change-Id: Idd84f453315bce3865080979aceff3a188e36de5 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-07Increase code coverage in runtime ACMFrancescoFioraEst3-137/+254
Issue-ID: POLICY-4475 Change-Id: I936d6f0c20f774e37cef8dfbccaecb8f85660309 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-06Merge "Replace SpringFox with SpringDoc in CLAMP"Liam Fallon6-92/+43
2022-12-06Replace SpringFox with SpringDoc in CLAMPliamfallon6-92/+43
This commit: - Remove springfox from CLAMP - updates the commissioning, AC Element, and K8S particiapnt to use the generated interface rather than the hard coded one - removes swagger annotations from handwritten code - implements SpringDoc for the <base_path>/v3/api-docs on endpoints Issue-ID: POLICY-4404 Change-Id: I49f48bc7828cb49dab854ef9ed16a9aa377983e1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-12-05Merge "Refactor POST and PUT Automation Composition"Liam Fallon20-1485/+779
2022-12-01Refactor POST and PUT Automation CompositionFrancescoFioraEst20-1485/+779
Refactor POST and PUT Automation Composition to handle a single resource instead of a list. Issue-ID: POLICY-4470 Change-Id: Ic7025e1eafdd197487bc5268993ec5e3e5520025 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-30Save ToscaServiceTemplate as Json in ACMFrancescoFioraEst2-3/+3
Save ToscaServiceTemplate as Json using DocToscaServiceTemplate as model. Issue-ID: POLICY-4468 Change-Id: I4c6f49012d091b87f0da4db2edcd5f16af2f4d5c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-24Link the AutomationComposition with AutomationCompositionDefinitionFrancescoFioraEst14-326/+279
In AutomationComposition replace the link to ToscaNodeTemplate whit a link to AutomationCompositionDefinition using compositionId. Issue-ID: POLICY-4464 Change-Id: I66878f04ef93fb0754d0066e78bd074ce082f891 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-18Link the existing CommissioningController with the generated codeFrancescoFioraEst16-829/+412
Link the existing CommissioningController endpoint implementation code with the generated code in Acm. Issue-ID: POLICY-4454 Change-Id: Ie10296b6af8c8bfdbfa7f54714b22ca4804a2eef Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-15Merge "Remove redundant endpoints in ACM"Ramesh Murugan Iyer7-1199/+0
2022-11-14Remove redundant endpoints in ACMFrancescoFioraEst7-1199/+0
Remove redundant endpoints in ACM not present in the new generated Api code. Issue-ID: POLICY-4453 Change-Id: I4b843c2637e934f8a29f71d8031bdfe903ff20dc Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-11Modify OpenAPI yaml to fix swagger editor errorsliamfallon1-125/+118
Using this approach for schemas fixes the errors in the online Swagger Editor and the code generation still obeys the import mappings and uses the Java classes. Issue-ID: POLICY-4450 Change-Id: Ifc3064f8258c4281c9e6bfde16a812ffccd125c1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-11-10Align Code Generation to Commissioned Automation Composition endpointsFrancescoFioraEst1-250/+314
Issue-ID: POLICY-4450 Change-Id: Ic1bbc83611c2fb743f71d1d7ddb735756a37a6e6 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-09Fix typo in ACM swaggerlapentafd1-1/+7
Added code error 406 for POST, and fix typo Issue-ID: POLICY-4430 Change-Id: I8328830d87cdc98a8b6caa222c062a90583d2912 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2022-11-07Add ACM OpenApi Specificationslapentafd1-0/+1167
Commissioning and Instantiation endpoints Issue-ID: POLICY-4430 Change-Id: I69d8525615c165dc450da7d5bfcc4953e2d7b3bc Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2022-10-27Remove old implementation of statistics in ACM-runtimeFrancescoFioraEst8-1198/+18
The old implementation of statistics in ACM-runtime can be removed due the Prometheus metrics support. Issue-ID: POLICY-4419 Change-Id: Idecad04b4a5dd32ce2ebc1149eb99e4fdc6f0db1 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-10-10Make the ACM REST endpoint preamble configurable via springrameshiyer274-3/+10
ACM REST endpoint preamble "/onap/policy/clamp/acm/" needs to be configurable by the user via spring boot properties file. Issue-ID: POLICY-4381 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I1a82b22bb7b06f856d09089204d79dcfccb528a8
2022-09-28Increase code coverage in runtime-acmFrancescoFioraEst3-48/+156
Issue-ID: POLICY-4370 Change-Id: If017da7bfe555dcbc9c7be62628751dbf9707623 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-08-31Add Prometheus metric messages for ACM runtimeFrancescoFioraEst8-9/+49
Issue-ID: POLICY-4336 Change-Id: I8f89f795625d8802ee6f3836c6fc4b66f0db75db Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-07-14Remove usage of jackson libraries from clamp runtime acmFrancescoFioraEst4-179/+6
Issue-ID: POLICY-4105 Change-Id: I04488a8a246e4c161e9a9eca86634844aba27872 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-06-21Update service template for PMSH usecase with ACMrameshiyer273-33/+15
Issue-ID: POLICY-4240 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I169551637a48bcf5f4f7dc42dadbdc13a769f016
2022-06-09Fix configuration for Prometheus metricsadheli.tavares11-79/+101
JVM related metrics were not being exposed due to spring boot bug when loading beans configuration. Issue-ID: POLICY-4146 Change-Id: I334c60b0c0d087c63b28bf44704aa3e909eca646 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2022-05-25Added Edit Instance Properties Functionalitybrunomilitzer7-25/+244
Issue-ID: POLICY-4094 Change-Id: Id52dba3c0912486fa551697be170c05542a0ee22 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-04-27Fix Issue when serialization into JSON SchemaFrancescoFioraEst3-113/+91
Issue-ID: POLICY-4104 Change-Id: Iab42134820fc547429a988b43a0bd6edb344c3db Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-04-20Replace jackson library usage with GSONSirisha_Manchikanti3-70/+84
Issue-ID: POLICY-4085 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I6f8f55d2c49495b6efcdc7f58de03c440f72626d
2022-03-09Clean up of unit tests for ACM definitionsadheli.tavares19-7895/+127
Issue-ID: POLICY-3945 Change-Id: I080e402899d2b2960b46efa06db68041a73f5d2b Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2022-03-09Merge "Fixed Instance Properties Name"Liam Fallon5-33/+16
2022-03-07Organising tosca files references to an examples folderadheli.tavares1-232/+0
Issue-ID: POLICY-3945 Change-Id: If013bba1288ed9f5778ea796161d42d617909728 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2022-03-07Fixed Instance Properties Namebrunomilitzer5-33/+16
Fixed issue where the system put append _Instance1 so the end user can put their own custom name Issue-ID: POLICY-3978 Change-Id: I04500148aeee49c64f278ce00daa55d14f964b90 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-02-25Changed Incorrect Name for Tosca Service Template Participant Typebrunomilitzer1-8/+8
Issue-ID: POLICY-3940 Change-Id: Ia66052c4729d117f542069f0fdad8f74fabfe878 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-02-23Fix Schema name to be in consistent with other componentsLathish1-1/+1
Issue-ID: POLICY-3944 Change-Id: Ia20a7de1deb0b2282e1dd31c3e7d67da741d438d Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-02-18Rename TOSCA Control Loop to ACMliamfallon79-0/+18530
This commit renames the TOSCA Control Loop functionality in CLAMP to Automation Composition Management. This review is a direct renaming review and, as everything is renamed together it is large. Issue-ID: POLICY-3939 Change-Id: I28f0a6dd889bf3570a4c1365ae9e71fc58db6d6c Signed-off-by: liamfallon <liam.fallon@est.tech>