policy/clamp.git
4 years agoAdd refresh & update libs 13/119213/1
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
(cherry picked from commit b8831e5199aa0fe2bb1de531069d376182b3571d)

4 years agoMerge "Remove useless code" into tosca-poc
Liam Fallon [Tue, 16 Mar 2021 10:43:13 +0000 (10:43 +0000)]
Merge "Remove useless code" into tosca-poc

4 years agoRemove useless code 12/119212/1
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>
(cherry picked from commit cc09b219f194d3aab112cbedc1468607fe2209e2)

4 years agoIntroduce a new json editor component 11/119211/1
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>
(cherry picked from commit 1e2760ea1ee4baa9db0e921907f3491fda795136)

4 years agoAdd "delete policy" feature in UI 04/119204/5
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>
(cherry picked from commit ea2969fd3bbfe52cbe4f41546dd40d68321c233b)

4 years agoBump clamp tosca-poc branch to 6.1.0-SNAPSHOT 46/119246/5
liamfallon [Fri, 12 Mar 2021 11:04:09 +0000 (11:04 +0000)]
Bump clamp tosca-poc branch to 6.1.0-SNAPSHOT

Issue-ID: POLICY-3105
Change-Id: I157036583ee3f929bd247c46917bfcd471a27da2
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoFix the robot framework test chain 10/119210/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
(cherry picked from commit 396cb9b814626a0383ee49a928f4e534264170aa)

4 years agoBump up clamp version 03/119203/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
(cherry picked from commit c39367c1eab308b9b66d571a496b0652cb728dde)

4 years agoFix start/stop Providers 42/119242/1
FrancescoFioraEst [Fri, 12 Mar 2021 10:09:33 +0000 (10:09 +0000)]
Fix start/stop Providers

Issue-ID: POLICY-2987
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Change-Id: I7069972d16c1ff5b685aa427db3efc49a2d9a161

4 years agoMerge "Add Instantiation CL Rest Controller" into tosca-poc
Jim Hahn [Wed, 10 Mar 2021 21:07:13 +0000 (21:07 +0000)]
Merge "Add Instantiation CL Rest Controller" into tosca-poc

4 years agoMerge "Participant simulator parameters and junits" into tosca-poc
Jim Hahn [Wed, 10 Mar 2021 18:51:58 +0000 (18:51 +0000)]
Merge "Participant simulator parameters and junits" into tosca-poc

4 years agoMerge "Add Commissioning Provider" into tosca-poc
Jim Hahn [Wed, 10 Mar 2021 16:57:45 +0000 (16:57 +0000)]
Merge "Add Commissioning Provider" into tosca-poc

4 years agoParticipant simulator parameters and junits 50/118950/5
Sirisha_Manchikanti [Fri, 5 Mar 2021 15:13:24 +0000 (15:13 +0000)]
Participant simulator parameters and junits

This commit brings in main, activator, command line paramater handling
for main, rest and database parameter handling for Participant Simulator.
A draft SimulationHandler is included which handles simulation of participants
and control loop elements, respective provider and participant
intermediary handling will be shared in later commits.

Issue-ID: POLICY-2987
Change-Id: Iffbfca6907bf4199347e6349a22008ac4d491a1c
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
4 years agoAdd Instantiation CL Rest Controller 03/118903/5
FrancescoFioraEst [Fri, 5 Mar 2021 14:40:57 +0000 (14:40 +0000)]
Add Instantiation CL Rest Controller

Issue-ID: POLICY-2980
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Change-Id: Ic4c1fd8291dcdcdfd3a5145c545766a9dd6afbb3

4 years agoPoint tosca-control-loop pom parent to 3.3.1-SNAPSHOT policy.parent 72/118972/2
Sirisha_Manchikanti [Tue, 9 Mar 2021 15:35:21 +0000 (15:35 +0000)]
Point tosca-control-loop pom parent to 3.3.1-SNAPSHOT policy.parent

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

4 years agoAdd Commissioning Provider 01/118901/2
ERIMROB [Wed, 24 Feb 2021 14:46:13 +0000 (14:46 +0000)]
Add Commissioning Provider

This commit adds commissioning provider code, creating functionality
with rest controller code to follow

