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

4 years agoAdd new component to support Tree view 00/120000/9
sebdet [Mon, 29 Mar 2021 22:30:49 +0000 (00:30 +0200)]
Add new component to support Tree view

Add treeview component to show subset of policies by prefix (using .)

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

4 years agoUse alternate repo for npm 73/120373/1
Jim Hahn [Fri, 9 Apr 2021 18:50:26 +0000 (14:50 -0400)]
Use alternate repo for npm

Issue-ID: POLICY-3182
Change-Id: Ic5025fe29cb059f90405e0c7d96401a10b669588
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoModify the PolicyDeploymentEditor to support checkboxes 29/119929/14
sebdet [Fri, 26 Mar 2021 17:31:08 +0000 (18:31 +0100)]
Modify the PolicyDeploymentEditor to support checkboxes

Add code to the PolicyDeploymentEditor so that checkboxes are rendered.

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

4 years agoRework the backend to support PDP updates 65/119865/9
sebdet [Thu, 25 Mar 2021 17:19:29 +0000 (18:19 +0100)]
Rework the backend to support PDP updates

Rework Pdp payloads builder so that we can integrate different actions in the same batch + Add a new endpoint to support pdp payload&query to PEF from UI

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

4 years agoMerge "Rework the backend to support PDP updates"
S�bastien Determe [Fri, 2 Apr 2021 08:59:06 +0000 (08:59 +0000)]
Merge "Rework the backend to support PDP updates"

4 years agoRework the backend to support PDP updates 01/119601/13
sebdet [Mon, 22 Mar 2021 17:55:46 +0000 (18:55 +0100)]
Rework the backend to support PDP updates

Add new mem structure so that we do not need to parse the same Json for each policy/type + rework the camel flows so that we use the same code for loop and policies related calls

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

4 years agoUpdated base image version for backend 18/120018/2
Jim Hahn [Tue, 30 Mar 2021 14:37:14 +0000 (10:37 -0400)]
Updated base image version for backend

Issue-ID: POLICY-3166
Change-Id: Iba91032c318f281c5f1733aa1bcdfdfdfbf03952
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoBump up to 6.1.0 95/119795/1
sebdet [Thu, 25 Mar 2021 08:48:06 +0000 (09:48 +0100)]
Bump up to 6.1.0

Bump up the version on master branch to 6.1.0 for istanbul.

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

4 years agoPolicy/Clamp doc update 40/119540/2
osgn422w [Fri, 19 Mar 2021 12:57:10 +0000 (13:57 +0100)]
Policy/Clamp doc update

continue to update the documentation to reflect
the merge of clamp into Policy framework

Issue-ID: REQ-684

Change-Id: Ib8f22b171cda600c15940f42d08606fc06502325
Signed-off-by: osgn422w <gervais-martial.ngueko@intl.att.com>
4 years agoPolicy/Clamp doc update 81/119381/3
osgn422w [Tue, 16 Mar 2021 15:27:47 +0000 (16:27 +0100)]
Policy/Clamp doc update

update the documentation to reflect
the merge of clamp into Policy framework

Issue-ID: REQ-684

Change-Id: I06391cb6468c15aba58bac18a5c042d05b6c8b9f
Signed-off-by: osgn422w <gervais-martial.ngueko@intl.att.com>
4 years agoPrepare for release 6.0.3 56/119356/2
sebdet [Tue, 16 Mar 2021 09:08:02 +0000 (10:08 +0100)]
Prepare for release 6.0.3

Bump up policy-clamp to 6.0.3

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

4 years agoMerge "Release docker in 6.0.2"
S�bastien Determe [Mon, 15 Mar 2021 22:35:51 +0000 (22:35 +0000)]
Merge "Release docker in 6.0.2"

4 years agoRelease docker in 6.0.2 42/119342/2 8.0.0-ONAP
sebdet [Mon, 15 Mar 2021 21:32:09 +0000 (22:32 +0100)]
Release docker in 6.0.2

Release the docker containers in 6.0.2

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

4 years agoRelease Jar/Npm in 6.0.2 41/119341/2
sebdet [Mon, 15 Mar 2021 21:31:20 +0000 (22:31 +0100)]
Release Jar/Npm in 6.0.2

Release the Jar and npm package in 6.0.2

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

