policy/clamp.git
3 years agoPolicy Clamp Code Coverage 86/125086/2
lapentafd [Mon, 11 Oct 2021 11:50:24 +0000 (12:50 +0100)]
Policy Clamp Code Coverage

Participant Handler Test Cases

Issue-ID: POLICY-3452
Change-Id: I8325206fdfbfbc199f593f7e058e28fa0ef2a649
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
3 years agoFix delete instance in Design state 59/124759/1
sebdet [Fri, 8 Oct 2021 11:52:10 +0000 (13:52 +0200)]
Fix delete instance in Design state

The "delete" flow should not crash when policies have not been deployed yet.
+ Fix DCAE logs (set to DCAe component)
+ Fix the STDOUT that should contain the error logs as requested by OOM team

Issue-ID: POLICY-3707
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I15951106280f4e781ee2f3140fa72a935d54f241

3 years agoFixed Service Template Parsing 35/124635/3
brunomilitzer [Thu, 30 Sep 2021 16:36:44 +0000 (17:36 +0100)]
Fixed Service Template Parsing

Issue-Id: POLICY-3691
Change-Id: Ie04711cd01e4140b0842e8d0d4ffbbe8e1b83361
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoMerge "Handle ParticipantRegister"
Liam Fallon [Wed, 6 Oct 2021 10:14:58 +0000 (10:14 +0000)]
Merge "Handle ParticipantRegister"

3 years agoMerge "Code coverage in clamp/models"
Liam Fallon [Wed, 6 Oct 2021 08:19:47 +0000 (08:19 +0000)]
Merge "Code coverage in clamp/models"

3 years agoHandle ParticipantRegister 24/124624/3
FrancescoFioraEst [Wed, 29 Sep 2021 11:16:06 +0000 (12:16 +0100)]
Handle ParticipantRegister

Send ParticipantUpdate to participant after registration
if commissioning has already been created

Issue-ID: POLICY-3689
Change-Id: Iccc4fc1c0b95e1f270b6810c5b5f130726f24650
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoMerge "Register participant in ParticipantRegister message"
Liam Fallon [Tue, 5 Oct 2021 13:31:12 +0000 (13:31 +0000)]
Merge "Register participant in ParticipantRegister message"

3 years agoMerge "Fix startPhase delay"
Liam Fallon [Tue, 5 Oct 2021 13:30:36 +0000 (13:30 +0000)]
Merge "Fix startPhase delay"

3 years agoCode coverage in clamp/models 67/124667/3
lapentafd [Wed, 29 Sep 2021 17:13:56 +0000 (18:13 +0100)]
Code coverage in clamp/models

Issue-ID: POLICY-3452
Change-Id: I4c24c85edd7a22b05ae81ee7779da13974127164
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
3 years agoFix startPhase delay 25/124625/2
FrancescoFioraEst [Thu, 30 Sep 2021 10:28:28 +0000 (11:28 +0100)]
Fix startPhase delay

Issue-ID: POLICY-3624
Change-Id: Ie7e25ddc3796324246f267dd0c92b9bc1fe15aa2
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoRegister participant in ParticipantRegister message 02/124602/2
FrancescoFioraEst [Wed, 29 Sep 2021 13:11:40 +0000 (14:11 +0100)]
Register participant in ParticipantRegister message

Issue-ID: POLICY-3688
Change-Id: I7ac14dace8e936ac4329b55866bfbf8b7c45da63
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoSuppress useless nginx error messages in clamp-fe 47/124647/1
danielhanrahan [Fri, 1 Oct 2021 12:08:03 +0000 (13:08 +0100)]
Suppress useless nginx error messages in clamp-fe

Log only warnings and higher in nginx error log

Issue-ID: POLICY-3683
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If5d56ceb4d63381616c747d68e231566d7ecc03c

3 years agoMerge "Fix continuous sending CONTROL_LOOP_STATE_CHANGE message"
Liam Fallon [Thu, 30 Sep 2021 07:11:20 +0000 (07:11 +0000)]
Merge "Fix continuous sending CONTROL_LOOP_STATE_CHANGE message"

3 years agoMerge "Update Participant Status after Commissioning"
Liam Fallon [Wed, 29 Sep 2021 20:25:58 +0000 (20:25 +0000)]
Merge "Update Participant Status after Commissioning"