Issue-ID: POLICY-2983
Change-Id: I393c527a58bc1151c347e3cc182cb955fa8f9f49
Signed-off-by: ERIMROB <robertas.rimkus@est.tech>
4 years agoMerge "ControlLoop participant basic structure" into tosca-poc
Jorge Hernandez [Thu, 4 Mar 2021 14:07:59 +0000 (14:07 +0000)]
Merge "ControlLoop participant basic structure" into tosca-poc

4 years agoAdd new delete policy endpoint 15/118715/1
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
(cherry picked from commit f12066418c402d3a7fe34667a9fc87295a347b8a)

4 years agoControlLoop participant basic structure 63/118763/1
Sirisha_Manchikanti [Wed, 3 Mar 2021 11:09:53 +0000 (11:09 +0000)]
ControlLoop participant basic structure

Issue-ID: POLICY-2987
Change-Id: I2b603ea64d16fee003c60fea710842e2bb59b51e
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
4 years agoMerge "Bump snapshot versions for TOSCA PoC" into tosca-poc
Liam Fallon [Wed, 3 Mar 2021 15:03:49 +0000 (15:03 +0000)]
Merge "Bump snapshot versions for TOSCA PoC" into tosca-poc

4 years agoBump snapshot versions for TOSCA PoC 49/118749/1
liamfallon [Wed, 3 Mar 2021 11:55:47 +0000 (11:55 +0000)]
Bump snapshot versions for TOSCA PoC

Issue-ID: POLICY-2971
Change-Id: Ie53756ce55ce6c5bae4f0fd63e71bdba2a6151f5
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoMerge "Add Instantiation Provider" into tosca-poc
Liam Fallon [Tue, 2 Mar 2021 08:07:56 +0000 (08:07 +0000)]
Merge "Add Instantiation Provider" into tosca-poc

4 years agoAdd Instantiation Provider 74/118474/6
FrancescoFioraEst [Wed, 24 Feb 2021 11:51:58 +0000 (11:51 +0000)]
Add Instantiation Provider

Issue-ID: POLICY-2980
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Change-Id: I957f947ece23fbd5f1745e18f909754c5945f465

4 years agoMerge "Update tosca-poc models for changed messages" into tosca-poc
Jim Hahn [Fri, 26 Feb 2021 13:29:23 +0000 (13:29 +0000)]
Merge "Update tosca-poc models for changed messages" into tosca-poc

4 years agoFix the Junit issue for 6.0.1 86/118486/2
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
(cherry picked from commit 3664078317de1bfc75f0bf427e859daa2070fb35)

4 years agoMerge "Update clamp to 6.0.1" into tosca-poc
Liam Fallon [Thu, 25 Feb 2021 10:46:58 +0000 (10:46 +0000)]
Merge "Update clamp to 6.0.1" into tosca-poc

4 years agoMerge "Rearrange the UI menu" into tosca-poc
Liam Fallon [Thu, 25 Feb 2021 10:46:47 +0000 (10:46 +0000)]
Merge "Rearrange the UI menu" into tosca-poc

4 years agoMerge "Change PAP Urls called" into tosca-poc
Liam Fallon [Thu, 25 Feb 2021 10:46:38 +0000 (10:46 +0000)]
Merge "Change PAP Urls called" into tosca-poc

4 years agoMerge "Update info.yaml in clamp" into tosca-poc
Liam Fallon [Thu, 25 Feb 2021 10:46:15 +0000 (10:46 +0000)]
Merge "Update info.yaml in clamp" into tosca-poc

4 years agoUpdate info.yaml in clamp 87/118487/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>
(cherry picked from commit 7e60677c8fba9aa4bc2007b780cfa335c88bd35d)

4 years agoUpdate clamp to 6.0.1 85/118485/1
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>
(cherry picked from commit eeaef28f78a23881e2f5cf0380fa1ad34472435d)

4 years agoChange PAP Urls called 82/118482/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
(cherry picked from commit dadac06a2eef145528d548aa78b89227a86f3520)

4 years agoRearrange the UI menu 81/118481/1
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>
(cherry picked from commit 6e4225c1c684b6dacfd465485d989dd846defa99)

4 years agoAdd code in UI to create new policy version 80/118480/1
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
(cherry picked from commit c427e6459d066859e6da068bf50c78a0d120080a)

4 years agoUpdate tosca-poc models for changed messages 66/118466/1
liamfallon [Wed, 24 Feb 2021 16:15:40 +0000 (16:15 +0000)]
Update tosca-poc models for changed messages