4 years agoAdd refresh & update libs 67/119267/8
sebdet [Fri, 12 Mar 2021 18:30:22 +0000 (19:30 +0100)]
Add refresh & update libs

Add refresh features to the policy list when changing it + update materials-Ui + update Json-editor libs to solve big lag in UI + Remove useless link in the menu + fix issue with build due to mariadb not started yet

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

4 years agoFix the robot framework test chain 29/119329/1
sebdet [Mon, 15 Mar 2021 14:58:30 +0000 (15:58 +0100)]
Fix the robot framework test chain

Freeze the robot framework docker version used to avoid unstable build + fix the second test + add logs to robot framework test so that the result is dumped to stdout. We can therefore analyze the issue directly in the clamp build log.

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

4 years agoRemove useless code 24/118824/11
sebdet [Thu, 4 Mar 2021 17:01:26 +0000 (18:01 +0100)]
Remove useless code

Remove useless code due to the changes done for the policy create feature. The tosca list can now be seen directly in the policy framework dialog

Issue-ID: POLICY-3106
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I5fd61f28ed7071ceaf5729045983fc2d792bc9a4
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoIntroduce a new json editor component 22/118622/25
sebdet [Fri, 26 Feb 2021 18:14:03 +0000 (19:14 +0100)]
Introduce a new json editor component

Add this a new react component so that the json editor can be called within the policies table
+ Add the tosca tab
+ Fix for Submit operation in clamp-api-v2.xml

Issue-ID: POLICY-3106
Issue-ID: POLICY-3124
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I18ab3a6034cac719525774f11b2c17f0a14bc2aa
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoAdd "delete policy" feature in UI 07/118507/7
sebdet [Thu, 25 Feb 2021 12:58:36 +0000 (13:58 +0100)]
Add "delete policy" feature in UI

Add delete policy functionality (call to backend) + insert Policies array in a tabs for future policy create operation + Ask column names during export of the test db

Issue-ID: POLICY-2929
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I4108c9fa2b986cc5aff11b8710bc6ad722c52f46
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoBump up clamp version 92/118792/2
sebdet [Thu, 4 Mar 2021 13:57:22 +0000 (14:57 +0100)]
Bump up clamp version

Bump up to 6.0.2 to be ready for next policy-clamp release

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

4 years agoMerge "Add new delete policy endpoint"
S�bastien Determe [Thu, 4 Mar 2021 07:13:55 +0000 (07:13 +0000)]
Merge "Add new delete policy endpoint"

4 years agoMerge "Update info.yaml in clamp"
Ram Krishna Verma [Wed, 24 Feb 2021 19:18:41 +0000 (19:18 +0000)]
Merge "Update info.yaml in clamp"

4 years agoAdd new delete policy endpoint 41/118241/4
sebdet [Tue, 23 Feb 2021 13:51:54 +0000 (14:51 +0100)]
Add new delete policy endpoint

Refactor the camel code so that the policy delete can be called "by loop" related flows and "by policy only" related flows.
A new endpoint for policy deletion has been added as well. This one will be called by the UI

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

4 years agoUpdate info.yaml in clamp 06/118406/1
Ram Krishna Verma [Wed, 24 Feb 2021 15:47:46 +0000 (10:47 -0500)]
Update info.yaml in clamp

Issue-ID: POLICY-3028
Change-Id: I893076e93f26285983673479f9f18795c4f91bd7
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoFix the Junit issue for 6.0.1 81/118381/4
sebdet [Wed, 24 Feb 2021 14:27:14 +0000 (15:27 +0100)]
Fix the Junit issue for 6.0.1

Fix the Junit issue (tests not executed at all) in the release 6.0.1
+ bump up Camel version to latest & Spring boot as well.

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

4 years agoRelease docker 6.0.1 48/118348/2
sebdet [Wed, 24 Feb 2021 08:30:35 +0000 (09:30 +0100)]
Release docker 6.0.1

Release the docker frontend and backend 6.0.1 to nexus3

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

4 years agoRelease jar 6.0.1 and npm 47/118347/2
sebdet [Wed, 24 Feb 2021 08:29:36 +0000 (09:29 +0100)]
Release jar 6.0.1 and npm

Release the jar 6.0.1 and npm package to nexus

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

4 years agoUpdate clamp to 6.0.1 01/118101/7
sebdet [Fri, 19 Feb 2021 13:07:05 +0000 (14:07 +0100)]
Update clamp to 6.0.1

