aboutsummaryrefslogtreecommitdiffstats
path: root/participant/participant-impl/participant-impl-policy/src
AgeCommit message (Collapse)AuthorFilesLines
2023-01-30Remove ParticipantType in all yaml filesFrancescoFioraEst3-21/+1
Issue-ID: POLICY-4538 Change-Id: I9f6d8830f64ef1178d3e20c7d00374156a84b59e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-26Remove participantType and referencessaul.gill3-25/+2
Issue-ID: POLICY-4538 Change-Id: Idf3f0308254a318b3e72aa8a234fd7c78f6ffd82 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-01-23Refactor participantId as UUIDFrancescoFioraEst3-8/+5
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 ACMFrancescoFioraEst5-105/+32
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-7/+23
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>
2022-12-20Add compositionId into Messages between ACM and ParticipantsFrancescoFioraEst2-22/+1
Issue-ID: POLICY-4489 Change-Id: I1fb8c04eacee040d5c944c522ca59a2a9a50376b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-13Replace ToscaConceptIdentifier with UUID in Participant Messages ACMFrancescoFioraEst2-62/+36
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-06Replace SpringFox with SpringDoc in CLAMPliamfallon1-7/+3
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-11-03Add Prometheus metric messages for ACM participantsFrancescoFioraEst3-4/+56
Issue-ID: POLICY-4433 Change-Id: I625c9ee26bb2451e0dcfbb4bbf7288dcc0effb50 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-10-28Remove old implementation of statistics in ACM participantsFrancescoFioraEst2-23/+0
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-10-11Use spring-boot-starter-actuator managed versionliamfallon1-1/+1
Issue-ID: POLICY-4393 Change-Id: I31399942e603b2f29921c38c7dc1b9ab18be0d09 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-09-27Improve code coverage on policy-participant module in clamprameshiyer275-10/+354
Added junits for handler and policy client classes which improves the overall module covergae from 38.8% to 92% Issue-ID: POLICY-4365 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I0a860cff870b77a29a66f04645c64fdd8cf66313
2022-09-01Fix Clamp build fails in policy participant moduleFrancescoFioraEst1-6/+10
Fix Clamp build fails in policy participant module while processing policies without topology template. Issue-ID: POLICY-4339 Change-Id: I94f2f0e0acede233f33668e2b083c58e15181290 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-06-30Fix CSIt failure in CLAMP test caserameshiyer271-19/+31
Policy participant always updates the state of AC element to PASSIVE, irrespective of success/failure scenarios in policy creation and deployment. This causes inconsistency in AC overall state and CSIT validation fails. Verifying the response code from api and pap before updating the AC element state from policy participant. Issue-ID: POLICY-4270 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I0ecf770d9803e520401ba49cd47c22ac6e4f9c17
2022-06-02Fix type version in all tosca_service_template yaml filesFrancescoFioraEst1-7/+7
Issue-ID: POLICY-4225 Change-Id: Ib069dec0acfdd85e45659deffb45398f7eae5e54 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-04-11Rename controlloop to ACMSirisha_Manchikanti1-1/+1
Issue-ID: POLICY-3941 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I3a9d66b5f6be55e722bb15326d0af83a1b698a02
2022-03-22Clean up unit testsadheli.tavares10-400/+70
- 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 ACMliamfallon57-3093/+939
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-14Fix Policy Participant to create and deploy the policies in Passive stateLathish1-12/+7
Issue-ID: POLICY-3874 Change-Id: If8a8a85dcb61389114a14c207c29ca55ba73161f Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2021-11-18Added Camel Unit Testsbrunomilitzer3-5/+5
Added Camel Unit Tests to test creation of instance properties Updated credentials for Rest End point Issue-ID: POLICY-3565 Change-Id: I0899d3052588822f02a8a003eb4bc406bc887713 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-11-16Code coverage in clamp participant-impllapentafd1-0/+102
Issue-ID: POLICY-3452 Change-Id: Iad815f2c0e239356f5e21e2fedd8e7b9e8f523d2 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-11-15Merge "Add health check, metrics and prometheus endpoints for CL participants"Liam Fallon5-3/+270
2021-11-11Add health check, metrics and prometheus endpoints for CL participantsrameshiyer275-3/+270
Issue-ID: POLICY-3747 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I9cb1ffcc2f9996c5b0e9f67fec9c706e48cfa800
2021-11-10Fixed https issue in policy-participantsaul.gill1-2/+2
Changes config files to use "useHttps" instead of "https" Issue-ID: POLICY-3817 Change-Id: Ic945150eff5334cbba77b4da77d72dc1283d4e67 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-11-02Remove code smells in controlloop runtimeSirisha_Manchikanti1-2/+2
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 "Refactor policy-participant policy deployment and undeployment"Liam Fallon2-28/+29
2021-10-27Move code to common, avoid duplicationSirisha_Manchikanti1-98/+7
This commit moves duplicate code from runtime and participant to common Issue-ID: POLICY-3542 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ia7cea1d2c88031c72af77338e242f8981e536c21
2021-10-27Refactor policy-participant policy deployment and undeploymentwaynedunican2-28/+29
Change the policy-participant to use DeploymentGroups to generate JSON body rather than manual generation Issue-ID: POLICY-3793 Change-Id: I3a049e2be8a677f5a5aeff7ed14e44d7252a2fb7 Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2021-09-15Add policy deployment/undeployment to policy-participantwaynedunican5-11/+179
Add policy deployment and undeployment to the policy-participant Allow user to specify pdpGroup and pdpdType as part of the deployment or undeployment of policies Change-Id: I8b37ee96305d35db0784cde3e4564150feaf477d Issue-ID: POLICY-3584 Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2021-09-14Add Priming flag per controlloopSirisha_Manchikanti1-7/+10
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 messagesFrancescoFioraEst1-69/+39
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-07Fix parsing of type heirarchy for nodetypesSirisha_Manchikanti2-10/+33
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"Ajith Sreekumar1-62/+12
2021-09-02Merge "Verify alignment with Definition of TOSCA Control Loop Types"Jim Hahn3-27/+49
2021-09-01Fix sonars in clampJim Hahn1-62/+12
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_Manchikanti2-2/+31
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 TypesFrancescoFioraEst3-27/+49
Issue-ID: POLICY-3612 Change-Id: I818f80cdc1db98752a7791ef4aba7377add66516 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-26Fix issue in event handling in participantsFrancescoFioraEst1-6/+8
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-25Updated handling of ack messagesSirisha_Manchikanti3-20/+10
Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I5784debf2e17fd1018b3feb7c9e2ae08d5f93d23
2021-08-20sonar fix for clampTaka Cho1-3/+5
- bug: added InterruptedException for sleep - vulns: two false positve - removed some unused import - changed to use var for local variable Issue-ID: POLICY-3452 Change-Id: I8b4be1378a2aad8f68562b63f70853832673ce97 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-18Updated ControlLoop component messagesSirisha_Manchikanti6-753/+286
Updated controlloop messages (ParticipantUpdate, ControlLoopUpdate, ParticipantStatus) according to the following Wiki and added implementation for the corresponding updates in runtime-controlloop and participant components https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I80d96a7553a89ca47de2aa35e09df5a5c792acfa
2021-08-11Fix serialization of messages in Control Loop and ParticipantsFrancescoFioraEst2-15/+12
Issue-ID: POLICY-3536 Change-Id: I72207ba8b3894238412bf19c32b799b661a23c21 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-04Update controlloop messagesSirisha_Manchikanti2-28/+62
Updated controlloop messages according to https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ied32ea5bb63a6b69286d03f1a7b2b86e3acad7a7
2021-07-30Merge "Updates to participant messages"Jim Hahn2-26/+3
2021-07-29Updates to participant messagesSirisha_Manchikanti2-26/+3
Updated participant messages according to https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3416 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Idef19bee05116f11690c7aca0493e731dd128e06
2021-07-27Replace JSON properties files to Yaml from docker imagesFrancescoFioraEst1-9/+15
POLICY-3469: Replace JSON properties files to Yaml from docker images Change-Id: I23fbd9d84640286725440453d464c397e3144662 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-07-23Rename ParticipantControlLoopStateChange messageSirisha_Manchikanti2-13/+13
This commit has no logical changes considered, except renaming ParticipantControlLoopStateChange message to ControlLoopStateChange message. According to following wiki ParticipantControlLoopStateChange message is renamed to ControlLoopStateChange message. https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I7eaf89ca3fe5ab685b222b604abfd99627776b18
2021-07-23Remove ParticipantStateChange messageSirisha_Manchikanti1-21/+0
ParticipantStateChange message is no longer needed, as Runtime is not allowed to change the state of the participant. Following Wiki doesnot list ParticipantStateChange message https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3510 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I06382efa52b1131394518c85d7bc6ce50dd2bbb5
2021-07-23Merge "Rename ParticipantControlLoopUpdate message"Liam Fallon2-25/+25
2021-07-21Rename ParticipantControlLoopUpdate messageSirisha_Manchikanti2-25/+25
This commit has no logical changes considered, except renaming ParticipantControlLoopUpdate message to ControlLoopUpdate message. According to following wiki ParticipantControlLoopUpdate message is renamed to ControlLoopUpdate message. https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3416 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I73f2b6797393e3352f98db2234ab63b833d7f212