aboutsummaryrefslogtreecommitdiffstats
path: root/participant/participant-intermediary/src
AgeCommit message (Collapse)AuthorFilesLines
2023-01-31Refactor ACM Update message to ACM Deploy message in ACMFrancescoFioraEst7-46/+46
Refactor ACM Update message to ACM Deploy message in ACM and add AcElementDeploy in Deploy message. AutomationCompositionElement will be removed from the message after POLICY-4506 and POLICY-4507. Issue-ID: POLICY-4543 Change-Id: I8444e15b3b4cb1209ffd083fb965e0707fbd9625 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-30Refactor Prime and Deprime messages in ACMFrancescoFioraEst2-4/+17
Issue-ID: POLICY-4502 Change-Id: Ib0ecc513285bf971a0c25cec528dcdeec5ad63a2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-26Remove participantType and referencessaul.gill6-40/+11
Issue-ID: POLICY-4538 Change-Id: Idf3f0308254a318b3e72aa8a234fd7c78f6ffd82 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-01-23Refactor participantId as UUIDFrancescoFioraEst4-11/+11
As part of endpoint refactoring, refactor participantId as UUID in ACM. Issue-ID: POLICY-4521 Change-Id: I8ac652d9b2fadf9ce3220febb9c2c3ac0d3786cc Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-23Remove reference type of participantId in Unit Tests in ACMFrancescoFioraEst4-79/+103
As part of the participantId refactoring, reduce the impact of the changes by removing the reference type of participantId in unit tests. Issue-ID: POLICY-4524 Change-Id: I08837a0739f229a0a8c439c8b12578823277aa32 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-19Add supported ac elements to participantssaul.gill4-5/+21
Added new supported elements table Added supported element names and versions to participant application.yaml files Issue-ID: POLICY-4512 Change-Id: I97d7f571f2906846514ac0804b4827f0601177d7 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-01-06Refactor register deregister a Participant and Supervise ParticipantsFrancescoFioraEst1-26/+3
Refactor register deregister a Participant and Supervise Participants using ON_LINE/OFF_LINE as Participant Status. Issue-ID: POLICY-4497 Change-Id: If9c5b92131c99132c18340e56334fb9453745526 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-20Add compositionId into Messages between ACM and ParticipantsFrancescoFioraEst8-358/+85
Issue-ID: POLICY-4489 Change-Id: I1fb8c04eacee040d5c944c522ca59a2a9a50376b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-13Replace ToscaConceptIdentifier with UUID in Participant Messages ACMFrancescoFioraEst9-59/+59
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-08Add support for instance propertiesFrancescoFioraEst2-20/+0
Issue-ID: POLICY-4483 Change-Id: I6ca953e05e74d68262507b393fb6415573fa3eab Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-24Link the AutomationComposition with AutomationCompositionDefinitionFrancescoFioraEst4-29/+24
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-03Add Prometheus metric messages for ACM participantsFrancescoFioraEst2-18/+33
Issue-ID: POLICY-4433 Change-Id: I625c9ee26bb2451e0dcfbb4bbf7288dcc0effb50 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-10-28Remove old implementation of statistics in ACM participantsFrancescoFioraEst9-182/+5
The old implementation of statistics in ACM-participants can be removed due the Prometheus metrics support. Issue-ID: POLICY-4420 Change-Id: I0785b269614aba51f94e71a3fe931541c1918b0c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-03-22Clean up unit testsadheli.tavares7-52/+44
- use the unified test reference folder - fix some sonar lint issues Issue-ID: POLICY-3945 Change-Id: I33e30332d911f02c32937316bac6d2d331ac6346 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2022-02-18Rename TOSCA Control Loop to ACMliamfallon34-1369/+1398
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>
2021-11-22Code coverage clamplapentafd2-6/+46
Issue-ID: POLICY-3452 Change-Id: I7ee191e590689e42822614d79a398012c454be42 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-11-11Code Coverage Clamp Intermediarylapentafd4-18/+282
Issue-ID: POLICY-3452 Change-Id: I388a1868fcaa95549f0d48ffb6713ab2526e2ed5 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-11-02Remove code smells in controlloop runtimeSirisha_Manchikanti3-3/+16
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-29Merge "Add support startPhase in all state transitions"Ajith Sreekumar2-27/+61
2021-10-26Code Coverage in clamp participant intermediarylapentafd4-37/+399
Issue-ID: POLICY-3452 Change-Id: If4fe15d4e74a7f04b77fb1d6dc70f1b7cd32baa6 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-10-22Add support startPhase in all state transitionsFrancescoFioraEst2-27/+61
Issue-ID: POLICY-3785 Change-Id: I1b5821cc42cdbb63e3172596431dc561ced09c55 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-10-19Policy Clamp Code Coveragelapentafd2-1/+135
Participant Handler Test Cases Issue-ID: POLICY-3452 Change-Id: I8325206fdfbfbc199f593f7e058e28fa0ef2a649 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-09-30Merge "Fix continuous sending CONTROL_LOOP_STATE_CHANGE message"Liam Fallon1-2/+2
2021-09-29Fix continuous sending CONTROL_LOOP_STATE_CHANGE messageFrancescoFioraEst1-2/+2
Issue-ID: POLICY-3687 Change-Id: I41f8cd80d0c3441533891e7edc21e1440028b852 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-29Update Participant Status after CommissioningFrancescoFioraEst1-7/+13
Issue-ID: POLICY-3686 Change-Id: Ia9d8c345412c9d4d5017a6931565d57b16ec0c03 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-23Merge "Add participantType to participant class"Liam Fallon4-6/+54
2021-09-22Fix startPhase in runtime and participantsFrancescoFioraEst1-16/+49
Issue-ID: POLICY-3677 Change-Id: I78635928086cc39fc3539925052e06b657b249c2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-09-22Add participantType to participant classSirisha_Manchikanti4-6/+54
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-21Merge "Code Coverage in clamp intermediary"Liam Fallon5-2/+287
2021-09-20Code Coverage in clamp intermediarylapentafd5-2/+287
Issue-ID: POLICY-3452 Change-Id: Ieb0d1153f5f2323bfc73cae7221dfba73b59b725 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-09-14Add Priming flag per controlloopSirisha_Manchikanti1-8/+11
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-09Verify participant Simulator and messagesFrancescoFioraEst5-99/+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 Fallon5-11/+34
2021-09-07Fix parsing of type heirarchy for nodetypesSirisha_Manchikanti5-11/+34
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 eclipse warnings in clamp"Pamela Dragosh1-4/+4
2021-09-03Merge "Fix sonars in clamp #2"Pamela Dragosh4-6/+10
2021-09-03Merge "Fix sonars in clamp"Ajith Sreekumar4-13/+13
2021-09-02Fix eclipse warnings in clampJim Hahn1-4/+4
Fixed some of these warnings, just in policy-clamp-runtime: - equals() with wrong argument type in junit - remove unneeded "SuppressWarning" - unused fields - deprecated classes/methods Fixed some sonars, too: - use isEqualByComparingTo() - method complexity: used eclipse to auto-extract methods Fixed checkstyle issues: - indentation level Did not address all deprecation issues (e.g., SSLSocketFactory). Issue-ID: POLICY-3200 Change-Id: Ibd92e5326854002dc0ca2d7b3b777699cafb5e98 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-09-02Merge "Verify alignment with Definition of TOSCA Control Loop Types"Jim Hahn1-4/+3
2021-09-02Fix sonars in clamp #2Jim Hahn4-6/+10
Fixed sonars: Fixed eclipse warnings: - unused imports - unused fields - add serialVersionUID Issue-ID: POLICY-3200 Change-Id: Ieaab6e85f65fb5eed6db337060961ba831628905 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-09-01Fix sonars in clampJim Hahn4-13/+13
Fixed some sonars: - no assertion in test case - unused fields - unthrown exception - define a constant - use boolean instead of Boolean - remove unused parameter Fixed some eclipse warnings: - unused imports - unused methods - suppress warnings - add type parameter Renamed directory from "org.onap.policy..." to "org/onap/policy/...". Issue-ID: POLICY-3200 Change-Id: I76f7cd4a508ac421c37e457fdca6894e6100c802 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-09-01Send ToscaServiceTemplateFragment with policies, policy-typesSirisha_Manchikanti3-17/+1
ToscaServiceTemplateFragment contains policies, policy-types and respective datatypes to be sent to Policy participant, and there on to Policy Framework to create new policies or policy-types that doesnot exist in the database. https://wiki.onap.org/display/DW/The+CLAMP+Policy+Framework+Participant Issue-ID: POLICY-3607 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I2b98d7dc6946b0c27763f1a150d1bf4adca90a2f
2021-09-01Verify alignment with Definition of TOSCA Control Loop TypesFrancescoFioraEst1-4/+3
Issue-ID: POLICY-3612 Change-Id: I818f80cdc1db98752a7791ef4aba7377add66516 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-31Fix merged CLAMP build failuresaul.gill1-1/+1
Issue-ID: POLICY-3588 Change-Id: I66d38e023907e4b9e37a710fa42f8995023dcd3b Signed-off-by: saul.gill <saul.gill@est.tech>
2021-08-31Merge "Fixed participant registration ACK"Pamela Dragosh1-0/+8
2021-08-31Fix ControlLoopAck and remove circular dependencyFrancescoFioraEst3-159/+94
Issue-ID: CLAMP-1028 Change-Id: I23b6806bf9a22449c7709b619a20f3412e3e3742 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-30Fixed participant registration ACKsaul.gill1-0/+8
Particiapnts now send status message after registration This adds participants to the DB in Runtime Issue-ID: POLICY-3588 Change-Id: Idb62b429a6e2e0047d6946d9718c78560a7cd659 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-08-26Fix issue in event handling in participantsFrancescoFioraEst14-100/+203
Fix issue in event handling in participants and refactor Participant Publisher and Listener Issue-ID: POLICY-3544 Change-Id: Ic92ffa79d303adfb1c3319fbfefb1faef911a9d4 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-26Merge "Updated handling of ack messages"Liam Fallon5-48/+81
2021-08-25Updated handling of ack messagesSirisha_Manchikanti5-48/+81
Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I5784debf2e17fd1018b3feb7c9e2ae08d5f93d23