policy/clamp.git
3 years agoMerge "Fix sonars in clamp"
Ajith Sreekumar [Fri, 3 Sep 2021 10:03:30 +0000 (10:03 +0000)]
Merge "Fix sonars in clamp"

3 years agoMerge "Verify alignment with Definition of TOSCA Control Loop Types"
Jim Hahn [Thu, 2 Sep 2021 14:28:06 +0000 (14:28 +0000)]
Merge "Verify alignment with Definition of TOSCA Control Loop Types"

3 years agoFix sonars in clamp 80/123780/2
Jim Hahn [Wed, 1 Sep 2021 21:16:53 +0000 (17:16 -0400)]
Fix sonars in clamp

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>
3 years agoSend ToscaServiceTemplateFragment with policies, policy-types 58/123758/2
Sirisha_Manchikanti [Tue, 31 Aug 2021 10:25:34 +0000 (11:25 +0100)]
Send ToscaServiceTemplateFragment with policies, policy-types

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

3 years agoVerify alignment with Definition of TOSCA Control Loop Types 92/123792/1
FrancescoFioraEst [Tue, 31 Aug 2021 14:55:59 +0000 (15:55 +0100)]
Verify alignment with Definition of TOSCA Control Loop Types

Issue-ID: POLICY-3612
Change-Id: I818f80cdc1db98752a7791ef4aba7377add66516
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoFix merged CLAMP build failure 32/123732/1
saul.gill [Tue, 31 Aug 2021 15:32:47 +0000 (16:32 +0100)]
Fix merged CLAMP build failure

Issue-ID: POLICY-3588
Change-Id: I66d38e023907e4b9e37a710fa42f8995023dcd3b
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMerge "Fix issues in Intermediary config of http participant"
Pamela Dragosh [Tue, 31 Aug 2021 14:47:09 +0000 (14:47 +0000)]
Merge "Fix issues in Intermediary config of http participant"

3 years agoMerge "Fixed participant registration ACK"
Pamela Dragosh [Tue, 31 Aug 2021 14:46:36 +0000 (14:46 +0000)]
Merge "Fixed participant registration ACK"

3 years agoMerge "Export basic prometheus metrics from clamp"
Jim Hahn [Tue, 31 Aug 2021 13:44:33 +0000 (13:44 +0000)]
Merge "Export basic prometheus metrics from clamp"

3 years agoFix ControlLoopAck and remove circular dependency 48/123648/3
FrancescoFioraEst [Fri, 27 Aug 2021 09:33:52 +0000 (10:33 +0100)]
Fix ControlLoopAck and remove circular dependency

Issue-ID: CLAMP-1028
Change-Id: I23b6806bf9a22449c7709b619a20f3412e3e3742
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoExport basic prometheus metrics from clamp 47/123647/3
FrancescoFioraEst [Tue, 24 Aug 2021 11:55:16 +0000 (12:55 +0100)]
Export basic prometheus metrics from clamp

POLICY-3557: Export basic prometheus metrics from clamp
Change-Id: Ica71d089255e2a8881f668ceeb578993996f9a38
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoFixed participant registration ACK 79/123679/3
saul.gill [Fri, 27 Aug 2021 13:11:52 +0000 (14:11 +0100)]
Fixed participant registration ACK

Particiapnts now send status message after registration
This adds participants to the DB in Runtime

Issue-ID: POLICY-3588
Change-Id: Idb62b429a6e2e0047d6946d9718c78560a7cd659
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoFix issues in Intermediary config of http participant 83/123683/1
rameshiyer27 [Fri, 27 Aug 2021 08:47:43 +0000 (09:47 +0100)]
Fix issues in Intermediary config of http participant

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

3 years agoclamp sonar fix on test code and the rest 19/123519/18
Taka Cho [Tue, 24 Aug 2021 17:03:02 +0000 (13:03 -0400)]
clamp sonar fix on test code and the rest

- 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>
3 years agoFix issue in event handling in participants 11/123511/4
FrancescoFioraEst [Wed, 18 Aug 2021 14:25:59 +0000 (15:25 +0100)]
Fix issue in event handling in participants

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>
3 years agoMerge "Updated handling of ack messages"
Liam Fallon [Thu, 26 Aug 2021 08:21:49 +0000 (08:21 +0000)]
Merge "Updated handling of ack messages"

3 years agoMerge "Intermittent issue in event handling between Cl runtime and participants"
Jim Hahn [Wed, 25 Aug 2021 22:12:26 +0000 (22:12 +0000)]
Merge "Intermittent issue in event handling between Cl runtime and participants"

3 years agoUpdated handling of ack messages 94/123494/3
Sirisha_Manchikanti [Fri, 20 Aug 2021 16:21:11 +0000 (17:21 +0100)]
Updated handling of ack messages

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

3 years agoMerge "Add support for configuring new helm repository"
Jim Hahn [Wed, 25 Aug 2021 17:31:15 +0000 (17:31 +0000)]
Merge "Add support for configuring new helm repository"

3 years agoMerge "Added dmaap messages on commission/decommission"
Jim Hahn [Wed, 25 Aug 2021 16:32:32 +0000 (16:32 +0000)]
Merge "Added dmaap messages on commission/decommission"

