policy/clamp.git
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 "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 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 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

3 years agoMerge "Remove duplicate properties in clamp repo"
Liam Fallon [Wed, 16 Jun 2021 08:21:45 +0000 (08:21 +0000)]
Merge "Remove duplicate properties in clamp repo"

3 years agoMerge "Make policy participant interact with Policy API"
Jim Hahn [Tue, 15 Jun 2021 13:43:54 +0000 (13:43 +0000)]
Merge "Make policy participant interact with Policy API"

3 years agoMerge "Convert Participant Simulator to SpringBoot Application"
Jim Hahn [Tue, 15 Jun 2021 13:43:34 +0000 (13:43 +0000)]
Merge "Convert Participant Simulator to SpringBoot Application"

3 years agoMerge "Create camel endpoint to get tosca from runtime"
Liam Fallon [Tue, 15 Jun 2021 08:35:43 +0000 (08:35 +0000)]
Merge "Create camel endpoint to get tosca from runtime"

3 years agoConvert Participant Simulator to SpringBoot Application 75/121775/5
FrancescoFioraEst [Wed, 9 Jun 2021 13:22:50 +0000 (14:22 +0100)]
Convert Participant Simulator to SpringBoot Application

Issue-ID: POLICY-3246
Change-Id: I0e5220be826531cf0338d5cad7018d06bda3daf5
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoMake policy participant interact with Policy API 90/121790/4
ERIMROB [Thu, 10 Jun 2021 08:13:50 +0000 (09:13 +0100)]
Make policy participant interact with Policy API

Change the policy participant from interacting directly with
the database, into participant interacting with policy API instead

Issue-ID: POLICY-3330
Change-Id: I02420b1e43f1b18e337b00ebd300f03bb9b7412d
Signed-off-by: ERIMROB <robertas.rimkus@est.tech>
3 years agoCreate camel endpoint to get tosca from runtime 91/121791/3
saul.gill [Wed, 9 Jun 2021 13:24:00 +0000 (14:24 +0100)]
Create camel endpoint to get tosca from runtime

Endpoint points to Runtime Tosca Service Template endpoint
Added new authorization role for control loop
Credentials in configuration file

Issue-ID: POLICY-3222
Change-Id: I86f8cc5751547abfa15e10903d7e2fb2854f1ece
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoEliminate two fromAuthorative() calls in providers 96/121796/3
liamfallon [Thu, 10 Jun 2021 10:45:02 +0000 (11:45 +0100)]
Eliminate two fromAuthorative() calls in providers

The current implementation of the providers makes two calls to the
expensive fromAuthorative() method. This change changes the
implementation to make a single call.

Issue-ID: POLICY-3319
Change-Id: I6b7e016e91b07f567973d9e2af68514de0affddd
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMerge "Initial commit for kubernetes participant in CLAMP"
Jim Hahn [Thu, 10 Jun 2021 14:22:16 +0000 (14:22 +0000)]
Merge "Initial commit for kubernetes participant in CLAMP"

3 years agoRemove duplicate properties in clamp repo 98/121798/1
ryanSheehan [Wed, 9 Jun 2021 16:36:27 +0000 (17:36 +0100)]
Remove duplicate properties in clamp repo

Removes properties, dependency and plugin versioning duplication from dcae-participant and runtime, future reviews will handle other participants like kubernetes
Issue-Id: POLICY-3308
Change-Id: I98f9a36e9f984766b469c862f3298ca9120657e4
Signed-off-by: ryanSheehan <ryansheehan.est@gmail.com>
3 years agoMerge "Convert Policy Participant to SpringBoot Application"
Ram Krishna Verma [Wed, 9 Jun 2021 18:23:49 +0000 (18:23 +0000)]
Merge "Convert Policy Participant to SpringBoot Application"

3 years agoMerge "Convert DCAE Participant to SpringBoot Application"
Ram Krishna Verma [Wed, 9 Jun 2021 18:23:33 +0000 (18:23 +0000)]
Merge "Convert DCAE Participant to SpringBoot Application"

3 years agoInitial commit for kubernetes participant in CLAMP 81/121581/10
liamfallon [Mon, 7 Jun 2021 15:41:12 +0000 (16:41 +0100)]
Initial commit for kubernetes participant in CLAMP

Spring application that exposes REST end points for installing, uninstalling, onboarding
and deleting of helm charts to/from local directory.
CL runtime can also trigger installation and uninstallation of helm charts from both local and configured helm repositories.

Junits will be committed as a separate review.

Issue-ID: POLICY-3240
Change-Id: I7633b6fd6ad41fc8fa55d3722e44f1b2ec132e50
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoConvert DCAE Participant to SpringBoot Application 13/121613/4
FrancescoFioraEst [Tue, 1 Jun 2021 10:35:30 +0000 (11:35 +0100)]
Convert DCAE Participant to SpringBoot Application