3 years agoMerge "Added service template to be used for smoke tests"
Liam Fallon [Wed, 29 Sep 2021 20:25:47 +0000 (20:25 +0000)]
Merge "Added service template to be used for smoke tests"

3 years agoMerge "Add Instant Serializer/deserializer"
Jorge Hernandez [Wed, 29 Sep 2021 18:29:04 +0000 (18:29 +0000)]
Merge "Add Instant Serializer/deserializer"

3 years agoFix continuous sending CONTROL_LOOP_STATE_CHANGE message 58/124558/1
FrancescoFioraEst [Wed, 29 Sep 2021 10:15:07 +0000 (11:15 +0100)]
Fix continuous sending CONTROL_LOOP_STATE_CHANGE message

Issue-ID: POLICY-3687
Change-Id: I41f8cd80d0c3441533891e7edc21e1440028b852
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoUpdate Participant Status after Commissioning 56/124556/1
FrancescoFioraEst [Wed, 29 Sep 2021 08:20:28 +0000 (09:20 +0100)]
Update Participant Status after Commissioning

Issue-ID: POLICY-3686
Change-Id: Ia9d8c345412c9d4d5017a6931565d57b16ec0c03
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoFix CL state change failures on participants 52/124552/1
rameshiyer27 [Wed, 29 Sep 2021 09:46:54 +0000 (10:46 +0100)]
Fix CL state change failures on participants

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

3 years agoAdd Instant Serializer/deserializer 49/124549/2
sebdet [Wed, 29 Sep 2021 08:00:04 +0000 (10:00 +0200)]
Add Instant Serializer/deserializer

In order to decode the PdpGroup Json properly the instant serializer/deserializer must be added.

Issue-ID: POLICY-3684
Issue-ID: POLICY-3682
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I25d96fa3293d8338a2cb6073083121c7663f19b4
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
3 years agoAdded service template to be used for smoke tests 51/124551/1
saul.gill [Fri, 17 Sep 2021 15:20:33 +0000 (16:20 +0100)]
Added service template to be used for smoke tests

Added K8s types and templates
Added pmsh policy types and templates
Added examples of common properties
Added participant_id as well as participantType

Issue-ID: POLICY-3648
Change-Id: I5435f58ada655e988477720dde8ed191cf475e3b
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoMerge "Add validation participants registered in issue ControlLoop Command"
Liam Fallon [Tue, 28 Sep 2021 07:35:26 +0000 (07:35 +0000)]
Merge "Add validation participants registered in issue ControlLoop Command"

3 years agoClamp models lombok configuration 96/124496/2
lapentafd [Mon, 27 Sep 2021 11:15:58 +0000 (12:15 +0100)]
Clamp models lombok configuration

Making Jacoco filtering out Lombok auto-generated methods

Issue-ID: POLICY-3452
Change-Id: I855fa6945e02dd13f8c2245acd66f1b57ccf3be7
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
3 years agoAdd validation participants registered in issue ControlLoop Command 89/124489/3
FrancescoFioraEst [Fri, 24 Sep 2021 13:14:24 +0000 (14:14 +0100)]
Add validation participants registered in issue ControlLoop Command

Issue-ID: POLICY-3681
Change-Id: I80ad2c3b9a3b46aed01a0255b9791fa4f148ea4b
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoMerge "Add participantType to participant class"
Liam Fallon [Thu, 23 Sep 2021 14:45:33 +0000 (14:45 +0000)]
Merge "Add participantType to participant class"

3 years agoMerge "Fix startPhase in runtime and participants"
Liam Fallon [Thu, 23 Sep 2021 14:45:12 +0000 (14:45 +0000)]
Merge "Fix startPhase in runtime and participants"

3 years agoMerge "Fix k8s participant junits ignored in mvn build"
Liam Fallon [Thu, 23 Sep 2021 13:12:02 +0000 (13:12 +0000)]
Merge "Fix k8s participant junits ignored in mvn build"

3 years agoFix k8s participant junits ignored in mvn build 42/124442/1
rameshiyer27 [Thu, 23 Sep 2021 09:26:36 +0000 (10:26 +0100)]
Fix k8s participant junits ignored in mvn build

  Updated rest end points in junits
  Fixed json parsing issue

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