- Update to 6.0.1 so that images can be released next week
- Fix classNotFound due to update of policy models libs from 2.3.5 to 2.4.0 (ToscaPolicyIdentifier renamed to ToscaConceptIddentifier and ToscaPolicyTypeIdentifier deleted)

Issue-ID: POLICY-3084
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ic2d3e6eb25f125ba472c77f0683081214680fafb
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoRefactoring java packages 35/118235/3
sebdet [Tue, 23 Feb 2021 12:31:22 +0000 (13:31 +0100)]
Refactoring java packages

Get rid of *.target java package to avoid confusion with maven target folder

Issue-ID: POLICY-3091
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Id9501713bf13346b2842abffa7dd6b01b8e26206
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoMerge "Change PAP Urls called"
Gervais-Martial Ngueko [Mon, 22 Feb 2021 18:21:52 +0000 (18:21 +0000)]
Merge "Change PAP Urls called"

4 years agoRearrange the UI menu 03/118103/5
sebdet [Fri, 19 Feb 2021 13:40:00 +0000 (14:40 +0100)]
Rearrange the UI menu

Rearrange the UI menu to improve the usability

Issue-ID: POLICY-2925
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Icb56655b8b9300fa78d004a8fe88d64e54f42279
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoChange PAP Urls called 15/118115/1
sebdet [Fri, 19 Feb 2021 15:32:47 +0000 (16:32 +0100)]
Change PAP Urls called

Due to the changes done on the PAP Url (+return code), the camel flows must be adapted. There is no change required for the return code PAP change as Camel already catches all non 2XX code.

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

4 years agoAdd code in UI to create new policy version 88/117988/2
sebdet [Wed, 17 Feb 2021 16:53:17 +0000 (17:53 +0100)]
Add code in UI to create new policy version

Add code to call the policy create backend endpoint + alert box to show status of the creation + Fix backend +

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

4 years agoIntroduce a new endpoint to create policy 01/117901/2
sebdet [Tue, 16 Feb 2021 13:53:43 +0000 (14:53 +0100)]
Introduce a new endpoint to create policy

One first part of the update is to create a policy version from an existing one (this is similar as the create new policy).
The policy-flow.xml has been refactored so that the same policy query is done for policies and loop related flows. A code has been added to remove fields from the UI that could be present (the PDP group info json enrichment)

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

4 years agoImprove the policy list react component 60/117860/2
sebdet [Mon, 15 Feb 2021 17:09:38 +0000 (18:09 +0100)]
Improve the policy list react component

Add feature to the new policy list component, like grouping, sorting, CSV export, add delete/update button for future use

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

4 years agoFix the Tosca Converter to Json Schema 35/117835/2
sebdet [Mon, 15 Feb 2021 10:02:18 +0000 (11:02 +0100)]
Fix the Tosca Converter to Json Schema

The backend had to be slightly fixed so that the json generation without being in a loop is not an issue. This is required for the policies listing feature

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

4 years agoModify Backend for listing the policies 04/117804/6
sebdet [Fri, 12 Feb 2021 16:18:47 +0000 (17:18 +0100)]
Modify Backend for listing the policies

Improve Ui components to list policies + changes an existing camel route to expose the policy json schema properly. New files added to emulator for testing + comments added.
Now the Ui can show the policy config

Issue-ID: POLICY-3061
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Iacf9577a4ab2cc927d05ff267e7356d8410eb77a
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoMerge "Add New UI component for policies list"
S�bastien Determe [Wed, 17 Feb 2021 13:50:53 +0000 (13:50 +0000)]
Merge "Add New UI component for policies list"

4 years agoSwitching parent to stable 42/117942/2
sebdet [Wed, 17 Feb 2021 11:01:01 +0000 (12:01 +0100)]
Switching parent to stable

Removing the parent snapshot as the build is not reproductible if the snapshost changes.
Moreover a change occurred and the tests are even not executed.

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

4 years agoAdd New UI component for policies list 93/117093/13
sebdet [Sun, 24 Jan 2021 17:12:36 +0000 (18:12 +0100)]
Add New UI component for policies list

Add new Ui components to list policies + the small refactoring of React Routes