Issue-ID: POLICY-3244
Change-Id: I64cef98a4b1a405160d533983baf7a860f1816f5
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoConvert Policy Participant to SpringBoot Application 21/121621/3
FrancescoFioraEst [Tue, 1 Jun 2021 14:14:24 +0000 (15:14 +0100)]
Convert Policy Participant to SpringBoot Application

Issue-ID: POLICY-3245
Change-Id: Iadacaba3b2a30c67adbe77b8b17debce2f2abb39
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
3 years agoEndpoint added to get Tosca Serivce Template 90/121690/2
saul.gill [Thu, 3 Jun 2021 09:17:48 +0000 (10:17 +0100)]
Endpoint added to get Tosca Serivce Template

Issue-Id: POLICY-3222
Change-Id: Ie95bce752019ccfe900205a11bfc28770a7017c9
Signed-off-by: saul.gill <saul.gill@est.tech>
3 years agoTransfer tosca-poc onto master 41/121541/1
liamfallon [Wed, 26 May 2021 10:02:07 +0000 (11:02 +0100)]
Transfer tosca-poc onto master

This is the third if three commits, this commit makes the content of
the master branch the same as the tosca-poc branch.

This commit adds the "src" files for TOSCA control loops to the modules
in master.

Difference between this commit and the current master:
------------------------------------------------------
diff -qr clamp clamp-master |diff_filter.sh
Only in clamp/common: src
Only in clamp/models: src
Files clamp/participant/participant-impl/participant-impl-dcae/pom.xml and clamp-master/participant/participant-impl/participant-impl-dcae/pom.xml differ
Only in clamp/participant/participant-impl/participant-impl-dcae: src
Only in clamp/participant/participant-impl/participant-impl-policy: src
Only in clamp/participant/participant-impl/participant-impl-simulator: src
Files clamp/participant/participant-impl/pom.xml and clamp-master/participant/participant-impl/pom.xml differ
Only in clamp/participant/participant-intermediary: src
Files clamp/participant/pom.xml and clamp-master/participant/pom.xml differ
Files clamp/pom.xml and clamp-master/pom.xml differ
Files clamp/runtime/pom.xml and clamp-master/runtime/pom.xml differ
Only in clamp: runtime-controlloop

Difference between this commit and the current tosca-poc branch:
----------------------------------------------------------------
diff -qr clamp clamp-tp |diff_filter.sh
Files clamp/INFO.yaml and clamp-tp/INFO.yaml differ
Only in clamp/releases: 6.0.1-container.yaml
Only in clamp/releases: 6.0.1.yaml
Only in clamp/releases: 6.0.2-container.yaml
Only in clamp/releases: 6.0.2.yaml
Only in clamp/releases: 6.1.0-container.yaml
Only in clamp/releases: 6.1.0.yaml
Only in clamp/releases: 6.1.1-container.yaml
Only in clamp/releases: 6.1.1.yaml
Files clamp/runtime/src/main/resources/META-INF/resources/swagger.html and clamp-tp/runtime/src/main/resources/META-INF/resources/swagger.html differ

Issue-ID: POLICY-3215
Change-Id: Ica1aa3fe5d6110df2396ea856703102e800fa770
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoModular structure of clamp including controlloop 79/121279/3
Sirisha_Manchikanti [Fri, 7 May 2021 14:17:52 +0000 (15:17 +0100)]
Modular structure of clamp including controlloop

This commit is the first commit that puts in multi module structure while
changing the existing CLAMP code as little as possible.
It adds a structure where common, models, participant and runtime are direct children under clamp,
and current clamp code is moved under runtime. This runtime directory will host controlloop
runtime code in later commits.

Issue-ID: POLICY-3215
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: I15bc8be92ed020343bff4024c4718fec462c40d7
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoMerge "Release Docker 6.1.1"
S�bastien Determe [Mon, 10 May 2021 12:02:57 +0000 (12:02 +0000)]
Merge "Release Docker 6.1.1"

4 years agoRelease Docker 6.1.1 26/121226/1
sebdet [Mon, 10 May 2021 10:39:20 +0000 (12:39 +0200)]
Release Docker 6.1.1

Release the dockers FE/BE for 6.1.1

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

4 years agoRelease Npm/jar 6.1.1 25/121225/3
sebdet [Mon, 10 May 2021 10:33:53 +0000 (12:33 +0200)]
Release Npm/jar 6.1.1

Release the jar and NPm pack for 6.1.1

Issue-ID: POLICY-3224
Change-Id: I537db55acb3bcc7c2c4b1962e434248b908eaccb
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoAdd envSubst 22/121222/3
sebdet [Mon, 10 May 2021 08:30:45 +0000 (10:30 +0200)]
Add envSubst

