policy/clamp.git
3 years agoMerge "Fix ParticipantStatus message in Control Loop and Participants"
Jorge Hernandez [Thu, 12 Aug 2021 13:20:09 +0000 (13:20 +0000)]
Merge "Fix ParticipantStatus message in Control Loop and Participants"

3 years agorefactor LoggerMarkerFilter to common repo 48/123248/1
Taka Cho [Wed, 11 Aug 2021 13:28:12 +0000 (09:28 -0400)]
refactor LoggerMarkerFilter to common repo

logback.xml should point to common repo instead

Issue-ID: POLICY-3087
Change-Id: I5cdf1ea081274737870c6456e9fa0ee601ee741e
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoFix ParticipantStatus message in Control Loop and Participants 17/123217/2
FrancescoFioraEst [Tue, 10 Aug 2021 09:55:05 +0000 (10:55 +0100)]
Fix ParticipantStatus message in Control Loop and Participants

Issue-ID: POLICY-3534
Change-Id: I61d27fbe9d7256c391ce1aac657eafa3bafc68ea
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoMerge "Use slf4j instead of EELFLogger in Clamp"
Ajith Sreekumar [Mon, 9 Aug 2021 12:50:31 +0000 (12:50 +0000)]
Merge "Use slf4j instead of EELFLogger in Clamp"

3 years agoMerge "Handle Exceptions in Rest Control Loop Runtime"
Ram Krishna Verma [Fri, 6 Aug 2021 14:00:39 +0000 (14:00 +0000)]
Merge "Handle Exceptions in Rest Control Loop Runtime"

3 years agoMerge "Support for Retry and Timeout handling on ParticipantStatus"
Ram Krishna Verma [Fri, 6 Aug 2021 14:00:14 +0000 (14:00 +0000)]
Merge "Support for Retry and Timeout handling on ParticipantStatus"

3 years agoUse slf4j instead of EELFLogger in Clamp 89/122889/10
Taka Cho [Tue, 27 Jul 2021 20:36:13 +0000 (16:36 -0400)]
Use slf4j instead of EELFLogger in Clamp

replace EELF with slf4j logback
using slf4j Marker from common repo

Issue-ID: POLICY-3087
Change-Id: I56b43584b1603d9eba642c1cd6ef6190526d078b
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoHandle Exceptions in Rest Control Loop Runtime 46/123146/1
FrancescoFioraEst [Tue, 3 Aug 2021 15:54:30 +0000 (16:54 +0100)]
Handle Exceptions in Rest Control Loop Runtime

POLICY-3462: Handle Exceptions in Rest Control Loop Runtime
Change-Id: I586f6f6d85f9253cb2a29c70df38c49ca26c5852
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoUpdate controlloop messages 98/123098/2
Sirisha_Manchikanti [Tue, 3 Aug 2021 16:49:00 +0000 (17:49 +0100)]
Update controlloop messages

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

3 years agoSupport for Retry and Timeout handling on ParticipantStatus 63/123063/3
FrancescoFioraEst [Wed, 28 Jul 2021 15:38:54 +0000 (16:38 +0100)]
Support for Retry and Timeout handling on ParticipantStatus

POLICY-3464: Support for Retry and Timeout handling on ParticipantStatus
Change-Id: Iecf8bc9921cb92987bc75b6938efc543350a1543
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoMerge "Implement http participant in CLAMP"
Jim Hahn [Fri, 30 Jul 2021 19:20:37 +0000 (19:20 +0000)]
Merge "Implement http participant in CLAMP"

3 years agoMerge "Updates to participant messages"
Jim Hahn [Fri, 30 Jul 2021 13:28:11 +0000 (13:28 +0000)]
Merge "Updates to participant messages"

3 years agoMerge "Added endpoint for common or instance properties"
Jim Hahn [Fri, 30 Jul 2021 13:27:07 +0000 (13:27 +0000)]
Merge "Added endpoint for common or instance properties"

3 years agoImplement http participant in CLAMP 75/122875/5
rameshiyer27 [Tue, 20 Jul 2021 06:57:41 +0000 (07:57 +0100)]
Implement http participant in CLAMP