Issue-ID: POLICY-2925
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I784d7c144a3a3af98a9d62b5d40b5172dbdaed47
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoAdd .checkstyle to .gitignore 85/117785/1
liamfallon [Wed, 10 Feb 2021 17:24:00 +0000 (17:24 +0000)]
Add .checkstyle to .gitignore

.checkstyle files should not be checked in.

Issue-ID: POLICY-2971
Change-Id: I0cd0a6558ea7e282a5dce4868fead1784362e555
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoAdd new Camel route 89/117089/5
sebdet [Sun, 24 Jan 2021 15:40:18 +0000 (16:40 +0100)]
Add new Camel route

Add the new rest endpoint in camel + add new permission type + add robot test for that route + small refactoring of trst files

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

4 years agoRemove test usage of the AAF certificate 93/117593/5
sebdet [Mon, 8 Feb 2021 13:36:11 +0000 (14:36 +0100)]
Remove test usage of the AAF certificate

Fix the broken build by removing the need of the useless certificate, a new one is now generate during the build for the tests.

Issue-ID: POLICY-3036
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I11c2ff5aac8a99c7a2b7e676d6c11bbc861a1de4
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoPolicy list and Pdpgroup merger code 73/117073/6
sebdet [Fri, 22 Jan 2021 16:26:04 +0000 (17:26 +0100)]
Policy list and Pdpgroup merger code

Draft code of the policy list/pdpgroup merger + tests, this code will most likely be called by a camel Rest route and the answer will be returned to the client/ui. The policies listing is enriched with new fields pdp group info, like:
  1. In which Pdp group/Subgroup the policy is currently deployed
  2. What are the potential pdpgroups/subgroups where the policy can be deployed

  These info will be shown in the policy clamp UI to the user.

Also some refactoring has been done for the sake of clarity.

Issue-ID: POLICY-2924
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Iba1ab6fea90735551d7d2e2bbff9ab2efdee093e
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoMerge "First integration of Policy model PdpGroups"
Jorge Hernandez [Fri, 22 Jan 2021 14:55:52 +0000 (14:55 +0000)]
Merge "First integration of Policy model PdpGroups"

4 years agoFirst integration of Policy model PdpGroups 29/117029/13
sebdet [Wed, 20 Jan 2021 22:02:17 +0000 (23:02 +0100)]
First integration of Policy model PdpGroups

Replacement of the PdpGroups clamp code by the one from policy model dependency.

Issue-ID: POLICY-2924
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I12c77704bba1c769dc2f307d91b759a3b645013f
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoMerge "Add policies list and PDP responses in the emulator"
Gervais-Martial Ngueko [Thu, 21 Jan 2021 18:23:46 +0000 (18:23 +0000)]
Merge "Add policies list and PDP responses in the emulator"

4 years agoAdd policies list and PDP responses in the emulator 12/116912/2
sebdet [Fri, 15 Jan 2021 14:14:02 +0000 (15:14 +0100)]
Add policies list and PDP responses in the emulator

- Add some specific answers to the emulator so that the backend list code can be tested
- add guilin tca blueprint to the integration tests so that the test.sql contains a new template.

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

4 years agoRelease 6.0.0 92/116892/3
sebdet [Thu, 14 Jan 2021 20:57:48 +0000 (21:57 +0100)]
Release 6.0.0

Release docker policy-clamp 6.0.0

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

4 years agoMerge "Release 6.0.0"
Christophe Closset [Fri, 15 Jan 2021 14:32:07 +0000 (14:32 +0000)]
Merge "Release 6.0.0"

4 years agoRelease 6.0.0 91/116891/2
sebdet [Thu, 14 Jan 2021 20:57:37 +0000 (21:57 +0100)]
Release 6.0.0

Release jar and NPM policy-clamp 6.0.0

Issue-ID: POLICY-2949
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I9c8caa6702c5696771c394d17a7a5e0d7e5dc6cc
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoFix the gitreview 97/116897/2
sebdet [Fri, 15 Jan 2021 07:39:17 +0000 (08:39 +0100)]
Fix the gitreview

Fix the gitreview + gitignore for folder target existing in the source code

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

4 years agoFix sonar 61/116861/1
sebdet [Thu, 14 Jan 2021 10:09:16 +0000 (11:09 +0100)]
Fix sonar

Fix sonar report by re-enabling the jacoco in integration test phase (this is set in the policy integration parent)

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