3 years agoFix startPhase in runtime and participants 27/124427/1
FrancescoFioraEst [Wed, 22 Sep 2021 08:31:25 +0000 (09:31 +0100)]
Fix startPhase in runtime and participants

Issue-ID: POLICY-3677
Change-Id: I78635928086cc39fc3539925052e06b657b249c2
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoAdd participantType to participant class 24/124424/1
Sirisha_Manchikanti [Mon, 20 Sep 2021 15:08:25 +0000 (16:08 +0100)]
Add participantType to participant class

Add participantType to participant class, cascade common and
instance properties from runtime to participants

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

3 years agoMerge "Removed Instance From Participant Type."
Liam Fallon [Wed, 22 Sep 2021 09:51:51 +0000 (09:51 +0000)]
Merge "Removed Instance From Participant Type."

3 years agoMerge "Code Coverage in clamp intermediary"
Liam Fallon [Tue, 21 Sep 2021 15:50:25 +0000 (15:50 +0000)]
Merge "Code Coverage in clamp intermediary"

3 years agoMerge "Fix common properties constraint and add startDelay"
Jorge Hernandez [Tue, 21 Sep 2021 15:37:45 +0000 (15:37 +0000)]
Merge "Fix common properties constraint and add startDelay"

3 years agoFix common properties constraint and add startDelay 78/124378/1
liamfallon [Tue, 21 Sep 2021 10:59:40 +0000 (11:59 +0100)]
Fix common properties constraint and add startDelay

The constraiont for greater or equal (>=) should be greater_or_equal,
not greater-or-equal.

Also, we need a startDelay parameter in order to synchronize the control
loop element starts.

Issue-ID: POLICY-3676
Change-Id: I20ecbafb1205c8af5364e75ac36a2cb879b9fe47
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoRemoved Instance From Participant Type. 95/124395/1
brunomilitzer [Tue, 21 Sep 2021 09:08:50 +0000 (10:08 +0100)]
Removed Instance From Participant Type.

Added Null Checker on Participant Type and ID

Issue-ID: POLICY-3647
Change-Id: I5bed8ec7f302990745d9c8583c65bdf49dec3ab3
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoCode Coverage in clamp intermediary 49/124349/2
lapentafd [Wed, 21 Jul 2021 08:06:53 +0000 (09:06 +0100)]
Code Coverage in clamp intermediary

Issue-ID: POLICY-3452
Change-Id: Ieb0d1153f5f2323bfc73cae7221dfba73b59b725
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
3 years agoEnable SSL connection 32/124332/1
FrancescoFioraEst [Fri, 17 Sep 2021 14:02:03 +0000 (15:02 +0100)]
Enable SSL connection

Enable SSL connection in Rest Api
and SSL connection to DMaap.

Issue-ID: POLICY-3649
Change-Id: I48db31d3f30d580cea0cfdc385d2c763c212e330
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoBump policy-clamp snapshot version to 6.1.3-SNAPSHOT 79/124279/1
liamfallon [Wed, 15 Sep 2021 20:57:45 +0000 (21:57 +0100)]
Bump policy-clamp snapshot version to 6.1.3-SNAPSHOT

Issue-ID: POLICY-3587
Change-Id: Ie3e6aba3a2dd64f36fcf5cbd860fe9b63ee4e8aa
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoRelease clamp 6.1.2 docker images 68/124268/1
liamfallon [Wed, 15 Sep 2021 16:55:57 +0000 (17:55 +0100)]
Release clamp 6.1.2 docker images

Issue-ID: POLICY-3587
Change-Id: I203d21423be6e0c83e27f776ff5e1dcf2aff8960
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoRelease clamp 6.1.2 maven artifacts 43/124243/1
liamfallon [Wed, 15 Sep 2021 16:03:07 +0000 (17:03 +0100)]
Release clamp 6.1.2 maven artifacts

Issue-ID: POLICY-3587
Change-Id: I8ce3aa2df04490642a7730f7ee603e6ff63f814a
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoDisable swagger pdf/html generation 36/124236/1
liamfallon [Wed, 15 Sep 2021 14:36:24 +0000 (15:36 +0100)]
Disable swagger pdf/html generation