3 years agoAdded dmaap messages on commission/decommission 13/123513/3
saul.gill [Tue, 24 Aug 2021 13:38:06 +0000 (14:38 +0100)]
Added dmaap messages on commission/decommission

Added dmaap message trigger to commissioning endpoint
Added dmapp message trigger to decommissioning endpoint

Issue-ID: POLICY-3415
Change-Id: I37ab580c9713d1002becd3bc3af674c2ca17b3c9
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMerge "clamp sonar fix on runtime dir"
Jorge Hernandez [Tue, 24 Aug 2021 13:54:50 +0000 (13:54 +0000)]
Merge "clamp sonar fix on runtime dir"

3 years agoIntermittent issue in event handling between Cl runtime and participants 85/123485/2
FrancescoFioraEst [Fri, 20 Aug 2021 14:05:26 +0000 (15:05 +0100)]
Intermittent issue in event handling between Cl runtime and participants

Issue-ID: POLICY-3544
Change-Id: I40c5dc537b17986d01ab0d213e7ea7c9cdb7d59e
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoMerge "Add Create Instance Rest Endpoint"
Liam Fallon [Tue, 24 Aug 2021 11:58:58 +0000 (11:58 +0000)]
Merge "Add Create Instance Rest Endpoint"

3 years agoclamp sonar fix on runtime dir 63/123363/9
Taka Cho [Wed, 18 Aug 2021 19:30:52 +0000 (15:30 -0400)]
clamp sonar fix on runtime dir

- most of fixes are changed to "var"
- Exceptions should be either logged or rethrown but not both
- Ternary operators should not be nested
- "String#replace" should be preferred to "String#replaceAll"
- Annotation repetitions should not be wrapped
- "throws" declarations should not be superfluous

Issue-ID: POLICY-3452
Change-Id: I8894539aa25a8271410fe79c8d898a45a7a4db31
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoAdd support for configuring new helm repository 65/123465/3
rameshiyer27 [Mon, 23 Aug 2021 15:34:05 +0000 (16:34 +0100)]
Add support for configuring new helm repository

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

3 years agoAdd Create Instance Rest Endpoint 60/123260/11
brunomilitzer [Wed, 28 Jul 2021 15:58:45 +0000 (16:58 +0100)]
Add Create Instance Rest Endpoint

Added Camel Endpoint

Will Apply Unit Tests on POLICY-3537, since focus is to
get the functionalities completed.

Issue-ID: POLICY-3436
Change-Id: I8305896b24c30fc0403c57b3925af983065a5ec2
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agosonar fix for clamp 36/123336/9
Taka Cho [Tue, 17 Aug 2021 18:23:26 +0000 (14:23 -0400)]
sonar fix for clamp

- 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>
3 years agoMerge "Fix test failure on Http participant"
Jim Hahn [Fri, 20 Aug 2021 20:26:53 +0000 (20:26 +0000)]
Merge "Fix test failure on Http participant"

3 years agoMerge "ADD Change State Control Loop Definition"
Jim Hahn [Fri, 20 Aug 2021 20:26:17 +0000 (20:26 +0000)]
Merge "ADD Change State Control Loop Definition"

3 years agoMerge "Added New Commissioning Unit Tests"
Jim Hahn [Fri, 20 Aug 2021 20:25:09 +0000 (20:25 +0000)]
Merge "Added New Commissioning Unit Tests"

3 years agoFix test failure on Http participant 19/123419/2
rameshiyer27 [Fri, 20 Aug 2021 18:13:34 +0000 (19:13 +0100)]
Fix test failure on Http participant

Adding mock server for http tests.

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

3 years agoADD Change State Control Loop Definition 26/123326/4
brunomilitzer [Mon, 16 Aug 2021 09:34:06 +0000 (10:34 +0100)]
ADD Change State Control Loop Definition

Issue-ID: POLICY-3425
Change-Id: I0898feefd0d63802e90c1c191d1ac1f14f7df389
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoAdded New Commissioning Unit Tests 65/123265/4
saul.gill [Thu, 12 Aug 2021 11:35:51 +0000 (12:35 +0100)]
Added New Commissioning Unit Tests

Adding new tests for CommissioningController
Adding new tests for CommissioningProvider

Issue-ID: POLICY-3439
Change-Id: I4a59b971389a2bf35ec3df13b653a1c964f552c0
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoUpdated ControlLoop component messages 58/123258/6
Sirisha_Manchikanti [Tue, 10 Aug 2021 20:51:48 +0000 (21:51 +0100)]
Updated ControlLoop component messages

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

3 years agoMerge "Fix serialization of messages in Control Loop and Participants"
Jorge Hernandez [Thu, 12 Aug 2021 15:33:10 +0000 (15:33 +0000)]
Merge "Fix serialization of messages in Control Loop and Participants"

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 agoFix serialization of messages in Control Loop and Participants 46/123246/2
FrancescoFioraEst [Mon, 9 Aug 2021 15:27:25 +0000 (16:27 +0100)]
Fix serialization of messages in Control Loop and Participants

Issue-ID: POLICY-3536
Change-Id: I72207ba8b3894238412bf19c32b799b661a23c21
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
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>