aboutsummaryrefslogtreecommitdiffstats
path: root/participant/participant-impl/participant-impl-policy/src/test
AgeCommit message (Collapse)AuthorFilesLines
2023-01-30Remove ParticipantType in all yaml filesFrancescoFioraEst2-18/+0
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 UUIDFrancescoFioraEst2-5/+4
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-27/+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.gill2-1/+10
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 ACMFrancescoFioraEst1-41/+22
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 participantsFrancescoFioraEst1-4/+3
Issue-ID: POLICY-4433 Change-Id: I625c9ee26bb2451e0dcfbb4bbf7288dcc0effb50 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-10-28Remove old implementation of statistics in ACM participantsFrancescoFioraEst1-3/+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 clamprameshiyer274-8/+352
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-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-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 ACMliamfallon46-2838/+676
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-18Added Camel Unit Testsbrunomilitzer2-3/+3
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-11Add health check, metrics and prometheus endpoints for CL participantsrameshiyer273-1/+211
Issue-ID: POLICY-3747 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I9cb1ffcc2f9996c5b0e9f67fec9c706e48cfa800
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-09-15Add policy deployment/undeployment to policy-participantwaynedunican1-0/+20
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-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_Manchikanti1-2/+18
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_Manchikanti1-1/+30
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_Manchikanti2-16/+2
Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I5784debf2e17fd1018b3feb7c9e2ae08d5f93d23
2021-08-18Updated ControlLoop component messagesSirisha_Manchikanti5-736/+265
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-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-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
2021-07-21Send ParticipantStatus heartbeat messages to controlloop runtimewaynedunican2-1/+19
Issue-ID: POLICY-3418 Change-Id: I957b0ff42ff617fb20ba4134770b43007415a49b Signed-off-by: waynedunican <wayne.dunican@est.tech>
2021-07-15Handle participant register,deregister,update messagesSirisha_Manchikanti4-3/+192
Send ParticipantRegister, ParticipantDeregister and ParticipantUpdateAck from participant to controlloop runtime Receive ParticipantRegisterAck, ParticipantDeregisterAck and ParticipantUpdate messages from controlloop runtime Issue-ID: POLICY-3414 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ifb3c4fa64bdd2d50ec2302b35f342847f4994c5d
2021-06-28Convert Intermediary Participant to Spring and refactor ParticipantsFrancescoFioraEst1-18/+10
Issue-ID: POLICY-3370 Change-Id: I1541fc47b35c91f9ec86ab768bc3cec2cd78647c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-06-23Move parameters from config Json file to application.yamlFrancescoFioraEst12-467/+111
Issue-ID: POLICY-3343 Change-Id: Id78c00a5a241337f684a70feeee543f3a88fc01c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-06-20Merge "Clean up CLAMP Sonar and checkstyle issues"Liam Fallon1-5/+12
2021-06-17Clean up CLAMP Sonar and checkstyle issuesliamfallon1-5/+12
This commit cleans up sonar and checkstyle issues identified in the CLAMP repository. Issue-ID: POLICY-3206 Change-Id: I16b61bbe771cc17de15183a24b2a5e82a8d35872 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-17Prepare controlloop docker imagesSirisha_Manchikanti1-21/+1
Generate runtime, policy-participant and dcae-participant docker images. Issue-ID: POLICY-3320 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I310fd2a098aa48a6a50a9bf6bd2bcb55328f4973
2021-06-11Make policy participant interact with Policy APIERIMROB1-8/+8
Change the policy participant from interacting directly with the database, into participant interacting with policy API instead Issue-ID: POLICY-3330 Change-Id: I02420b1e43f1b18e337b00ebd300f03bb9b7412d Signed-off-by: ERIMROB <robertas.rimkus@est.tech>
2021-06-08Convert Policy Participant to SpringBoot ApplicationFrancescoFioraEst5-358/+60
Issue-ID: POLICY-3245 Change-Id: Iadacaba3b2a30c67adbe77b8b17debce2f2abb39 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-05-26Transfer tosca-poc onto masterliamfallon48-0/+4355
This is the third if three commits, this commit makes the content of the master branch the same as the tosca-poc branch. This commit adds the "src" files for TOSCA control loops to the modules in master. Difference between this commit and the current master: ------------------------------------------------------ diff -qr clamp clamp-master |diff_filter.sh Only in clamp/common: src Only in clamp/models: src Files clamp/participant/participant-impl/participant-impl-dcae/pom.xml and clamp-master/participant/participant-impl/participant-impl-dcae/pom.xml differ Only in clamp/participant/participant-impl/participant-impl-dcae: src Only in clamp/participant/participant-impl/participant-impl-policy: src Only in clamp/participant/participant-impl/participant-impl-simulator: src Files clamp/participant/participant-impl/pom.xml and clamp-master/participant/participant-impl/pom.xml differ Only in clamp/participant/participant-intermediary: src Files clamp/participant/pom.xml and clamp-master/participant/pom.xml differ Files clamp/pom.xml and clamp-master/pom.xml differ Files clamp/runtime/pom.xml and clamp-master/runtime/pom.xml differ Only in clamp: runtime-controlloop Difference between this commit and the current tosca-poc branch: ---------------------------------------------------------------- diff -qr clamp clamp-tp |diff_filter.sh Files clamp/INFO.yaml and clamp-tp/INFO.yaml differ Only in clamp/releases: 6.0.1-container.yaml Only in clamp/releases: 6.0.1.yaml Only in clamp/releases: 6.0.2-container.yaml Only in clamp/releases: 6.0.2.yaml Only in clamp/releases: 6.1.0-container.yaml Only in clamp/releases: 6.1.0.yaml Only in clamp/releases: 6.1.1-container.yaml Only in clamp/releases: 6.1.1.yaml Files clamp/runtime/src/main/resources/META-INF/resources/swagger.html and clamp-tp/runtime/src/main/resources/META-INF/resources/swagger.html differ Issue-ID: POLICY-3215 Change-Id: Ica1aa3fe5d6110df2396ea856703102e800fa770 Signed-off-by: liamfallon <liam.fallon@est.tech>