Issue-ID: POLICY-3449
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Ibfe23a6e98fb760a930b6080dc2291113b3cb4fa

3 years agoAdded endpoint for common or instance properties 52/122852/8
saul.gill [Fri, 23 Jul 2021 09:48:25 +0000 (10:48 +0100)]
Added endpoint for common or instance properties

Runtime-controlloop and Camel endpoionts added
Flag common can be used - true common props - false - instance props

Changed getServiceTemplate endpoint to return less

Added creation of controlloop db to clamp scripts

Issue-ID: POLICY-3439
Change-Id: I9d189ca030868b47b46a2e0bc5e731c23fba2a61
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMerge "Replace JSON properties files to Yaml from docker images"
Ajith Sreekumar [Thu, 29 Jul 2021 08:18:46 +0000 (08:18 +0000)]
Merge "Replace JSON properties files to Yaml from docker images"

3 years agoUpdates to participant messages 99/122899/5
Sirisha_Manchikanti [Tue, 27 Jul 2021 16:24:44 +0000 (17:24 +0100)]
Updates to participant messages

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

3 years agoReplace JSON properties files to Yaml from docker images 70/122870/2
FrancescoFioraEst [Fri, 23 Jul 2021 14:53:46 +0000 (15:53 +0100)]
Replace JSON properties files to Yaml from docker images

POLICY-3469: Replace JSON properties files to Yaml from docker images
Change-Id: I23fbd9d84640286725440453d464c397e3144662
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoAdd Retry and Timeout handling 02/122802/6
FrancescoFioraEst [Tue, 20 Jul 2021 14:49:57 +0000 (15:49 +0100)]
Add Retry and Timeout handling

Implementaton of Supervision, Retry and Timeout handling
on all Participant messages

Issue-ID: POLICY-3455
Change-Id: Idfd53ea0b8f5bb1272703256b983a6cbeeb4fdf4
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoRename ParticipantControlLoopStateChange message 14/122814/2
Sirisha_Manchikanti [Wed, 21 Jul 2021 16:25:13 +0000 (17:25 +0100)]
Rename ParticipantControlLoopStateChange message

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

3 years agoRemove ParticipantStateChange message 13/122813/3
Sirisha_Manchikanti [Wed, 21 Jul 2021 14:57:24 +0000 (15:57 +0100)]
Remove ParticipantStateChange message

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

3 years agoMerge "Rename ParticipantControlLoopUpdate message"
Liam Fallon [Fri, 23 Jul 2021 08:23:27 +0000 (08:23 +0000)]
Merge "Rename ParticipantControlLoopUpdate message"

3 years agoMerge "Add distribution of policies to Policy Participant"
Liam Fallon [Thu, 22 Jul 2021 12:12:48 +0000 (12:12 +0000)]
Merge "Add distribution of policies to Policy Participant"

3 years agoMerge "Send ParticipantStatus heartbeat messages to controlloop runtime"
Liam Fallon [Thu, 22 Jul 2021 10:51:32 +0000 (10:51 +0000)]
Merge "Send ParticipantStatus heartbeat messages to controlloop runtime"

3 years agoRename ParticipantControlLoopUpdate message 16/122816/1
Sirisha_Manchikanti [Wed, 21 Jul 2021 15:45:11 +0000 (16:45 +0100)]
Rename ParticipantControlLoopUpdate message

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

3 years agoSend ParticipantStatus heartbeat messages to controlloop runtime 60/122760/3
waynedunican [Wed, 7 Jul 2021 07:01:31 +0000 (08:01 +0100)]
Send ParticipantStatus heartbeat messages to controlloop runtime

Issue-ID: POLICY-3418
Change-Id: I957b0ff42ff617fb20ba4134770b43007415a49b
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoAdd distribution of policies to Policy Participant 81/122781/2
liamfallon [Wed, 21 Jul 2021 10:31:14 +0000 (11:31 +0100)]
Add distribution of policies to Policy Participant

Currently, the Policy Participant only stores the policy to policy-api.
It does not distribute the policy.