The models of REST and DMaaP messages are updated as are the moels for
the database as we evolve the functionality of the TOSCA PoC.

POLICY-2995
Change-Id: I490f7033bf41080d1b0b1123541ea884afc5f29e
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoMerge "Introduce a new endpoint to create policy" into tosca-poc
Liam Fallon [Tue, 23 Feb 2021 15:00:22 +0000 (15:00 +0000)]
Merge "Introduce a new endpoint to create policy" into tosca-poc

4 years agoMerge "Refactoring java packages" into tosca-poc
Liam Fallon [Tue, 23 Feb 2021 14:34:48 +0000 (14:34 +0000)]
Merge "Refactoring java packages" into tosca-poc

4 years agoMerge "Added Main initial code" into tosca-poc
Liam Fallon [Tue, 23 Feb 2021 14:33:22 +0000 (14:33 +0000)]
Merge "Added Main initial code" into tosca-poc

4 years agoAdded Main initial code 59/117959/9
FrancescoFioraEst [Wed, 17 Feb 2021 10:11:02 +0000 (10:11 +0000)]
Added Main initial code

Issue-ID: POLICY-2995
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Change-Id: I6f7da312f00341be8928fb66875c309c6933f194

4 years agoRefactoring java packages 74/117974/2
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 agoIntroduce a new endpoint to create policy 73/117973/1
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
(cherry picked from commit a0a3a03686a386bf6def6f7da6de4d3f6a11ce61)

4 years agoMerge "Fix the Tosca Converter to Json Schema" into tosca-poc
Jim Hahn [Mon, 22 Feb 2021 22:40:05 +0000 (22:40 +0000)]
Merge "Fix the Tosca Converter to Json Schema" into tosca-poc

4 years agoFix the Tosca Converter to Json Schema 68/117968/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
(cherry picked from commit 08ed2240b2389fbf83e9ed67cc65cc6fc628ea72)

4 years agoImprove the policy list react component 69/117969/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
(cherry picked from commit 3728547710dee7d4cbd02d8e6cfed2c1708e263c)

4 years agoConvert Date to Instant in TOSCA PoC 48/118148/2
liamfallon [Mon, 22 Feb 2021 08:57:47 +0000 (08:57 +0000)]
Convert Date to Instant in TOSCA PoC

Issue-ID: POLICY-3069
Change-Id: I9efbc42c4fcc97f79799f3e09ed3424dcc86a891
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoModify Backend for listing the policies 67/117967/1
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>
(cherry picked from commit 3718a16bedbc4a5ecf2593abcb2075238fa99767)

4 years agoMerge "Add New UI component for policies list" into tosca-poc
Ajith Sreekumar [Fri, 19 Feb 2021 14:12:01 +0000 (14:12 +0000)]
Merge "Add New UI component for policies list" into tosca-poc

4 years agoAdd New UI component for policies list 66/117966/1
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>
(cherry picked from commit eb8e3f1dd891ac98f1bbaf35a2a0679146785236)

4 years agoSwitching parent to stable 65/117965/1
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
(cherry picked from commit 25f228a730563c414bce5d65cdb3210ce9eae4c6)

4 years agoPoint at correct POM for tosca control loop build 84/117784/1
liamfallon [Fri, 12 Feb 2021 10:32:59 +0000 (10:32 +0000)]
Point at correct POM for tosca control loop build

The plugin configuration caused all the sub POMs to be run as separate
builds.

The build for the TOSCA POC code should just point at the single POM for
the POC code and not run all the sub POMs. THis change just runs
thebottom POM for the control loop code, which in turn calls all the sub
POMs.

Issue-ID: POLICY-2971
Change-Id: I9cab9fc862c89a037b12894fb5bfb3b2c9a4e9f9
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoAdd common and models initial code 13/117113/11
liamfallon [Mon, 25 Jan 2021 16:23:28 +0000 (16:23 +0000)]
Add common and models initial code

This review brings inthe initial common and models code for the TOSCA
control loop PoC

Changes are made to the model that were required to implement the
working demo.

Unit test are now added that brings coverage above 90%

Issue-ID: POLICY-2995
Change-Id: I22e484a6e6195b2b74087b62fb3bc51d541b171e
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoMerge "Enable building of the tosca PoC code" into tosca-poc
Liam Fallon [Thu, 11 Feb 2021 14:04:57 +0000 (14:04 +0000)]
Merge "Enable building of the tosca PoC code" into tosca-poc