Add envsubst for OOM changes

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

4 years agoAdd Tests on UI 63/120963/8
sebdet [Wed, 28 Apr 2021 09:12:45 +0000 (11:12 +0200)]
Add Tests on UI

Add some test to UI and fix errors reported by JEST during Ui tests

Issue-ID: POLICY-3200
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I69e93ad1f1714fa60a0c7ea9b1f3fb691f089f8a
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoRemove dead code 00/120900/2
sebdet [Mon, 26 Apr 2021 12:04:20 +0000 (14:04 +0200)]
Remove dead code

Remove dead code due to change done to add tosca file to PEF directly.

Issue-ID: POLICY-3229
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I4e48fd5401e304b131406b739268134dd7e7997f
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoFix not refreshed Tosca list 99/120899/1
sebdet [Mon, 26 Apr 2021 11:10:55 +0000 (13:10 +0200)]
Fix not refreshed Tosca list

The refresh must be don inside the asynchronous block to fix the refreshing of the tosca list

Issue-ID: POLICY-3229
Change-Id: I89d4964b68d88e28bd8d0dfef19c2382d52fa7bf
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoMerge "ToscaFileSelector"
S�bastien Determe [Fri, 23 Apr 2021 15:54:07 +0000 (15:54 +0000)]
Merge "ToscaFileSelector"

4 years agoMerge "Add Camel flows to create policy-type"
S�bastien Determe [Fri, 23 Apr 2021 15:40:31 +0000 (15:40 +0000)]
Merge "Add Camel flows to create policy-type"

4 years agoToscaFileSelector 78/120778/9
sebdet [Wed, 21 Apr 2021 14:28:33 +0000 (16:28 +0200)]
ToscaFileSelector

The UI code that manages the tosca file selector that will be sent to clamp be + fix Rest Camel endpoint that always want ot convert http body to JSON (due to Camel upgrade)

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

4 years agoBump up clamp to 6.1.1 49/120849/2
sebdet [Thu, 22 Apr 2021 11:33:11 +0000 (13:33 +0200)]
Bump up clamp to 6.1.1

Prepare release 6.1.1

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

4 years agoAdd Camel flows to create policy-type 55/120755/5
sebdet [Wed, 21 Apr 2021 10:01:28 +0000 (12:01 +0200)]
Add Camel flows to create policy-type

Add the required camel flows to create a policy type in the clamp BE

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

4 years agoRelease docker 6.1.0 43/120843/1
sebdet [Thu, 22 Apr 2021 09:23:21 +0000 (11:23 +0200)]
Release docker 6.1.0

Release the docker images for 6.1.0

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

4 years agoRelease jar/npm 6.1.0 42/120842/1
sebdet [Thu, 22 Apr 2021 09:22:54 +0000 (11:22 +0200)]
Release jar/npm 6.1.0

Release the jar/npm pack for 6.1.0

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

4 years agoUpdate socketTimeout 13/120813/1
sebdet [Thu, 22 Apr 2021 07:54:47 +0000 (09:54 +0200)]
Update socketTimeout

Update socketTimeout for DCAE deployment command, this has been changed during the camel&Spring upgrades + adding enc: to sdc password to verify that it works well

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

4 years agoRemove strong copy left dep 12/120812/1
sebdet [Thu, 22 Apr 2021 07:33:47 +0000 (09:33 +0200)]
Remove strong copy left dep

Remove dependency not used in clamp that are reported Strong copy left in Nexus-IQ

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

4 years agoFix remaining nexus-IQ issues 41/120641/2
sebdet [Mon, 19 Apr 2021 13:23:56 +0000 (15:23 +0200)]
Fix remaining nexus-IQ issues

Exclude lib not used by clamp BE that are flagged by Nexus IQ

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

4 years agoMerge "Fix Sonar Crypto issues"
S�bastien Determe [Wed, 21 Apr 2021 15:38:21 +0000 (15:38 +0000)]
Merge "Fix Sonar Crypto issues"

4 years agoFix Sonar bugs 79/120779/1
sebdet [Wed, 21 Apr 2021 14:39:28 +0000 (16:39 +0200)]
Fix Sonar bugs

Fix bug introduced in AAF authentication due to changes done to fix Sonar issues

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

4 years agoFix Sonar bugs 61/120761/5
sebdet [Wed, 21 Apr 2021 10:51:06 +0000 (12:51 +0200)]
Fix Sonar bugs

Fix sonar bugs reported in the ClampServlet

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

4 years agoMerge "Fix UI that sends 2 list policies query"
S�bastien Determe [Wed, 21 Apr 2021 13:28:59 +0000 (13:28 +0000)]
Merge "Fix UI that sends 2 list policies query"

