aboutsummaryrefslogtreecommitdiffstats
path: root/participant/participant-impl/participant-impl-policy
AgeCommit message (Collapse)AuthorFilesLines
2023-02-17Fix UNDEPLOY transition in policyParticipant in ACMFrancescoFioraEst3-87/+139
Fix UNDEPLOY transition in policyParticipant when there are more then one service template defined Issue-ID: POLICY-4561 Change-Id: Ib05b995a215d9f5f62c69f7058db128474f48dab Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-15Merge "Refactor yaml files in ACM"Liam Fallon2-6/+0
2023-02-14Refactor yaml files in ACMFrancescoFioraEst2-6/+0
Refactor Supported ACM element types and align element type version in all examples Issue-ID: POLICY-4512 Change-Id: Ic810fc1a98237d1b6fb816dccb1fcbe61a675c1e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-13Deployment and undeployment on Participant IntermediaryFrancescoFioraEst2-79/+35
Handle AC Element Instance Deployment and undeployment on Participant Intermediary. Issue-ID: POLICY-4507 Change-Id: I6a6976a8893450467ee609a1a476dbfa473a0e82 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-02Refactor ParticipantUpdate to ParticipantPrimesaul.gill2-22/+22
Refactored ParticipantUpdateAck to ParticipantPrimeAck Refactored ParticipantUpdate to ParticipantPrime Refactored all associated tests and code Issue-ID: POLICY-4548 Change-Id: I2265777add4e088173ec465603e26143e3f40070 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-02-01Upgrade and clean up dependenciesliamfallon2-22/+24
- Upgrade Hibernate - Upgrade Mockito - Upgrade Mockserver - Remove Powermock (no longer supported) and replace with spring-test ReflectionTestUtils - Upgrade Spring Framework - Add spring-security to allow authentication on unit tests using MockMVC Minor clean-up - Replace deprecated authorization configuraiton on spring boot applications with SecurityFilterChain bean - Change @LocalPort include on tests to use test include rather than runtime include - Remove unused imports - Remove unused constants and variables - Add deprecation annotations where required Issue-ID: POLICY-4482 Change-Id: I7356d60696330e868d4f67195ba55b80987f85b9 Signed-off-by: liamfallon <liam.fallon@est.tech>
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-15Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon1-1/+1
policy/clamp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4484 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: Ia4d1977e35c4783bd94e034c4195b1ef1ae8b930
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-21Set snapshot and/or references of policy/clamp for new releaseliamfallon1-1/+1
policy/clamp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4408 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: Ic5dba007602ae27989cc20ef59f512b1e06fa892
2022-10-21Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon1-1/+1
policy/clamp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4408 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I230f8695c7a87f4bbffdcc3102c1922e6354f804
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-27Merge "Improve code coverage on policy-participant module in clamp"Liam Fallon5-10/+354
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-23Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon1-1/+1
policy/clamp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4343 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I37502e4d1d64661ae82b2a9a92330691ec69e634
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-05-03Set snapshot and/or references of policy/clamp for new releaseliamfallon1-1/+1
policy/clamp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4073 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: Icf5d09aafb4ff088dd9e6c3268859753c0a3c06a Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-04-28Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon1-1/+1
policy/clamp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4089 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: Ib28160e231fbfe1124cd49d29ca9e3d538a1cbfd
2022-04-12Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon1-1/+1
policy/clamp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4089 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: Ifd4eb766f4070811f8100eb27f58ef2618b1dd22
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-03-11Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon1-1/+1
policy/clamp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-3982 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I45033a8f834d30ce188f122519c56af92ca26847
2022-02-18Rename TOSCA Control Loop to ACMliamfallon58-3094/+940
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-29Update snapshot of policy/clamp to 6.2.1-SNAPSHOTliamfallon1-1/+1
*** This commit is generated by a PF release script *** policy/clamp is update from 6.2.0-SNAPSHOT to 6.2.1-SNAPSHOT Issue-ID: POLICY-3827 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I17a89cf934c6319392d2a9304f10763d29cca8bd
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-10-14Bump policy/clamp to Jakarta 6.2.0-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3696 Change-Id: I4dfc0532e30106478c89182f7c2cd573c168a634 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-14Bump policy/clamp to 6.1.4-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3696 Change-Id: Icef72d76b53fa09c0f88d71431ae5a13d441c787 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-15Bump policy-clamp snapshot version to 6.1.3-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3587 Change-Id: Ie3e6aba3a2dd64f36fcf5cbd860fe9b63ee4e8aa Signed-off-by: liamfallon <liam.fallon@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>