4 years agoEnable building of the tosca PoC code 96/117696/5
liamfallon [Wed, 10 Feb 2021 19:03:47 +0000 (19:03 +0000)]
Enable building of the tosca PoC code

At the moment, because the code in the tosca-controlloop directory is
not linked to the CLAMP pom, it is not built by the Jenkins jobs.

This commit makes a change to the pom.xml file on the tosca-poc branch
only so that the tosca-controlloop code is built.

The maven-invoker-plugin runs a build of the code in the
tosca-controlloop subdirectory by invoking a build of its pom.xml. The
output artifacts are placed in target/tosca-controlloop and do not
interfere in any way with the main CLAMP build.

However, if there are compile erors/test fails/maven errors in the
tosca-controlloop coode, the build wil and should fail.

Issue-ID: POLICY-2995
Change-Id: Ie4d3e3189af6afe0a046ab565a7cc2703afa503d
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoAdd new Camel route 02/117702/1
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
(cherry picked from commit 9d04a9cc8c6f4b12ae60cc0d4d42f71085f72328)

4 years agoPolicy list and Pdpgroup merger code 02/117502/2
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>
(cherry picked from commit 76a0b386bcf5f30533c85f6d26c559bea19ce0fb)

4 years agoRemove test usage of the AAF certificate 04/117504/1
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>
(cherry picked from commit d2178bc9f7d6c06f60a3a8afecd83e428d84cd78)

4 years agoFirst integration of Policy model PdpGroups 79/117079/1
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>
(cherry picked from commit 078c34d0c2e439d8a148a2cd4d7545c6b7f56acb)

4 years agoAdd policies list and PDP responses in the emulator 78/117078/1
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

(cherry picked from commit dabd6db614abf78508add7cdbef2120120ce3d9b)
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ia8e7a80a3adb205de2bdb4a1a9051a734b424980

4 years agoAdd tosca-controlloop directory for TOSCA-POC dev 51/116751/11
liamfallon [Tue, 12 Jan 2021 12:35:11 +0000 (12:35 +0000)]
Add tosca-controlloop directory for TOSCA-POC dev

The module structure is:
./tosca-controlloop              (maven module)
./tosca-controlloop/common       (maven module, could be moved to policy-common)
./tosca-controlloop/design       (maven module, control loop design time component)
./tosca-controlloop/models       (maven module, should be moved to policy-models)
./tosca-controlloop/participants (maven modue for control loop participants)
./tosca-controlloop/runtime      (maven module, control loop run time component)

This patch also updates the repo to the current status of the master
branch

Issue-ID: POLICY-2971
Change-Id: I98c7e25f592cc7d9783d5daff3e9e3ad2e7b5214
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpdate INFO.yaml in policy/clamp repo 44/116644/2
liamfallon [Wed, 6 Jan 2021 16:03:42 +0000 (16:03 +0000)]
Update INFO.yaml in policy/clamp repo

Issue-ID: POLICY-2922
Change-Id: I753bbf5e871350a45af9231ab7d1ec8a444d0b24
Signed-off-by: liamfallon <liam.fallon@est.tech>
(cherry picked from commit f1841463cd3431e699dfa201286f42a4018087ff)

4 years agoMerge clamp master into tosca-poc branch 31/116631/3
liamfallon [Wed, 6 Jan 2021 15:34:58 +0000 (15:34 +0000)]
Merge clamp master into tosca-poc branch

This change mreges changes in  clamp master into the tosca-poc branch
because the two banches have diverged.

Issue-ID: POLICY-2971
Change-Id: Iea4efe90204c98eeaae0b112ad5c964f722afdb0
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoRemove legacy operational Policy
sebdet [Mon, 28 Sep 2020 13:26:42 +0000 (15:26 +0200)]
Remove legacy operational Policy

As it has been removed from policy engine, legacy operational policy code must be removed as well

Issue-ID: CLAMP-948
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
(cherry picked from commit f01d3e8377fa4e5a9c1b129fe446575d132f91c2)
Change-Id: I4a7f6741417abd55f2568bd8e39ce7c9d753dd37

4 years agoUnit test fails due to cleanup
liamfallon [Fri, 25 Sep 2020 15:34:15 +0000 (16:34 +0100)]
Unit test fails due to cleanup