Issue-ID: POLICY-3587
Change-Id: I8a6ad2f18e8de71c03b6729c241c3c64a480c4f1
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoFix staging error, remove tests jar dependency 24/124224/1
liamfallon [Wed, 15 Sep 2021 11:07:01 +0000 (12:07 +0100)]
Fix staging error, remove tests jar dependency

We are skipping tests in staging jobs so the policy-clamp-common tests
jar is not staged. This commit introduces profiles to avoid a dependency
error in staging jobs for that jar.

Issue-ID: POLICY-3587
Change-Id: I1b893fa1cbfd5da38272b531cc7f1130421a5cc6
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoAdd policy deployment/undeployment to policy-participant 55/124055/5
waynedunican [Wed, 8 Sep 2021 16:36:49 +0000 (17:36 +0100)]
Add policy deployment/undeployment to policy-participant

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>
3 years agoAdd Priming flag per controlloop 71/124071/6
Sirisha_Manchikanti [Fri, 10 Sep 2021 14:38:07 +0000 (15:38 +0100)]
Add Priming flag per controlloop

This commit adds a Priming flag per controlloop which indicates
whether a controlLoop is primed or deprimed. There is a rest
end-point added to depict in GUI

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

3 years agoMerge "Fixed Maven Clean Issue with Node Dependencies"
Liam Fallon [Tue, 14 Sep 2021 20:21:46 +0000 (20:21 +0000)]
Merge "Fixed Maven Clean Issue with Node Dependencies"

3 years agoFixed Maven Clean Issue with Node Dependencies 55/124155/4
brunomilitzer [Tue, 14 Sep 2021 14:11:10 +0000 (15:11 +0100)]
Fixed Maven Clean Issue with Node Dependencies

Issue-ID: POLICY-3641
Change-Id: I55f8cb95b21690834dcb8fce29dadd809a944705
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoMerge "Use released common and models"
Liam Fallon [Tue, 14 Sep 2021 12:58:21 +0000 (12:58 +0000)]
Merge "Use released common and models"

3 years agoMerge "Update participant state and health in DB"
Pamela Dragosh [Tue, 14 Sep 2021 11:53:40 +0000 (11:53 +0000)]
Merge "Update participant state and health in DB"

3 years agoUse released common and models 87/124087/2
liamfallon [Mon, 13 Sep 2021 15:44:40 +0000 (16:44 +0100)]
Use released common and models

Issue-ID: POLICY-3587
Change-Id: I766edc453e6be85c2d477e8f86d2d499230f10d1
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMerge "Update docker image names of CL components"
Liam Fallon [Mon, 13 Sep 2021 14:24:06 +0000 (14:24 +0000)]
Merge "Update docker image names of CL components"

3 years agoUpdate participant state and health in DB 74/124074/1
Sirisha_Manchikanti [Mon, 13 Sep 2021 13:52:59 +0000 (14:52 +0100)]
Update participant state and health in DB

Update the state and health-status of a participant in database
to TERMINATED and OFF_LINE respectively when there is a
ParticipantDeregister message from any of the participants.

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

3 years agoUpdate docker image names of CL components 62/123962/5
rameshiyer27 [Wed, 8 Sep 2021 12:26:58 +0000 (13:26 +0100)]
Update docker image names of CL components

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

3 years agoMerge "Verify participant Simulator and messages"
Liam Fallon [Fri, 10 Sep 2021 20:15:37 +0000 (20:15 +0000)]
Merge "Verify participant Simulator and messages"

3 years agoFixed Delete Instance Properties Endpoint 00/123900/4
brunomilitzer [Mon, 30 Aug 2021 17:40:01 +0000 (18:40 +0100)]
Fixed Delete Instance Properties Endpoint

Fixed issue regarding that control loops was not getting instantiated
Fixed issue regarding state change that  was not receiving paramaters

Added appropriate Camel Endpoints

Unit tests will be applied on POLICY-3568 and POLICY-3567

