summaryrefslogtreecommitdiffstats
path: root/participant/participant-impl
AgeCommit message (Collapse)AuthorFilesLines
2021-09-09Verify participant Simulator and messagesFrancescoFioraEst7-137/+210
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-08Remove DCAE participant and its referencesSirisha_Manchikanti29-6546/+3
DCAE interactions are handled by k8s-participant from Istanbul due to the helm migration of DCAE services. Cloudify manager is no longer used in DCAE. Issue-ID: POLICY-3630 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ifc4cb2491d10cbb57c2e886480f4df7a691f2166
2021-09-08Merge "Fix parsing of type heirarchy for nodetypes"Liam Fallon13-50/+143
2021-09-07Fix parsing of type heirarchy for nodetypesSirisha_Manchikanti13-50/+143
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-06Fix bugs on k8s-particpantrameshiyer274-4/+11
Configure repository without port Add CL element state change Fix log directory creation inside container Issue-ID: POLICY-3629 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I4564025a94053342b21e6600e0ee7c563bd23243
2021-09-03Merge "Fix sonars in clamp #2"Pamela Dragosh4-7/+5
2021-09-03Merge "Fix sonars in clamp"Ajith Sreekumar10-62/+21
2021-09-02Merge "Verify alignment with Definition of TOSCA Control Loop Types"Jim Hahn10-237/+147
2021-09-02Fix sonars in clamp #2Jim Hahn4-7/+5
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 Hahn10-62/+21
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_Manchikanti7-91/+133
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 TypesFrancescoFioraEst10-237/+147
Issue-ID: POLICY-3612 Change-Id: I818f80cdc1db98752a7791ef4aba7377add66516 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-08-30Fix issues in Intermediary config of http participantrameshiyer273-6/+53
Issue-ID: POLICY-3589 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I75f0faaded291d7f40e6d0d94609159f8366583f
2021-08-27clamp sonar fix on test code and the restTaka Cho1-1/+0
- rename files to "...ItTestCase" to comply SONAR and checkstyle - surefire plugin include *Test.java files - failsafe plugin include *ItTestCase.java files - use assertEquals etc. - replace to "var" - remove unused import Issue-ID: POLICY-3452 Change-Id: I2e6e829726c4585f5f8bc985f4e8f2b88d17aef1 Signed-off-by: Taka Cho <takamune.cho@att.com>
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_Manchikanti8-31/+28
Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I5784debf2e17fd1018b3feb7c9e2ae08d5f93d23
2021-08-23Add support for configuring new helm repositoryrameshiyer278-37/+204
Issue-ID: POLICY-3480 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I2499cd8ab9a4cf6390c2c4d834264b3754855d23
2021-08-20sonar fix for clampTaka Cho11-36/+60
- 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-20Fix test failure on Http participantrameshiyer271-4/+48
Adding mock server for http tests. Issue-ID: POLICY-3449 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ic1bfacf66e93c835e2ba959756b10caa54377be3
2021-08-18Updated ControlLoop component messagesSirisha_Manchikanti19-1715/+914
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_Manchikanti3-52/+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 "Implement http participant in CLAMP"Jim Hahn16-0/+1170
2021-07-30Merge "Updates to participant messages"Jim Hahn4-28/+3
2021-07-29Implement http participant in CLAMPrameshiyer2716-0/+1170
Issue-ID: POLICY-3449 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ibfe23a6e98fb760a930b6080dc2291113b3cb4fa
2021-07-29Updates to participant messagesSirisha_Manchikanti4-28/+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 imagesFrancescoFioraEst4-37/+57
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_Manchikanti5-43/+43
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_Manchikanti3-61/+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 Fallon6-75/+75
2021-07-21Rename ParticipantControlLoopUpdate messageSirisha_Manchikanti6-75/+75
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 runtimewaynedunican9-8/+26
Issue-ID: POLICY-3418 Change-Id: I957b0ff42ff617fb20ba4134770b43007415a49b Signed-off-by: waynedunican <wayne.dunican@est.tech>
2021-07-19Merge "Add https support for k8s-participant endpoints"Jim Hahn2-26/+1
2021-07-19Merge "Handle participant register,deregister,update messages"Jim Hahn11-28/+192
2021-07-16Add https support for k8s-participant endpointsrameshiyer272-26/+1
Removed additional http port connector configuration Enabling ssl in Dockerfile Issue-ID: POLICY-3334 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I229052f557b95b9aa565dbcf54c3dde30514b6ad
2021-07-15Handle participant register,deregister,update messagesSirisha_Manchikanti11-28/+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-07-15Merge "Support override parameters for k8s-participant"Jim Hahn16-127/+469
2021-07-14Support override parameters for k8s-participantrameshiyer2716-127/+469
Add support for helm chart override parameters in TOSCA. Add support for monitoring Pod status after deployment. Note: ONAP Helm charts from OOM repository needs a global master password to be provided along with the helm command. Looking for suggestions here to avoid passing clear text password in TOSCA (KubernetesHelm.yaml). Thanks Issue-ID: POLICY-3433 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ibcbe79d07caa9bff12de341c3d88c36a144796bc
2021-07-14Merge "Code Coverage on clamp-participant-dcae"Jim Hahn4-1/+61
2021-07-13Code Coverage on clamp-participant-dcaelapentafd4-1/+61
Added assertions to existing tests Issue-ID: POLICY-3452 Change-Id: I653b899f31595ef2bd1164e6caa6a736399c947a Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-07-07Add swagger models for swagger endpoint generationliamfallon1-2/+0
The swagger models dependency is required to generate the swagger for the Swagger endpoint in Springboot applications. Springboot needs Jackson annotations as well. Issue https://jira.onap.org/browse/POLICY-3465 opened for the general Swagger upgrade work. Issue-ID: POLICY-3424 Change-Id: Ie86db5652be26df085234f0699f0363081d06af0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-07-01Add Junits for kubernetes participant modulerameshiyer2721-32/+1190
Overall coverage for the module: 85% Issue-ID: POLICY-3241 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I00c7866ae598b9768d1616468a4c9bfe4cc76166
2021-06-30Update CLAMP: checkstyle 8.43/Spring dependenciesliamfallon6-171/+10
Updates are indentation changes on annotations and rationallization of the dependencies for Spring/Springboot Generation of swagger.json, swagger.html and swagger.pdf temporarily disabled due to a missing dependency in the generation toolchain. Issue-ID: POLICY-3209 Change-Id: Iff5881df45ef54b20fa30f63e2393cc1cdbf4bfe Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-28Convert Intermediary Participant to Spring and refactor ParticipantsFrancescoFioraEst17-150/+61
Issue-ID: POLICY-3370 Change-Id: I1541fc47b35c91f9ec86ab768bc3cec2cd78647c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-06-25Merge "Move parameters from config Json file to application.yaml"Liam Fallon70-2281/+918
2021-06-23Move parameters from config Json file to application.yamlFrancescoFioraEst70-2281/+918
Issue-ID: POLICY-3343 Change-Id: Id78c00a5a241337f684a70feeee543f3a88fc01c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2021-06-22Create test jar for CL exampleswaynedunican1-0/+8
Files under /main/resources/ have moved to /test/resources/ Issue-ID: POLICY-3242 Change-Id: I96fa71e1af2c026bfb08db889de8608fe8acbd18 Signed-off-by: waynedunican <wayne.dunican@est.tech>
2021-06-22Merge "Re clean up clamp project properties and dependencies"Liam Fallon5-65/+32
2021-06-20Merge "Clean up CLAMP Sonar and checkstyle issues"Liam Fallon21-168/+204
2021-06-18Re clean up clamp project properties and dependenciesryanSheehan6-81/+32
Remove version duplication from clamp projects runtime, dcae kubernetes, policy participant and simulator Issue-ID: POLICY-3308 Change-Id: I316b3b0313608c5d17c9692f44d653afabc2d596 Signed-off-by: ryanSheehan <ryansheehan.est@gmail.com>