This commit adds a parameter for the PDP group to the Policy Framework
Control Loop Element metadata.

Issue-ID: POLICY-3508
Change-Id: Ia182b4ea08ac1d3aec9cca4509f8e33723c80fc5
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMerge "Replace swagger doc gen with commmon approach"
Liam Fallon [Wed, 21 Jul 2021 07:18:41 +0000 (07:18 +0000)]
Merge "Replace swagger doc gen with commmon approach"

3 years agoMerge "Refactor Control Loop Parameters in Spring"
Jim Hahn [Tue, 20 Jul 2021 15:23:12 +0000 (15:23 +0000)]
Merge "Refactor Control Loop Parameters in Spring"

3 years agoMerge "Added Camel Endpoints for decommissioning"
Jim Hahn [Tue, 20 Jul 2021 13:45:35 +0000 (13:45 +0000)]
Merge "Added Camel Endpoints for decommissioning"

3 years agoRefactor Control Loop Parameters in Spring 49/122649/5
FrancescoFioraEst [Tue, 13 Jul 2021 09:30:02 +0000 (10:30 +0100)]
Refactor Control Loop Parameters in Spring

Issue-ID: POLICY-3461
Change-Id: I54351d02da9bfa2b775f40fad0a12a4f32994cd9
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoAdd support for new messages in controloop runtime 59/122659/4
Sirisha_Manchikanti [Wed, 14 Jul 2021 22:48:53 +0000 (23:48 +0100)]
Add support for new messages in controloop runtime

Receive ParticipantRegister, ParticipantDeregister and
ParticipantUpdateAck messages from participants,
Send ParticipantRegisterAck, ParticipantDeregisterAck and
ParticipantUpdate from controlloop runtime to participants.

Issue-ID: POLICY-3414
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: Ib5cb7d582974e34e8a226f640747c596ac5b5beb

3 years agoAdded Camel Endpoints for decommissioning 91/122691/2
saul.gill [Thu, 15 Jul 2021 10:45:02 +0000 (11:45 +0100)]
Added Camel Endpoints for decommissioning

Added endpoint in camel for decommissioning

Changed get tosca service template get endpoint
to return snake case

Added endpoints in camel to retrieve control loop
definitions and element definitions

Added integration tests

Allowed error messages and status codes to come through
from runtime-controlloop backend

Small refactor of clamp python emulator

Issue-ID: POLICY-3443
Change-Id: I2f6103ca0f2058651a43e7ae1e0974cb1d3e69a7
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMerge "Convert Control Loop components to Spring and Supervision refactor"
Jim Hahn [Mon, 19 Jul 2021 13:24:46 +0000 (13:24 +0000)]
Merge "Convert Control Loop components to Spring and Supervision refactor"

3 years agoMerge "Add https support for k8s-participant endpoints"
Jim Hahn [Mon, 19 Jul 2021 13:23:55 +0000 (13:23 +0000)]
Merge "Add https support for k8s-participant endpoints"

3 years agoMerge "Add Camel Endpoint Change State CL Instantiation"
Jim Hahn [Mon, 19 Jul 2021 13:23:34 +0000 (13:23 +0000)]
Merge "Add Camel Endpoint Change State CL Instantiation"

3 years agoMerge "Code Coverage on clamp-participant-intermediary-parameters"
Jim Hahn [Mon, 19 Jul 2021 13:22:31 +0000 (13:22 +0000)]
Merge "Code Coverage on clamp-participant-intermediary-parameters"

3 years agoMerge "Handle participant register,deregister,update messages"
Jim Hahn [Mon, 19 Jul 2021 13:22:07 +0000 (13:22 +0000)]
Merge "Handle participant register,deregister,update messages"

3 years agoCode Coverage on clamp-participant-intermediary-parameters 71/122671/2
lapentafd [Wed, 14 Jul 2021 10:16:48 +0000 (11:16 +0100)]
Code Coverage on clamp-participant-intermediary-parameters