When building CLAMP, a test failure was noticed on the
LoopRepositoriesItCase test case. THe root cause was because the
LoopRepositoriesItCase did not clean up its test configuraiton. When the
test order randomly changed, this test was run before the
LoopRepositoriesItCase test case, causing that test case to fail due to
test data residue.

Issue-ID: CLAMP-946
Signed-off-by: liamfallon <liam.fallon@est.tech>
(cherry picked from commit 909be39ba9b573b9b77e9b3543fa6ffa7bd63cbb)
Change-Id: I6886843555b97a7ffe66e6d2166c08ca29d62d01

4 years agoUpdate clamp version to 5.1.1
sebdet [Mon, 21 Sep 2020 14:21:00 +0000 (16:21 +0200)]
Update clamp version to 5.1.1

Prepare for new release 5.1.1 Guilin

Issue-ID: CLAMP-943
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
(cherry picked from commit a279cd787769a8faa6fedfbd6c099c0425d6d25d)
Change-Id: I18a6a8f108dbff4824aa5b48e58fb062511e352e

4 years agoUse the onap image
sebdet [Mon, 21 Sep 2020 14:18:30 +0000 (16:18 +0200)]
Use the onap image

Use the baseline image for onap: onap/integration-java11:7.1.0

Issue-ID: CLAMP-943
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
(cherry picked from commit eaf160bfec1b3b615cbc7912cb029d9a6eb887e7)
Change-Id: Ifc136348b398186d8e5932a43e3325a3975ce74f

4 years agoRevert lib required by AAF
sebdet [Tue, 15 Sep 2020 20:43:01 +0000 (22:43 +0200)]
Revert lib required by AAF

This lib must be re-introduced for AAF otherwise at runtime there is a classnotfound

Issue-ID: CLAMP-915
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
(cherry picked from commit 68af81034f311e6a25221648f48ae6db7c8e30b6)
Change-Id: I34a72f627689c26ed665d9da61c23e85e4a3dfe0

4 years agoFix the ssl config
sebdet [Tue, 15 Sep 2020 09:53:27 +0000 (11:53 +0200)]
Fix the ssl config

Fix SSL config so that clamp can access external files from the application.properties spring definition

Issue-ID: CLAMP-884
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
(cherry picked from commit 536db7b811eba341aef48a745b495da068d170eb)
Change-Id: I3e0edee985f68499549866d43768c949f7af6107

4 years agoCLAMP should not display all CDS workflow properties
root1 [Tue, 11 Aug 2020 13:14:29 +0000 (18:44 +0530)]
CLAMP should not display all CDS workflow properties

CLAMP should not display all CDS workflow properties

Issue-ID: CLAMP-856
Signed-off-by: root1 <vidyashree.rama@huawei.com>
(cherry picked from commit 2d9f989e0d37002c758bdf66a3f25fcfdac35b62)
Change-Id: Icc07decf95a4e8977cd9559373bde9053ef6b8bb
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years ago[CLAMP] TOSCA Defined Control Loop PoC Initial Checkin
ajay_dp001 [Tue, 22 Sep 2020 11:18:31 +0000 (16:48 +0530)]
[CLAMP] TOSCA Defined Control Loop PoC Initial Checkin

Issue-ID: CLAMP-930
Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech>
Change-Id: Ic00c2cdf9ac23b69c6b58aadb24ccf6cf24a64c8

4 years agoMerge "Revert "Remove useless dep""
Christophe Closset [Thu, 20 Aug 2020 10:28:40 +0000 (10:28 +0000)]
Merge "Revert "Remove useless dep""

4 years agoRevert "Remove useless dep"
Sébastien Determe [Thu, 20 Aug 2020 10:03:36 +0000 (10:03 +0000)]
Revert "Remove useless dep"

This reverts commit dc5e7d8cff0f06d54d28b6eb09a96dbaa89e6808.

Reason for revert: Rollback Janino.

Need to rollback this dep as it is in use by the log.

Issue-ID: CLAMP-915
Change-Id: Ib84a6559eb0001995a468b9fe720f9baa103b32d
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
4 years agoMerge "Re-enable the test multi threading"
Christophe Closset [Thu, 20 Aug 2020 08:13:37 +0000 (08:13 +0000)]
Merge "Re-enable the test multi threading"

