aboutsummaryrefslogtreecommitdiffstats
path: root/models/src/main
AgeCommit message (Collapse)AuthorFilesLines
2022-12-20Add compositionId into Messages between ACM and ParticipantsFrancescoFioraEst4-126/+6
Issue-ID: POLICY-4489 Change-Id: I1fb8c04eacee040d5c944c522ca59a2a9a50376b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-20Merge "Fix copy contructor in DocToscaServiceTemplate in ACM"Liam Fallon6-25/+93
2022-12-20Merge "Refactor instanceId as primary key in JpaAutomationComposition"Liam Fallon7-179/+110
2022-12-19Merge "Upgrade the H2 database to the latest version"Liam Fallon1-1/+1
2022-12-18Upgrade the H2 database to the latest versionliamfallon1-1/+1
The latest verison of H2 does not allow colums called "user" or indexes using an underscore in their name. Issue-ID: POLICY-4488 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I399508265eded036bc3133db890b97a0870640d5
2022-12-16Add new endpoints for ACM state handlingliamfallon4-0/+128
This commit introduces the Swagger changes required for the updates to the State Handling in ACM. The Update handling on the endpoints has changed and will be completed in future reviews. In the meantime, some stubs and unit tests have been temporarily disabled. Issue-ID: POLICY-4487 Change-Id: I40b8cbb188d809b43c3e385aea35f88e9ea7da2b Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-12-16Refactor instanceId as primary key in JpaAutomationCompositionFrancescoFioraEst7-179/+110
Issue-ID: POLICY-4480 Change-Id: I4d3bd44c23378b428beb901d78ea48dcdbbe7f44 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-16Fix copy contructor in DocToscaServiceTemplate in ACMFrancescoFioraEst6-25/+93
Issue-ID: POLICY-4486 Change-Id: Ic13daae3c9c8ebdf72a30dcdac59b3a944f77893 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-13Replace ToscaConceptIdentifier with UUID in Participant Messages ACMFrancescoFioraEst4-7/+18
Replace in all messages the reference to Automation Composition ToscaConceptIdentifier(name, version) with instanceId(UUID). Issue-ID: POLICY-4479 Change-Id: I7bc9a7494103b9c1752a1e2c6f6d5a527196913d Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-13Merge "Link the existing InstantiationController with the generated code"Ramesh Murugan Iyer2-4/+34
2022-12-12Merge "Add support for instance properties"Pamela Dragosh3-4/+77
2022-12-12Link the existing InstantiationController with the generated codeFrancescoFioraEst2-4/+34
Issue-ID: POLICY-4467 Change-Id: Ibe9206ee4189e73357271211d83b0603edfb86da Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-08Add support for instance propertiesFrancescoFioraEst3-4/+77
Issue-ID: POLICY-4483 Change-Id: I6ca953e05e74d68262507b393fb6415573fa3eab Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-08Add instanceId support in AutomationCompositionProviderFrancescoFioraEst5-45/+71
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-05Merge "Refactor POST and PUT Automation Composition"Liam Fallon3-59/+20
2022-12-01Refactor POST and PUT Automation CompositionFrancescoFioraEst3-59/+20
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 ACMFrancescoFioraEst9-94/+85
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-28Merge "Link the AutomationComposition with AutomationCompositionDefinition"Liam Fallon9-153/+124
2022-11-24Link the AutomationComposition with AutomationCompositionDefinitionFrancescoFioraEst9-153/+124
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-23Add model to save ToscaServiceTemplate as Json in ACMFrancescoFioraEst22-0/+2828
Issue-ID: POLICY-4462 Change-Id: I81a5a8922b0e980143a8da4b6d0572767620fb36 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-18Link the existing CommissioningController with the generated codeFrancescoFioraEst6-256/+362
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 Iyer3-160/+2
2022-11-14Remove redundant endpoints in ACMFrancescoFioraEst3-160/+2
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-11Add AutomationCompositionDefinition modelFrancescoFioraEst4-1/+175
Add AutomationCompositionDefinition model for Commissioned Automation Composition endpoints. Issue-ID: POLICY-4452 Change-Id: I73fc5b06cb75ed578a40ea618f1f5a0eec616b08 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-01Remove old implementation of statistics in ACM modelsFrancescoFioraEst15-1030/+5
The old implementation of statistics in ACM can be removed due the Prometheus metrics support. Issue-ID: POLICY-4422 Change-Id: Ia2681b9a3ca59d532cd5c0d1ce4edd3e8f9f98e3 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-08-26Add new topic for publishing events in Acm Element Implrameshiyer272-3/+5
Listening and publishing on different topics for better readability of logs and segregation of events between PDP and AC element. Issue-ID: POLICY-4332 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I7c44ba1498c73a8bd395ad54eeb09950c584156e
2022-08-09Create Message Handler and Activator for the test microserviceFrancescoFioraEst3-6/+80
Issue-ID: POLICY-4319 Change-Id: If096467ad717fdeaf70e6a9079c531a201e6cec7 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-07-29Create concepts models for the test microserviceFrancescoFioraEst4-0/+145
Issue-ID: POLICY-4315 Change-Id: I55b5b4e909aa58b7c39fa96e88eca16bad73761d Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-06-24Fix participant update list event for multiple AC elementsrameshiyer271-3/+3
If multiple AC elements are mapped to a single participant, the update list event from runtime includes only a single element by overriding the previous entries from the update list. Removed the immutable list that causes the issue. Issue-ID: POLICY-4241 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I59dcd3706394ab937d4e517bc69285c50d9ac260
2022-05-25Added Edit Instance Properties Functionalitybrunomilitzer1-2/+51
Issue-ID: POLICY-4094 Change-Id: Id52dba3c0912486fa551697be170c05542a0ee22 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-02-18Rename TOSCA Control Loop to ACMliamfallon72-904/+1085
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>
2022-02-16Add Hibernate support in runtime-controlloopFrancescoFioraEst1-1/+0
Issue-ID: POLICY-3841 Change-Id: Ie958a4a4ab35c8bc4d6829128e39a2458d67a7a5 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-12-02Add support transactionFrancescoFioraEst5-11/+11
Add support transaction in CommissioningProvider and ControlLoopInstantiationProvider Issue-ID: POLICY-3802 Change-Id: I8ddba4814547e335b7b27342189a3fc5d9dc4582 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-11-25Add support transaction in CL and ServiceTemplate ProvidersFrancescoFioraEst2-123/+166
Add support transaction in ControlLoopProvider and ServiceTemplateProvider Issue-ID: POLICY-3798 Change-Id: I0ab79f28231e329e06c16e01427775077b3ac994 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-11-19Add support transaction in ParticipantProviderFrancescoFioraEst10-96/+267
Issue-ID: POLICY-3800 Change-Id: I938c2731a30013b5f8e11a23a86d117300c95bff Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-11-10Add support transaction in Statistics ProvidersFrancescoFioraEst6-79/+219
Add support transaction in ClElementStatisticsProvider and ParticipantStatisticsProvider Issue-ID: POLICY-3801 Change-Id: Iaf9d55a268627f9d548afdf108476441b19e1413 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-11-02Remove code smells in controlloop runtimeSirisha_Manchikanti2-3/+1
Remove code-smells reported by sonar cloud https://sonarcloud.io/project/issues?id=onap_policy-clamp&resolved=false Issue-ID: POLICY-3540 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I8ed1c4599e7eeebbc3a31e74cea4148eb0435847
2021-10-22Add support startPhase in all state transitionsFrancescoFioraEst1-0/+24
Issue-ID: POLICY-3785 Change-Id: I1b5821cc42cdbb63e3172596431dc561ced09c55 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-10-19Refactor GlobalControllerExceptionHandlerFrancescoFioraEst1-0/+43
Issue-ID: POLICY-3530 Change-Id: Ib33daf8491c1bf96460b424e8b0da228d65e571a Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-10-05Handle ParticipantRegisterFrancescoFioraEst1-0/+226
Send ParticipantUpdate to participant after registration if commissioning has already been created Issue-ID: POLICY-3689 Change-Id: Iccc4fc1c0b95e1f270b6810c5b5f130726f24650 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-23Merge "Add participantType to participant class"Liam Fallon4-3/+24
2021-09-22Fix startPhase in runtime and participantsFrancescoFioraEst2-0/+15
Issue-ID: POLICY-3677 Change-Id: I78635928086cc39fc3539925052e06b657b249c2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-22Add participantType to participant classSirisha_Manchikanti4-3/+24
Add participantType to participant class, cascade common and instance properties from runtime to participants Issue-ID: POLICY-3576 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ic9205aafe269ccc6dae0b3463fc6df5c47129e5d
2021-09-14Add Priming flag per controlloopSirisha_Manchikanti4-0/+87
This commit adds a Priming flag per controlloop which indicates whether a controlLoop is primed or deprimed. There is a rest end-point added to depict in GUI Issue-ID: POLICY-3577 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ie81a41505ab1eafda9515733e0b895421803ea8a
2021-09-10Merge "Verify participant Simulator and messages"Liam Fallon2-3/+84
2021-09-09Fixed Delete Instance Properties Endpointbrunomilitzer3-8/+32
Fixed issue regarding that control loops was not getting instantiated Fixed issue regarding state change that was not receiving paramaters Added appropriate Camel Endpoints Unit tests will be applied on POLICY-3568 and POLICY-3567 Issue-ID: POLICY-3558 Change-Id: I11a1093bdb16651fe1c0ad8e267ded5390267a30 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-09-09Verify participant Simulator and messagesFrancescoFioraEst2-3/+84
Add missing ControlLoopElementHandler in participant Simulator and fix some message issues. Issue-ID: POLICY-3628 Change-Id: I9f058c19aa18e070bac6ccaf98fdf7600d66d71e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-08Merge "Fix parsing of type heirarchy for nodetypes"Liam Fallon2-1/+10
2021-09-07Fix parsing of type heirarchy for nodetypesSirisha_Manchikanti2-1/+10
Fixed an issue where a ControlLoopElement with type defined in node-types is not parsed. This commit also includes changes to save the state of a controlLoopElement coming from ControlLoopAck message into runtime database. Issue-ID: POLICY-3575 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I1249cf2cabd4a499d80b401f94f7f42f08b350e3
2021-09-03Merge "Fix sonars in clamp #2"Pamela Dragosh1-1/+1