Issue-ID: POLICY-3452
Change-Id: I2cfeaabb6bf232e193430c724434a9669b889bad
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
3 years agoMerge "Fix CL participant docker images missing in Nexus"
Liam Fallon [Fri, 16 Jul 2021 12:33:09 +0000 (12:33 +0000)]
Merge "Fix CL participant docker images missing in Nexus"

3 years agoAdd Camel Endpoint Change State CL Instantiation 29/122629/3
brunomilitzer [Wed, 14 Jul 2021 11:01:47 +0000 (12:01 +0100)]
Add Camel Endpoint Change State CL Instantiation

Issue-ID: POLICY-3425
Change-Id: Ie8c5a5c169e3b24b2b74590e13539167d59f9545
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoAdd https support for k8s-participant endpoints 70/122670/1
rameshiyer27 [Fri, 16 Jul 2021 06:27:16 +0000 (07:27 +0100)]
Add https support for k8s-participant endpoints

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

3 years agoHandle participant register,deregister,update messages 58/122658/2
Sirisha_Manchikanti [Wed, 14 Jul 2021 22:20:30 +0000 (23:20 +0100)]
Handle participant register,deregister,update messages

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

3 years agoConvert Control Loop components to Spring and Supervision refactor 50/122650/2
FrancescoFioraEst [Tue, 13 Jul 2021 10:18:01 +0000 (11:18 +0100)]
Convert Control Loop components to Spring and Supervision refactor

Issue-ID: POLICY-3463
Change-Id: Icc5b2ea576dbbe4cf954b51b8074f91884e93f56
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoMerge "Support override parameters for k8s-participant"
Jim Hahn [Thu, 15 Jul 2021 15:15:14 +0000 (15:15 +0000)]
Merge "Support override parameters for k8s-participant"

3 years agoReplace swagger doc gen with commmon approach 39/122639/2
liamfallon [Wed, 14 Jul 2021 16:52:12 +0000 (17:52 +0100)]
Replace swagger doc gen with commmon approach

The swagger documentation generation is moved to policy-parent. This
commit removes the CLAMP swagger document generation and replaces it
with the common handling.

It also fixes the following bug:
The current CLAMP build generates the swagger.json file using a unit
test case. That file is used later in the build to generate a
swagger.pdf and swagger.html file. If the tests are skipped, the
swagger.json file is not generated and the build fails on the PDF/html
generation step.

This change adds a profile to the build that only does the PDF/html
generation when the skipTests flag is off.

Issue-ID: POLICY-3424
Change-Id: Id195fc600d8fca7bfa5d9003272520d57414d646
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoFix CL participant docker images missing in Nexus 47/122647/2
rameshiyer27 [Thu, 15 Jul 2021 08:36:26 +0000 (09:36 +0100)]
Fix CL participant docker images missing in Nexus

Issue-ID: POLICY-3411
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I70b09ae056391f2d0008e8c7e59102c2736ca46f

3 years agoSupport override parameters for k8s-participant 52/122552/7
rameshiyer27 [Wed, 7 Jul 2021 19:37:54 +0000 (20:37 +0100)]
Support override parameters for k8s-participant

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

3 years agoMerge "Code Coverage on clamp-participant-dcae"
Jim Hahn [Wed, 14 Jul 2021 14:39:17 +0000 (14:39 +0000)]
Merge "Code Coverage on clamp-participant-dcae"

3 years agoMerge "Added get json schema endpoints"
Jim Hahn [Wed, 14 Jul 2021 14:37:52 +0000 (14:37 +0000)]
Merge "Added get json schema endpoints"

3 years agoCode Coverage on clamp-participant-dcae 97/122597/2
lapentafd [Fri, 9 Jul 2021 10:52:54 +0000 (11:52 +0100)]
Code Coverage on clamp-participant-dcae

Added assertions to existing tests

Issue-ID: POLICY-3452
Change-Id: I653b899f31595ef2bd1164e6caa6a736399c947a
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
3 years agoAdded get json schema endpoints 46/122546/3
saul.gill [Fri, 9 Jul 2021 11:10:46 +0000 (12:10 +0100)]
Added get json schema endpoints