Issue-ID: POLICY-3558
Change-Id: I11a1093bdb16651fe1c0ad8e267ded5390267a30
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoVerify participant Simulator and messages 94/123894/6
FrancescoFioraEst [Fri, 3 Sep 2021 16:22:30 +0000 (17:22 +0100)]
Verify participant Simulator and messages

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>
3 years agoPoint at released policy parent 89/123989/2
liamfallon [Thu, 9 Sep 2021 10:39:48 +0000 (11:39 +0100)]
Point at released policy parent

Issue-ID: POLICY-3587
Issue-ID: POLICY-3587
Change-Id: I41a98f3f03d6547adb0ec496011dc80d7655a534
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMerge "Update INFO.yaml"
Pamela Dragosh [Thu, 9 Sep 2021 13:37:57 +0000 (13:37 +0000)]
Merge "Update INFO.yaml"

3 years agoRemove DCAE participant and its references 20/123920/4
Sirisha_Manchikanti [Tue, 7 Sep 2021 10:14:32 +0000 (11:14 +0100)]
Remove DCAE participant and its references

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

3 years agoUpdate INFO.yaml 61/123961/1
liamfallon [Wed, 8 Sep 2021 12:28:28 +0000 (13:28 +0100)]
Update INFO.yaml

Update the INFO.yaml file with latest information.

Issue-ID: POLICY-3552
Change-Id: Ie9840e9add4a47ec44be01dcda75aaac946ee7c3
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMerge "Fix parsing of type heirarchy for nodetypes"
Liam Fallon [Wed, 8 Sep 2021 09:00:36 +0000 (09:00 +0000)]
Merge "Fix parsing of type heirarchy for nodetypes"

3 years agoMerge "Add postman collection for http, k8s participants"
Ajith Sreekumar [Wed, 8 Sep 2021 08:59:38 +0000 (08:59 +0000)]
Merge "Add postman collection for http, k8s participants"

3 years agoMerge "Fix bugs on k8s-particpant"
Liam Fallon [Wed, 8 Sep 2021 08:38:00 +0000 (08:38 +0000)]
Merge "Fix bugs on k8s-particpant"

3 years agoFix parsing of type heirarchy for nodetypes 97/123897/2
Sirisha_Manchikanti [Mon, 6 Sep 2021 08:15:07 +0000 (09:15 +0100)]
Fix parsing of type heirarchy for nodetypes

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

3 years agoAdd postman collection for http, k8s participants 30/123930/1
rameshiyer27 [Tue, 7 Sep 2021 14:21:04 +0000 (15:21 +0100)]
Add postman collection for http, k8s participants

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

3 years agoAdd docker image for http participant 91/123891/3
rameshiyer27 [Mon, 6 Sep 2021 11:16:56 +0000 (12:16 +0100)]
Add docker image for http participant

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

3 years agoFix bugs on k8s-particpant 98/123898/1
rameshiyer27 [Mon, 6 Sep 2021 15:15:32 +0000 (16:15 +0100)]
Fix bugs on k8s-particpant

  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

3 years agoMerge "Fix eclipse warnings in clamp"
Pamela Dragosh [Fri, 3 Sep 2021 14:33:20 +0000 (14:33 +0000)]
Merge "Fix eclipse warnings in clamp"

3 years agoMerge "Fix sonars in clamp #2"
Pamela Dragosh [Fri, 3 Sep 2021 14:31:51 +0000 (14:31 +0000)]
Merge "Fix sonars in clamp #2"

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 agoFix eclipse warnings in clamp 16/123816/2
Jim Hahn [Thu, 2 Sep 2021 13:57:16 +0000 (09:57 -0400)]
Fix eclipse warnings in clamp

Fixed some of these warnings, just in policy-clamp-runtime:
- equals() with wrong argument type in junit
- remove unneeded "SuppressWarning"
- unused fields
- deprecated classes/methods

Fixed some sonars, too:
- use isEqualByComparingTo()
- method complexity: used eclipse to auto-extract methods

Fixed checkstyle issues:
- indentation level

Did not address all deprecation issues (e.g., SSLSocketFactory).

Issue-ID: POLICY-3200
Change-Id: Ibd92e5326854002dc0ca2d7b3b777699cafb5e98
Signed-off-by: Jim Hahn <jrh3@att.com>
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 #2 08/123808/2
Jim Hahn [Wed, 1 Sep 2021 21:50:02 +0000 (17:50 -0400)]
Fix sonars in clamp #2

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>
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"