4 years agoUpdate Release note
ChrisC [Wed, 19 Aug 2020 12:30:45 +0000 (14:30 +0200)]
Update Release note

Update release note for Frankfurt maintenance

Issue-ID: CLAMP-885
Signed-off-by: ChrisC <christophe.closset@intl.att.com>
Change-Id: Ieb9a8b4c533cef82157f2f9b3c7414a72b25052d

4 years agoRe-enable the test multi threading
sebdet [Thu, 6 Aug 2020 19:28:47 +0000 (21:28 +0200)]
Re-enable the test multi threading

Re-enable the test multi threading with a new 16G ram node

Issue-ID: CLAMP-899
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I52920f47796c8c459287168a048d1ccbe214c762

4 years agoRemove useless dep
sebdet [Mon, 3 Aug 2020 15:20:56 +0000 (17:20 +0200)]
Remove useless dep

Remove useless dependencies

Issue-ID: CLAMP-915
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I83ad14ab2b70373e1679b7fd896bf983db948e3f

4 years agoRemove useless dep
sebdet [Mon, 3 Aug 2020 14:56:31 +0000 (16:56 +0200)]
Remove useless dep

Remove useless dependencies

Issue-ID: CLAMP-915
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I6207cb5face63b350b3bdc8cbd792ce0687bdf41

4 years agoRemove useless dep
sebdet [Mon, 3 Aug 2020 14:48:48 +0000 (16:48 +0200)]
Remove useless dep

Remove useless dependencies

Issue-ID: CLAMP-915
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I6d4ce09c31db50798b9b353383fe0ba2cc95838d

4 years agoRemove useless dep
sebdet [Mon, 3 Aug 2020 14:38:42 +0000 (16:38 +0200)]
Remove useless dep

Remove useless dependencies

Issue-ID: CLAMP-915
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Idf58cbd12061b5c4d0140cd479ff5bd5c8f3a155

4 years agoRemove useless dep
sebdet [Mon, 3 Aug 2020 14:27:20 +0000 (16:27 +0200)]
Remove useless dep

Remove useless dependencies

Issue-ID: CLAMP-915
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I355ff48bc3cf88da8e6dd67f73c9bb61d2e97d42

4 years agoUpdate some direct dependencies
sebdet [Mon, 3 Aug 2020 14:18:22 +0000 (16:18 +0200)]
Update some direct dependencies

Update vulnerable dependencies tomcat

Issue-ID: CLAMP-850
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ia917b9ef2d5a65e4403a2ad60891151745f7c99a

4 years agoUpdate some direct dependencies
sebdet [Mon, 3 Aug 2020 14:03:49 +0000 (16:03 +0200)]
Update some direct dependencies

Update vulnerable dependencies tomcat

Issue-ID: CLAMP-850
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ia384ad154529e4836ac0a4c0f97a5e4e3b1634e4

4 years agoMerge "Clamp react ui to use url pathname dynamically instead of hardcoded prefix...
Sébastien Determe [Mon, 3 Aug 2020 13:56:26 +0000 (13:56 +0000)]
Merge "Clamp react ui to use url pathname dynamically instead of hardcoded prefix for calling apis"

4 years agoMerge "Update some direct dependencies"
Gervais-Martial Ngueko [Mon, 3 Aug 2020 13:39:27 +0000 (13:39 +0000)]
Merge "Update some direct dependencies"

4 years agoMerge "Update some direct dependencies"
Sébastien Determe [Mon, 3 Aug 2020 13:35:02 +0000 (13:35 +0000)]
Merge "Update some direct dependencies"

4 years agoUpdate some direct dependencies
sebdet [Mon, 3 Aug 2020 13:25:07 +0000 (15:25 +0200)]
Update some direct dependencies

Update vulnerable dependencies tomcat

Issue-ID: CLAMP-850
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Idf72aa9155fda422bd58013b6eaf888d67557e68

4 years agoMerge "Update some direct dependencies"
Gervais-Martial Ngueko [Mon, 3 Aug 2020 13:15:12 +0000 (13:15 +0000)]
Merge "Update some direct dependencies"

4 years agoUpdate some direct dependencies
sebdet [Mon, 3 Aug 2020 13:14:02 +0000 (15:14 +0200)]
Update some direct dependencies

Update vulnerable dependencies tomcat