Added runtime-controlloop endpoint to return Json Schema
Schema returned can be for specified type within Tosca Service Template
Added Camel in runtime endpoint to proxy the Schema endpoint

Dependency added to pom for the json schema generation

Issue-ID: POLICY-3439
Change-Id: I2a98ce16dfb3761a174c90f4b965d1a37a0d8576
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMerge "Update CL TOSCA definitions, Add Guidance UC"
Liam Fallon [Tue, 13 Jul 2021 09:36:13 +0000 (09:36 +0000)]
Merge "Update CL TOSCA definitions, Add Guidance UC"

3 years agoMerge "Add docker image for kubernetes participant"
Liam Fallon [Tue, 13 Jul 2021 08:26:43 +0000 (08:26 +0000)]
Merge "Add docker image for kubernetes participant"

3 years agoMerge "Add models for register,deregister and update"
Jim Hahn [Mon, 12 Jul 2021 18:34:13 +0000 (18:34 +0000)]
Merge "Add models for register,deregister and update"

3 years agoMerge "Convert controlloop runtime to springboot framework"
Jim Hahn [Mon, 12 Jul 2021 18:33:50 +0000 (18:33 +0000)]
Merge "Convert controlloop runtime to springboot framework"

3 years agoMerge "Add Camel Endpoint ControlLoop Instantiation"
Jim Hahn [Mon, 12 Jul 2021 18:32:49 +0000 (18:32 +0000)]
Merge "Add Camel Endpoint ControlLoop Instantiation"

3 years agoAdd docker image for kubernetes participant 43/122543/2
rameshiyer27 [Wed, 7 Jul 2021 07:02:55 +0000 (08:02 +0100)]
Add docker image for kubernetes participant

Issue-ID: POLICY-3411
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: If139d34f70f626e45a7865b7a8e9e3dae0a61daf

3 years agoConvert controlloop runtime to springboot framework 36/122436/9
FrancescoFioraEst [Mon, 5 Jul 2021 09:36:42 +0000 (10:36 +0100)]
Convert controlloop runtime to springboot framework

Issue-ID: POLICY-3355
Change-Id: Ie1667b749eed28b7e526cd4695f45d8ed736c4e7
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoUpdate CL TOSCA definitions, Add Guidance UC 09/122509/4
liamfallon [Wed, 7 Jul 2021 19:08:41 +0000 (20:08 +0100)]
Update CL TOSCA definitions, Add Guidance UC

This patch makes some minor updates to the TOSCA definitions, mainly the
introduction of common parameters.

It also introduces the first draft of a "Gentle Guidance" control loop
that can be used for testing, verification, documenting and explaining
the TOSCA control loop framework.

Issue-ID: POLICY-3341
Change-Id: Ie2d5379bd362f088d7c500402f83745cc7e6aca3
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMerge "Add swagger models for swagger endpoint generation"
Liam Fallon [Fri, 9 Jul 2021 10:44:34 +0000 (10:44 +0000)]
Merge "Add swagger models for swagger endpoint generation"

3 years agoAdd models for register,deregister and update 31/122431/4
Sirisha_Manchikanti [Fri, 2 Jul 2021 07:53:07 +0000 (08:53 +0100)]
Add models for register,deregister and update

This commit adds models for ParticipantRegister, ParticipantDeregister
and ParticipantUpdate messages. Handling of these messages will be
taken care in a later commit.

Issue-ID: POLICY-3414
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: I622b98b03df09eecaac160ba564c8a21b449c642

3 years agoAdd Camel Endpoint ControlLoop Instantiation 44/122544/1
brunomilitzer [Thu, 8 Jul 2021 11:44:06 +0000 (12:44 +0100)]
Add Camel Endpoint ControlLoop Instantiation

Added Camel Endpoint so that it connects with the ControlLoop Rest endpoint to create a new instantiation.

Issue-ID: POLICY-3436
Change-Id: Idf3bda8a6226f57836d887f9d7a7b66327446858
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoMerge "Add ONAP standard Control Loop Element types"
Jim Hahn [Wed, 7 Jul 2021 14:55:24 +0000 (14:55 +0000)]
Merge "Add ONAP standard Control Loop Element types"