4 years agoMerge "Fix wrong PDP operations send by UI"
S�bastien Determe [Wed, 21 Apr 2021 13:28:53 +0000 (13:28 +0000)]
Merge "Fix wrong PDP operations send by UI"

4 years agoMerge "Update Autogenerated Swagger"
S�bastien Determe [Wed, 21 Apr 2021 13:28:09 +0000 (13:28 +0000)]
Merge "Update Autogenerated Swagger"

4 years agoFix UI that sends 2 list policies query 70/120770/1
sebdet [Wed, 21 Apr 2021 13:01:14 +0000 (15:01 +0200)]
Fix UI that sends 2 list policies query

The UI code that manages the PDP deployments was not correct, it uses to do 2 List queries when it was successful

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

4 years agoFix wrong PDP operations send by UI 69/120769/1
sebdet [Wed, 21 Apr 2021 12:57:57 +0000 (14:57 +0200)]
Fix wrong PDP operations send by UI

The code that was computing the operations to execute was wrong. THe command POST was missing

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

4 years agoFix Sonar Crypto issues 36/120636/4
sebdet [Mon, 19 Apr 2021 12:46:45 +0000 (14:46 +0200)]
Fix Sonar Crypto issues

Fix this problem by removing the CryptoUtils that could be replaced by AAF cadi call (this was already in place in the code). The OOM sdc controller password will have to be modified as well.

Issue-ID: POLICY-3201
Issue-ID: POLICY-3200
Change-Id: I6dfd9abb691afb3548d4e68c8759351ad02a30da
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoFix 401 returned by PAP 53/120753/2
sebdet [Wed, 21 Apr 2021 09:52:50 +0000 (11:52 +0200)]
Fix 401 returned by PAP

The direct call from Policy clamp Ui to Pap returns 401 because UI info are forwarded by Camel

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

4 years agoMerge "lifecycle state change"
S�bastien Determe [Wed, 21 Apr 2021 09:00:53 +0000 (09:00 +0000)]
Merge "lifecycle state change"

4 years agoUpdate Autogenerated Swagger 49/120749/2
sebdet [Wed, 21 Apr 2021 08:38:57 +0000 (10:38 +0200)]
Update Autogenerated Swagger

Update Swagger json/html and pdf + boot message for Istanbul

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

4 years agoFix issue in log + Pdp payload 41/120741/5
sebdet [Tue, 20 Apr 2021 22:37:56 +0000 (00:37 +0200)]
Fix issue in log + Pdp payload

Fix log issue that prevent the error to be reported properly + fix the pdp payload construction

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

4 years agolifecycle state change 42/120742/1
osgn422w [Wed, 21 Apr 2021 00:46:43 +0000 (02:46 +0200)]
lifecycle state change

change lifecycle to Mature since it is part of Policy
which is a mature project and has the diversity
which prevented original CLAMP project to be mature

Issue-ID: POLICY-3221

Change-Id: Ib684170d4929ecb7f5161e31b5b458b8b615b750
Signed-off-by: osgn422w <gervais-martial.ngueko@intl.att.com>
4 years agoFix bug in pdp updat Ui 34/120734/1
sebdet [Tue, 20 Apr 2021 16:16:09 +0000 (18:16 +0200)]
Fix bug in pdp updat Ui

Fix the bug in the pdp update UI, one wrong "test" was preventing the user to tick a pdp group and ask for a new deployment

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

4 years agoForce issue in pdp dep to raise exception 33/120733/1
sebdet [Tue, 20 Apr 2021 16:04:50 +0000 (18:04 +0200)]
Force issue in pdp dep to raise exception

Force the pdpDeployment call to raise exception in case of issues to have a better view of the problem in the prod

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

4 years agoFix Sonar security HotSpot 12/120612/3
sebdet [Fri, 16 Apr 2021 15:44:09 +0000 (17:44 +0200)]
Fix Sonar security HotSpot

Fix sec issues reported by Sonar

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

4 years agoFix Sonar bugs & sec issues 79/120579/10
sebdet [Thu, 15 Apr 2021 17:43:27 +0000 (19:43 +0200)]
Fix Sonar bugs & sec issues

Fix all bugs & sec issues reported by Sonar

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

4 years agoUpdate dependencies 52/120252/20
sebdet [Wed, 7 Apr 2021 08:10:45 +0000 (10:10 +0200)]
Update dependencies

Update dependencies to remove some issues reported by Nexus-IQ.

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

4 years agoMerge "Add new component to support Tree view"
Gervais-Martial Ngueko [Thu, 15 Apr 2021 09:21:47 +0000 (09:21 +0000)]
Merge "Add new component to support Tree view"