Issue-ID: CLAMP-850
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I8144e2af4517ac226ca74bb0820a58c7c4eb6e33

4 years agoUpdate some direct dependencies
sebdet [Fri, 31 Jul 2020 16:25:34 +0000 (18:25 +0200)]
Update some direct dependencies

Update vulnerable dependencies, camel + Spring boot + Mariadb

Issue-ID: CLAMP-850
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I9850a07037d7bab0f303c69d5682b1f9de282425

4 years agoClamp react ui to use url pathname dynamically instead of hardcoded prefix for callin...
Ashwin Sharma [Thu, 30 Jul 2020 16:05:02 +0000 (16:05 +0000)]
Clamp react ui to use url pathname dynamically instead of hardcoded prefix for calling apis

Issue-ID: CLAMP-914
Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com>
Change-Id: I266aeafe9a543e95bcb96fcab6437227c148f8c4

4 years agoMerge "change -1 to No Limit in View All Templates for # Instances Allowed"
Sébastien Determe [Thu, 30 Jul 2020 14:36:15 +0000 (14:36 +0000)]
Merge "change -1 to No Limit in View All Templates for # Instances Allowed"

4 years agochange -1 to No Limit in View All Templates for # Instances Allowed
Ted Humphrey [Wed, 29 Jul 2020 22:59:12 +0000 (18:59 -0400)]
change -1 to No Limit in View All Templates for # Instances Allowed

Issue-ID: CLAMP-912
Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
Change-Id: I3d7732ae741bd3ab0766fc022e8920af2a08e9af

4 years agoRefer to docker.io mariadb
sebdet [Wed, 29 Jul 2020 14:27:16 +0000 (16:27 +0200)]
Refer to docker.io mariadb

Do not use cached mariadb on nexus3.onap.org

Issue-ID: CLAMP-855
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I7a45731122201d6ae8304fadc6ef0d75310eabd8

4 years agoMerge "Attempt to fix the verify job problem"
Gervais-Martial Ngueko [Wed, 29 Jul 2020 13:12:25 +0000 (13:12 +0000)]
Merge "Attempt to fix the verify job problem"

4 years agoAttempt to fix the verify job problem
sebdet [Mon, 27 Jul 2020 15:49:18 +0000 (17:49 +0200)]
Attempt to fix the verify job problem

Remove the parallel execution of the Integration tests

Issue-ID: CLAMP-899
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: Ia4d60941821f1e5363d5ba5e734a0d9a5ec9186d

4 years agoFix audit, metric and error logs as per logging specification
Ashwin Sharma [Mon, 27 Jul 2020 07:55:07 +0000 (07:55 +0000)]
Fix audit, metric and error logs as per logging specification

Issue-ID: CLAMP-900
Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com>
Change-Id: Ia911e16ecd4a5a03f44c45d32ebc874ff8882895

4 years agoblock re-use of existing loop name; support derivation of SvgGenerator
Ted Humphrey [Wed, 8 Jul 2020 20:48:40 +0000 (16:48 -0400)]
block re-use of existing loop name; support derivation of SvgGenerator

added changes to LoopUI for global style and support of "delete" CL case

Issue-ID: CLAMP-896
Change-Id: I97f603f38c277011835b8e206e5e05226a296606
Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
4 years agoMerge "Support disabling of Loop Instance Properties "Save" button"
Christophe Closset [Wed, 15 Jul 2020 07:44:39 +0000 (07:44 +0000)]
Merge "Support disabling of Loop Instance Properties "Save" button"

4 years agoMerge "Add many jests tests and implement block on element type and subdictionary...
Christophe Closset [Tue, 14 Jul 2020 15:40:01 +0000 (15:40 +0000)]
Merge "Add many jests tests and implement block on element type and subdictionary fields for subdictionary elements"

4 years agoMerge "Add a customValidation method to PolicyModal"
Christophe Closset [Tue, 14 Jul 2020 15:12:59 +0000 (15:12 +0000)]
Merge "Add a customValidation method to PolicyModal"

4 years agoSupport disabling of Loop Instance Properties "Save" button
Ted Humphrey [Tue, 14 Jul 2020 13:04:01 +0000 (09:04 -0400)]
Support disabling of Loop Instance Properties "Save" button

Issue-ID: CLAMP-895
Change-Id: I0e8fd70b750a59c14bb8e73407c49cc09f1d2657
Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>