3 years agoAdd swagger models for swagger endpoint generation 46/122446/5
liamfallon [Tue, 6 Jul 2021 08:53:17 +0000 (09:53 +0100)]
Add swagger models for swagger endpoint generation

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>
3 years agoMerge "Fixed failing camel endpoint test"
Jim Hahn [Wed, 7 Jul 2021 12:29:13 +0000 (12:29 +0000)]
Merge "Fixed failing camel endpoint test"

3 years agoMerge "Convert clamp-common unit tests to JUnit 5"
Jim Hahn [Tue, 6 Jul 2021 14:18:56 +0000 (14:18 +0000)]
Merge "Convert clamp-common unit tests to JUnit 5"

3 years agoMerge "Convert clamp-models unit tests to JUnit 5"
Jim Hahn [Tue, 6 Jul 2021 14:18:42 +0000 (14:18 +0000)]
Merge "Convert clamp-models unit tests to JUnit 5"

3 years agoFixed failing camel endpoint test 47/122447/2
saul.gill [Tue, 6 Jul 2021 08:57:28 +0000 (09:57 +0100)]
Fixed failing camel endpoint test

Previously passed integration test failing

Simple fix of the URL in the route

Issue-ID: POLICY-3440
Change-Id: Icd1fcd3e27c3ec632ee07c2ae1bdb2126342cf16
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMerge "Add Junits for kubernetes participant module"
Liam Fallon [Tue, 6 Jul 2021 08:37:12 +0000 (08:37 +0000)]
Merge "Add Junits for kubernetes participant module"

3 years agoMerge "Added ITs for Commissioning Camel Endpoints"
Liam Fallon [Mon, 5 Jul 2021 07:54:46 +0000 (07:54 +0000)]
Merge "Added ITs for Commissioning Camel Endpoints"

3 years agoAdd ONAP standard Control Loop Element types 22/122422/2
liamfallon [Fri, 2 Jul 2021 13:42:06 +0000 (14:42 +0100)]
Add ONAP standard Control Loop Element types

The Policy, DCAE, HTTP, Kubernetes, and CDS Control Loop Elements run on
participants delivered with and packaged with ONAP. These TOSCA files
define the properties for Control Loop Elements on these participants as
TOSCA node types.

Developers who wish to run Control Loop Elements on these participants
write a TOSCA Topology Template, which uses the Control Loop Element
Node Types defined in these files.

These Node type definitions should be preloaded into the
Runtime database, which will be done in a future review.

Issue-ID: POLICY-3341
Change-Id: Icc565bdfa1a59e1c1c551f13c48348ee6a8a4e27
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoAdded ITs for Commissioning Camel Endpoints 35/122335/9
saul.gill [Tue, 29 Jun 2021 11:57:29 +0000 (12:57 +0100)]
Added ITs for Commissioning Camel Endpoints

Changed emulator to deal with new endpoint tests
Added spring property to deal with camel endpoint issue
Fixed lingering checkstyle violations

Issue-ID: POLICY-3440
Change-Id: I5810913c4418e7893f3ad848618deec1b1a85a0f
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoConvert clamp-models unit tests to JUnit 5 14/122414/1
liamfallon [Fri, 2 Jul 2021 10:24:51 +0000 (11:24 +0100)]
Convert clamp-models unit tests to JUnit 5

JUnit 4 tests do not fire when JUnit 5 is activated.

Issue-ID: POLICY-3452
Change-Id: I5efb8ee996b06dc7f57107b8f77408adc1a4f22f
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoConvert clamp-common unit tests to JUnit 5 13/122413/2
liamfallon [Fri, 2 Jul 2021 10:08:47 +0000 (11:08 +0100)]
Convert clamp-common unit tests to JUnit 5

JUnit 4 tests do not fire when JUnit 5 is activated.

Issue-ID: POLICY-3452
Change-Id: I82396f918c69d9c27d0a00fa0e97b3e6b138e951
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoAdd Junits for kubernetes participant module 90/122390/4
rameshiyer27 [Thu, 1 Jul 2021 06:50:45 +0000 (07:50 +0100)]
Add Junits for kubernetes participant module

Overall coverage for the module: 85%

Issue-ID: POLICY-3241
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I00c7866ae598b9768d1616468a4c9bfe4cc76166

3 years agoRestore swagger generation in CLAMP 80/122380/2
liamfallon [Wed, 30 Jun 2021 18:46:09 +0000 (19:46 +0100)]
Restore swagger generation in CLAMP

THis patch restores the Swagger generation in CLAMP. It changes the
target directory for the swagger generation to be the target directory
rather than storing the generated Swagger files in the source
repository.

The reason for this is that it avolds the swagger.json, the
swagger.html, and the swagger.pdf files being generated each time a
build is done and being checked in multiple times. The swagger files
will be produced as an artifact from the build in a later review when
all the swagger documentation for CLAMP is consolidated.

Issue-ID: POLICY-3209
Change-Id: I6ccb446d01509232bbd4230b76bd7950858e1437
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoUpdate CLAMP: checkstyle 8.43/Spring dependencies 45/122345/3
liamfallon [Tue, 29 Jun 2021 16:13:09 +0000 (17:13 +0100)]
Update CLAMP: checkstyle 8.43/Spring dependencies

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>
3 years agoMerge "Convert Intermediary Participant to Spring and refactor Participants"
Jim Hahn [Tue, 29 Jun 2021 15:17:11 +0000 (15:17 +0000)]
Merge "Convert Intermediary Participant to Spring and refactor Participants"

3 years agoMerge "Refactor participant event handling"
Ajith Sreekumar [Tue, 29 Jun 2021 08:38:16 +0000 (08:38 +0000)]
Merge "Refactor participant event handling"

3 years agoConvert Intermediary Participant to Spring and refactor Participants 20/122220/2
FrancescoFioraEst [Mon, 21 Jun 2021 15:45:27 +0000 (16:45 +0100)]
Convert Intermediary Participant to Spring and refactor Participants

Issue-ID: POLICY-3370
Change-Id: I1541fc47b35c91f9ec86ab768bc3cec2cd78647c
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoRefactor participant event handling 97/122197/2
FrancescoFioraEst [Thu, 24 Jun 2021 15:30:23 +0000 (16:30 +0100)]
Refactor participant event handling

Issue-ID: POLICY-3268
Change-Id: I02b03fd9f9f4399e045e766baace203f42e678cf
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoMerge "Add Fundamental TOSCA Types for Control Loops"
Liam Fallon [Fri, 25 Jun 2021 12:34:25 +0000 (12:34 +0000)]
Merge "Add Fundamental TOSCA Types for Control Loops"

3 years agoMerge "Move parameters from config Json file to application.yaml"
Liam Fallon [Fri, 25 Jun 2021 12:34:04 +0000 (12:34 +0000)]
Merge "Move parameters from config Json file to application.yaml"

3 years agoAdd Fundamental TOSCA Types for Control Loops 91/122191/1
liamfallon [Thu, 24 Jun 2021 18:25:34 +0000 (19:25 +0100)]
Add Fundamental TOSCA Types for Control Loops

This file contains the fundamental concepts that must exist in the TOSCA
universe in order for a Control Loop to be defined in TOSCA

Issue-ID: POLICY-3341
Change-Id: I4c1be9162b84f42388e56fea051a07f901bf92a6
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMerge "Increase code coverage in clamp-common"
Ajith Sreekumar [Thu, 24 Jun 2021 12:48:56 +0000 (12:48 +0000)]
Merge "Increase code coverage in clamp-common"

3 years agoMerge "Added Camel Endpoint for Tosca Instantiation"
Liam Fallon [Thu, 24 Jun 2021 08:35:43 +0000 (08:35 +0000)]
Merge "Added Camel Endpoint for Tosca Instantiation"

3 years agoMove parameters from config Json file to application.yaml 84/121984/8
FrancescoFioraEst [Tue, 15 Jun 2021 15:01:31 +0000 (16:01 +0100)]
Move parameters from config Json file to application.yaml

Issue-ID: POLICY-3343
Change-Id: Id78c00a5a241337f684a70feeee543f3a88fc01c
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoIncrease code coverage in clamp-common 93/122093/6
waynedunican [Fri, 18 Jun 2021 14:06:29 +0000 (15:06 +0100)]
Increase code coverage in clamp-common

Issue-ID: POLICY-3403
Change-Id: Ic66b52da8a6256d2a65c2c2767b939e94a417875
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoCreate test jar for CL examples 85/121985/4
waynedunican [Tue, 15 Jun 2021 11:40:46 +0000 (12:40 +0100)]
Create test jar for CL examples

Files under /main/resources/ have moved to /test/resources/

Issue-ID: POLICY-3242
Change-Id: I96fa71e1af2c026bfb08db889de8608fe8acbd18
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoAdded Camel Endpoint for Tosca Instantiation 78/122078/3
brunomilitzer [Fri, 18 Jun 2021 15:11:11 +0000 (16:11 +0100)]
Added Camel Endpoint for Tosca Instantiation

Endpoint redirects GET to runtime instantiation

Issue-ID: POLICY-3357
Change-Id: Idf733c2803be2f6ab5cc681d583c1c6b46b2ce96
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoMerge "Re clean up clamp project properties and dependencies"
Liam Fallon [Tue, 22 Jun 2021 11:07:50 +0000 (11:07 +0000)]
Merge "Re clean up clamp project properties and dependencies"

3 years agoMerge "Added Camel Endpoint for Tosca Template Upload"
Jim Hahn [Mon, 21 Jun 2021 15:51:23 +0000 (15:51 +0000)]
Merge "Added Camel Endpoint for Tosca Template Upload"

3 years agoMerge "Clean up CLAMP Sonar and checkstyle issues"
Liam Fallon [Sun, 20 Jun 2021 19:39:39 +0000 (19:39 +0000)]
Merge "Clean up CLAMP Sonar and checkstyle issues"

3 years agoRe clean up clamp project properties and dependencies 45/122045/2
ryanSheehan [Fri, 18 Jun 2021 15:47:38 +0000 (16:47 +0100)]
Re clean up clamp project properties and dependencies

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>
3 years agoAdded Camel Endpoint for Tosca Template Upload 15/122015/1
saul.gill [Thu, 17 Jun 2021 15:28:22 +0000 (16:28 +0100)]
Added Camel Endpoint for Tosca Template Upload

Endpoint redirects a POST to runtime commissiong API
Tosca Service Template is written to the database

Issue-ID: POLICY-3222
Change-Id: I9ca6b0b3fdbef4bf9a182795112de5280ec7f9ff
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoClean up CLAMP Sonar and checkstyle issues 82/121982/4
liamfallon [Wed, 16 Jun 2021 11:08:01 +0000 (12:08 +0100)]
Clean up CLAMP Sonar and checkstyle issues

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>
3 years agoPrepare controlloop docker images 67/121767/6
Sirisha_Manchikanti [Tue, 1 Jun 2021 15:48:25 +0000 (16:48 +0100)]
Prepare controlloop docker images

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

3 years agoMerge "Fix CLAMP build failure and kub-participant module startup issue."
Liam Fallon [Thu, 17 Jun 2021 07:31:03 +0000 (07:31 +0000)]
Merge "Fix CLAMP build failure and kub-participant module startup issue."

3 years agoFix CLAMP build failure and kub-participant module startup issue. 47/121947/1
rameshiyer27 [Tue, 15 Jun 2021 17:22:04 +0000 (18:22 +0100)]
Fix CLAMP build failure and kub-participant module startup issue.

Initialising ParticipantK8sParameters in the constructor to fix Null pointer Exception in kub-participant module.
Constructor cannot use autowired properties.

Updated pfDao getFiltered method signature to align with latest code in policy models.

Issue-ID: POLICY-3240
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I9405c1e050b31b153ee53829ffece9f4be27818e