clamp.git
5 years agoImprove test coverage in SdcSingleController 43/87743/3
m.kowalski3 [Wed, 15 May 2019 07:29:31 +0000 (09:29 +0200)]
Improve test coverage in SdcSingleController

Change-Id: Ibbdbf890aef92f5fb3a37bc75a502591d6134147
Issue-ID: CLAMP-355
Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
5 years agoMerge "Fix targetResourceId issue" 4.0.2
Sébastien Determe [Tue, 14 May 2019 13:24:55 +0000 (13:24 +0000)]
Merge "Fix targetResourceId issue"

5 years agoFix targetResourceId issue 65/87665/3
xg353y [Tue, 14 May 2019 11:17:54 +0000 (13:17 +0200)]
Fix targetResourceId issue

Initialize targertResourceId options, before loading values from DB,
otherwise the value shown in the UI will be blank.

Issue-ID: CLAMP-382
Change-Id: Ie3fecab521272c5f5373161ed8070f9370fc219d
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoAdjust ui 80/87580/1
sebdet [Mon, 13 May 2019 16:53:04 +0000 (18:53 +0200)]
Adjust ui

Adjust operational window field abatement so the look and feel is good

Issue-ID: CLAMP-381
Change-Id: I0248b836650b7274c34a7f4ebbea06056d816753
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoImprove the logs in ui 74/87574/1
sebdet [Mon, 13 May 2019 16:06:33 +0000 (18:06 +0200)]
Improve the logs in ui

Make log more consistent for the UI

Issue-ID: CLAMP-381
Change-Id: I17dcbe04b3ecdf8d31db708f38931991e80e0b0f
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix loop order 72/87572/1
sebdet [Mon, 13 May 2019 15:18:10 +0000 (17:18 +0200)]
Fix loop order

Change the field for the sorting so that we see the logs in the right
order

Issue-ID: CLAMP-383
Change-Id: I1b423315f64252ac3dca1c34d2207f16f3a85418
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge "Update the version"
Xue Gao [Mon, 13 May 2019 13:04:07 +0000 (13:04 +0000)]
Merge "Update the version"

5 years agoUpdate the version 52/87552/1
sebdet [Mon, 13 May 2019 13:01:32 +0000 (15:01 +0200)]
Update the version

Update version to 4.0.2 to prepare the RC1 the 05/16

Issue-ID: CLAMP-379
Change-Id: I3a42e0bc6093732df8e0d7e8088eb312f17a408f
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoUpdate the select value 44/87544/3
xg353y [Mon, 13 May 2019 11:35:53 +0000 (13:35 +0200)]
Update the select value

Update the select value used for Abatement attribute.

Issue-ID: CLAMP-378
Change-Id: Ib64c08c33646162e6c4f8e0c25c04f2559517626
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoUpdate the order of the loop log 37/87537/6
xg353y [Mon, 13 May 2019 10:44:56 +0000 (12:44 +0200)]
Update the order of the loop log

Update the order of the loop log, so that the latest log will be shown
on the top.

Issue-ID: CLAMP-383
Change-Id: I8d377f923f2bdd80deb5db1828f36cc4adc76a9f
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoMerge "Fix the Abatement issue"
Sébastien Determe [Mon, 13 May 2019 12:02:52 +0000 (12:02 +0000)]
Merge "Fix the Abatement issue"

5 years agoFix the Abatement issue 54/87454/2
xg353y [Fri, 10 May 2019 13:15:27 +0000 (15:15 +0200)]
Fix the Abatement issue

Fix the Abatement flag issue, remove the default checked setting and
only set the abatement attribute value to true if it is selected.

Issue-ID: CLAMP-378
Change-Id: I52b176297bc0042f6c83cfc30331ef9ca8830c98
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoFix the camel flow 29/87529/1
sebdet [Mon, 13 May 2019 08:24:06 +0000 (10:24 +0200)]
Fix the camel flow

Fix the bad log calls done during start/stop actions that led to crash

Issue-ID: CLAMP-379
Change-Id: Ia68c6e96ac8c8771d289d22dcfee6730425ba992
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix dcae url status 82/87382/1 4.0.1
sebdet [Thu, 9 May 2019 17:30:30 +0000 (19:30 +0200)]
Fix dcae url status

Set it to null when undeploy is successful

Issue-ID: CLAMP-376
Change-Id: I0c7f7b2e1464bcd72ece47f5d89730de1718b636
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoAdd more DCAE state for undeploy 81/87381/1
sebdet [Thu, 9 May 2019 16:37:40 +0000 (18:37 +0200)]
Add more DCAE state for undeploy

Add IN_ERROR/PROCESSING in accepted state for dcae undeploy

Issue-ID: CLAMP-376
Change-Id: I3aed42bcc437399a2be7298f5fae0f7380ccae30
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoGenerate Random UUID for DCAE 65/87365/2
sebdet [Thu, 9 May 2019 14:50:17 +0000 (16:50 +0200)]
Generate Random UUID for DCAE

Generate random UUI for DCAE deployment during deploy action

Issue-ID: CLAMP-376
Change-Id: Idfc1959891738f0142d2c20e1f43f1ad45d8eaa7
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge "Fix the deploy cl payload issue"
Sébastien Determe [Thu, 9 May 2019 12:57:47 +0000 (12:57 +0000)]
Merge "Fix the deploy cl payload issue"

5 years agoFix the deploy cl payload issue 48/87348/6
xg353y [Thu, 9 May 2019 11:14:40 +0000 (13:14 +0200)]
Fix the deploy cl payload issue

Update the deploy cl payload to contain only the deployment parameters
instead of the whole blue print.

Issue-ID: CLAMP-375
Change-Id: Iecc13bf8d43c87f9ff7792a76170d36ea972dbd5
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoMerge "Fix the loop log issue"
Sébastien Determe [Thu, 9 May 2019 11:39:17 +0000 (11:39 +0000)]
Merge "Fix the loop log issue"

5 years agoMerge "Fix model type searching"
Christophe Closset [Thu, 9 May 2019 10:08:57 +0000 (10:08 +0000)]
Merge "Fix model type searching"

5 years agoFix model type searching 32/87332/3
sebdet [Thu, 9 May 2019 09:03:53 +0000 (11:03 +0200)]
Fix model type searching

Change the way we get the model type in the dcaeblueprint

Issue-ID: CLAMP-370
Change-Id: I961a20e5d993049c73acd67b6cbfe245e1676dda
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix the loop log issue 38/87338/1
xg353y [Thu, 9 May 2019 09:41:30 +0000 (11:41 +0200)]
Fix the loop log issue

Fix the issue where loop log doesn't refresh in UI on time; update the
Refresh Status menu to point to the correct url

Issue-ID: CLAMP-360
Change-Id: I65064e8f3fe16beea4cb397f66d8e871db17f77d
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoMerge "Fix http4 component"
Xue Gao [Thu, 9 May 2019 09:26:14 +0000 (09:26 +0000)]
Merge "Fix http4 component"

5 years agoMerge "Added unit tests for GuardPolicyDeleteDelegate"
Sébastien Determe [Thu, 9 May 2019 09:05:06 +0000 (09:05 +0000)]
Merge "Added unit tests for GuardPolicyDeleteDelegate"

5 years agoFix http4 component 28/87328/2
sebdet [Thu, 9 May 2019 08:16:51 +0000 (10:16 +0200)]
Fix http4 component

Fix usage of http4 camel component so that we can use the SSL https
connection for any connection

Issue-ID: CLAMP-374
Change-Id: Ice982e596f6ac283caef5da48482effa7652add3
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix URL for PDP Push 47/87247/1
sebdet [Wed, 8 May 2019 14:03:50 +0000 (16:03 +0200)]
Fix URL for PDP Push

Fix the URL to push all policies to PDP group so they are all deployed

Issue-ID: CLAMP-369
Change-Id: I67c4ccdb597e5b3c67b98fe10a35550f66bd449b
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix flows and error catching 45/87245/1
sebdet [Wed, 8 May 2019 13:36:55 +0000 (15:36 +0200)]
Fix flows and error catching

Fix flows, remove getLoop at the end and add better error catching in
camel flows

Issue-ID: CLAMP-369
Change-Id: I473d63d9189daf69e1e4e6d025f06ac586a9f2ab
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge "Improve test coverage in UserJsonDecoder"
Sébastien Determe [Wed, 8 May 2019 11:10:15 +0000 (11:10 +0000)]
Merge "Improve test coverage in UserJsonDecoder"

5 years agoMerge "Added unit tests for OperationalPolicyDeleteDelegate"
Sébastien Determe [Wed, 8 May 2019 11:08:35 +0000 (11:08 +0000)]
Merge "Added unit tests for OperationalPolicyDeleteDelegate"

5 years agoMerge "Fix model_type missing"
Gervais-Martial Ngueko [Wed, 8 May 2019 11:06:32 +0000 (11:06 +0000)]
Merge "Fix model_type missing"

5 years agoFix model_type missing 23/87223/3
sebdet [Wed, 8 May 2019 09:33:43 +0000 (11:33 +0200)]
Fix model_type missing

Fix model missing in some cases (new DCAE Blueprint), also removed
useless fields in MicroService Object

Issue-ID: CLAMP-370
Change-Id: Ia246b5d58309aceb3168107a4bf76b92b23add7a
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge "Added unit tests for OperationalPolicyDelegate"
Sébastien Determe [Wed, 8 May 2019 09:42:21 +0000 (09:42 +0000)]
Merge "Added unit tests for OperationalPolicyDelegate"

5 years agoAdd unit tests fot FlowLogOperation 15/87215/1
m.kowalski3 [Wed, 8 May 2019 06:57:34 +0000 (08:57 +0200)]
Add unit tests fot FlowLogOperation

Change-Id: I499ca3ffe5d5f9a6fca4f5b92fc3c5da6a424d37
Issue-ID: CLAMP-355
Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
5 years agoAdded unit tests for OperationalPolicyDelegate 39/87139/2
p.borelowski [Tue, 7 May 2019 12:12:06 +0000 (14:12 +0200)]
Added unit tests for OperationalPolicyDelegate

Added more unit tests for some of the Delegate classes
in the clds/client package
to reach the minimum threshold of 65 % coverage
(5)

Change-Id: I3de0d8580dabc6925c5c8c62ce6424231f20d192
Issue-ID: CLAMP-355
Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
5 years agoFix PDP group delete 52/87052/1
sebdet [Mon, 6 May 2019 16:06:51 +0000 (18:06 +0200)]
Fix PDP group delete

Fix the PDP group deletion URL that was not correct

Issue-ID: CLAMP-369
Change-Id: I552676692fdd7f201f595082a758cbb675ecabbd
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoAdded unit tests for OperationalPolicyDeleteDelegate 40/87040/2
p.borelowski [Mon, 6 May 2019 13:52:36 +0000 (15:52 +0200)]
Added unit tests for OperationalPolicyDeleteDelegate

Added more unit tests for some of the Delegate classes
in the clds/client package
to reach the minimum threshold of 65 % coverage
(4)

Change-Id: Ifd3936f78c33bc0d847191319591a0aab5168e72
Issue-ID: CLAMP-355
Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
5 years agoFix for PDP group 39/87039/1
sebdet [Mon, 6 May 2019 13:48:48 +0000 (15:48 +0200)]
Fix for PDP group

Attempt to fix PDP group push of all policies

Issue-ID: CLAMP-369
Change-Id: I6512b1b3924552198bf1912c418ae3af1d929d3d
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix Guard policy payload 20/87020/2
sebdet [Mon, 6 May 2019 11:51:45 +0000 (13:51 +0200)]
Fix Guard policy payload

Change the guard policy payload as some field were not correct

Issue-ID: CLAMP-367
Change-Id: I3f6f200d736e8b3d890ec105849ff0e4506b1510
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoAdded unit tests for GuardPolicyDeleteDelegate 05/86605/2
p.borelowski [Tue, 30 Apr 2019 09:42:26 +0000 (11:42 +0200)]
Added unit tests for GuardPolicyDeleteDelegate

Added more unit tests for some of the Delegate classes
in the clds/client package
to reach the minimum threshold of 65 % coverage
(3)

Change-Id: Ib504bebf0b141841687f93c6933b0fa9a40b48e1
Issue-ID: CLAMP-355
Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
5 years agoFix Policy URLS 07/86907/1
sebdet [Fri, 3 May 2019 15:16:17 +0000 (17:16 +0200)]
Fix Policy URLS

Fix the policy URL as they were wrong for op and guard policies

Issue-ID: CLAMP-366
Change-Id: Id6280bd368115665fafac3a1537dad8555ea07ba
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge "Fix log reporting"
Christophe Closset [Fri, 3 May 2019 12:49:33 +0000 (12:49 +0000)]
Merge "Fix log reporting"

5 years agoFix log reporting 97/86897/2
sebdet [Fri, 3 May 2019 12:32:53 +0000 (14:32 +0200)]
Fix log reporting

Fix loop log reported in UI, in case of failure it's not working
correclty

Issue-ID: CLAMP-360
Change-Id: I4533c650134b254619523d8c9cfe2791e9b6584b
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix the bugs in loop state logic 93/86893/2
xg353y [Fri, 3 May 2019 11:23:40 +0000 (13:23 +0200)]
Fix the bugs in loop state logic

Fix the bugs in the logic to get the loop state

Issue-ID: CLAMP-362
Change-Id: I9d931f1a1ceed3d9e173b3ee742f8e349b7e653f
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoMerge "Rework the Model Json"
Christophe Closset [Thu, 2 May 2019 16:32:51 +0000 (16:32 +0000)]
Merge "Rework the Model Json"

5 years agoRework the Model Json 39/86839/1
sebdet [Thu, 2 May 2019 16:18:58 +0000 (18:18 +0200)]
Rework the Model Json

Rework the model Json returned by the backend to the UI

Issue-ID: CLAMP-365
Change-Id: I8b4e24292d62140b4b2e105d8b18042f84e1fd38
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge "Fix the get loop state logic" 4.0.0
Sébastien Determe [Tue, 30 Apr 2019 13:28:41 +0000 (13:28 +0000)]
Merge "Fix the get loop state logic"

5 years agoFix the get loop state logic 21/86521/8
xg353y [Fri, 26 Apr 2019 11:26:25 +0000 (13:26 +0200)]
Fix the get loop state logic

Fix the logic to get the loop state and update the CL deploy/undeploy
flow accordingly

Issue-ID: CLAMP-362
Change-Id: I34f83bd241b1029417453908bf932c0b69f9f5b2
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoImprove test coverage in UserJsonDecoder 65/86365/3
m.kowalski3 [Fri, 26 Apr 2019 07:30:35 +0000 (09:30 +0200)]
Improve test coverage in UserJsonDecoder

Change-Id: I891e78720d47c015ab4f9e130f345797b0110d64
Issue-ID: CLAMP-348
Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
5 years agoFix bad microservice window 54/86554/1
sebdet [Mon, 29 Apr 2019 16:50:46 +0000 (18:50 +0200)]
Fix bad microservice window

Fix the bug where operational policy window is opened in the UI instead
of the right microservice one

Issue-ID: CLAMP-364
Change-Id: I2fd64f0dd2de54e8498f4cdce2c55fd912fd5f21
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoReturn to alpine 48/86548/1
sebdet [Mon, 29 Apr 2019 16:19:39 +0000 (18:19 +0200)]
Return to alpine

Add missing library to alpine so the Font libraries can be found by the
JVM

Issue-ID: CLAMP-361
Change-Id: Ic8f59e614d6eeec234a5ea06073e107194ba22ae
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoRollback to Ubuntu 42/86542/1
sebdet [Mon, 29 Apr 2019 15:45:21 +0000 (17:45 +0200)]
Rollback to Ubuntu

Rollback to ubuntu as alpine seems to lead to issues due to font missing

Change-Id: Idca154725701d9bbdae70037a6c35842b5b95e2c
Issue-ID: CLAMP-361
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoRemove http port by default 17/86517/1
sebdet [Mon, 29 Apr 2019 12:45:24 +0000 (14:45 +0200)]
Remove http port by default

Remove the http port opened 8080 by default from the build

Issue-ID: CLAMP-363
Change-Id: I2079d7e07086278afaa69725005ea0bf050c3a00
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix csar crash 00/86500/1
sebdet [Mon, 29 Apr 2019 09:42:43 +0000 (11:42 +0200)]
Fix csar crash

Fix the csar crash during csar installation, the crash was located in
the sun library probably due to Font missing

Issue-ID: CLAMP-361
Change-Id: I0275320240e561c05dad4b8fbbfb3ff7b7baedb4
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoKick oparent for now 10/86410/1
sebdet [Fri, 26 Apr 2019 14:51:50 +0000 (16:51 +0200)]
Kick oparent for now

Kick oparent so that we can build docker images for testing

Issue-ID: CLAMP-359
Change-Id: I85cae11e86c36d38ce508facebb5a6211aa93154
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix policy Hosts 07/86407/1
sebdet [Fri, 26 Apr 2019 14:34:14 +0000 (16:34 +0200)]
Fix policy Hosts

Add support for PAP(for PDP group) and API host/creds (for policy
create/delete)

Issue-ID: CLAMP-359
Change-Id: I304193c4f1e77bd6676b32ca3d611da57106e655
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge "Change Yaml to Json payload"
Xue Gao [Fri, 26 Apr 2019 11:32:21 +0000 (11:32 +0000)]
Merge "Change Yaml to Json payload"

5 years agoMerge "Clamp uses new Loop implementation by default"
Sébastien Determe [Fri, 26 Apr 2019 11:18:20 +0000 (11:18 +0000)]
Merge "Clamp uses new Loop implementation by default"

5 years agoChange Yaml to Json payload 85/86385/1
sebdet [Fri, 26 Apr 2019 11:04:08 +0000 (13:04 +0200)]
Change Yaml to Json payload

Change the operational policy payload from Yaml to a JSon, yaml being
embedded as URLEncoded

Issue-ID: CLAMP-359
Change-Id: I8c97bb155e6136ce37c29a65a7d9d85e21fedd61
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoRework the logging 79/86379/2
sebdet [Fri, 26 Apr 2019 10:04:26 +0000 (12:04 +0200)]
Rework the logging

Rework the logging of the policy calls so it's easier to debug it

Issue-ID: CLAMP-357
Change-Id: I0ad955de05fef45c4eaae3a6770baefe8e7f0a1f
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFix policy calls 69/86269/1
sebdet [Thu, 25 Apr 2019 10:33:31 +0000 (12:33 +0200)]
Fix policy calls

Fix policy calls  so that the url is now right + update camel version to
latest

Issue-ID: CLAMP-357
Change-Id: Iffc83f53eb2361d7551b43b28c8e822fbf38c619
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoRework code for policy type 68/86268/1
sebdet [Thu, 25 Apr 2019 10:24:45 +0000 (12:24 +0200)]
Rework code for policy type

Rework unit tests + test resources and code for policy type renaming

Issue-ID: CLAMP-356
Change-Id: Id64c620b42347d6f5535523f33a0a04a54a60fa2
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge "Added more unit tests to reach the minimum threshold of 65 % coverage"
Adam Krysiak [Thu, 25 Apr 2019 07:01:42 +0000 (07:01 +0000)]
Merge "Added more unit tests to reach the minimum threshold of 65 % coverage"

5 years agoClamp uses new Loop implementation by default 19/86119/3
Krysiak Adam [Tue, 23 Apr 2019 14:29:22 +0000 (16:29 +0200)]
Clamp uses new Loop implementation by default

Change-Id: I274a946af91f6b06d3aa53b8127c94010274e353
Issue-ID: CLAMP-354
Signed-off-by: Krysiak Adam <adam.krysiak@nokia.com>
5 years agoAdded more unit tests to reach the minimum threshold of 65 % coverage 20/86120/1
p.borelowski [Wed, 24 Apr 2019 07:19:53 +0000 (09:19 +0200)]
Added more unit tests to reach the minimum threshold of 65 % coverage

Added unit tests for the class TcaPolicyDeleteDelegate

Change-Id: Iadd6e6f0600f3400f29ad21d7b84da09945b36cc
Issue-ID: CLAMP-355
Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
5 years agoFixed various sonar identified code smells 72/85772/2
p.borelowski [Thu, 18 Apr 2019 13:11:53 +0000 (15:11 +0200)]
Fixed various sonar identified code smells

- introduced a few String constants,
- removed unused code,
- added @FunctionalInterface annotation,
- made most fields private (when possible)

Change-Id: If8c523125de6a5e5c756e18bd04efd548b19ba91
Issue-ID: CLAMP-346
Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
5 years agoMerge "Fix logging issues"
Sébastien Determe [Tue, 23 Apr 2019 11:29:15 +0000 (11:29 +0000)]
Merge "Fix logging issues"

5 years agoMerge "Update tosca lib"
Xue Gao [Tue, 23 Apr 2019 09:24:27 +0000 (09:24 +0000)]
Merge "Update tosca lib"

5 years agoFix logging issues 11/85811/4
xg353y [Fri, 19 Apr 2019 11:55:40 +0000 (13:55 +0200)]
Fix logging issues

Fix the logging issues created by the api defined by camel. Adding the
entering/exiting and invoking/invoking return logs as based on the ONAP
Logging Requirement.

Issue-ID: CLAMP-351
Change-Id: I5cb314ade5a716993206a917dfdbdab3f2572b3a
Signed-off-by: xg353y <xg353y@intl.att.com>
5 years agoMerge "Fixed generic Sonar issue in the clamp project Remove duplicated literal in...
Sébastien Determe [Tue, 23 Apr 2019 09:21:36 +0000 (09:21 +0000)]
Merge "Fixed generic Sonar issue in the clamp project Remove duplicated literal in DefaultUserConfiguration"

5 years agoMerge "Replacing the VFC with VFModule"
Sébastien Determe [Tue, 23 Apr 2019 09:16:11 +0000 (09:16 +0000)]
Merge "Replacing the VFC with VFModule"

5 years agoUpdate tosca lib 31/86031/1
sebdet [Tue, 23 Apr 2019 09:09:54 +0000 (11:09 +0200)]
Update tosca lib

Update tosca lib to 1.5.1 in order to have the fix for policy model

Issue-ID: CLAMP-352
Change-Id: Id72d54eed2afabcf45ae95866927f398659f7967
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoFixed generic Sonar issue in the clamp project 26/86026/3
m.kowalski3 [Tue, 23 Apr 2019 07:23:41 +0000 (09:23 +0200)]
Fixed generic Sonar issue in the clamp project
Remove duplicated literal in DefaultUserConfiguration

Change-Id: I8318b568d4dd093e9a57a30341ce607c6668c5d1
Issue-ID: CLAMP-346
Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
5 years agoMerge "Fixed generic Sonar issue in the clamp project"
Sébastien Determe [Tue, 23 Apr 2019 08:24:54 +0000 (08:24 +0000)]
Merge "Fixed generic Sonar issue in the clamp project"

5 years agoMerge "Fixed Sonar issues in the onap.clamp.clds.client packages"
Sébastien Determe [Tue, 23 Apr 2019 08:14:12 +0000 (08:14 +0000)]
Merge "Fixed Sonar issues in the onap.clamp.clds.client packages"

5 years agoFix Checkstyle issues 27/85927/1
Vidyashree Rama [Mon, 22 Apr 2019 04:10:50 +0000 (09:40 +0530)]
Fix Checkstyle issues

Fix Checkstyle issues

Issue-ID: CLAMP-328

Change-Id: Ic03e0a00094a5de8b592ecd3ce3b9ae0ecdb59f8
Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
5 years agoReplacing the VFC with VFModule 18/85818/1
ThamlurRaju [Fri, 19 Apr 2019 14:11:09 +0000 (19:41 +0530)]
Replacing the VFC with VFModule

GUI modifications for operation policy

Change-Id: I21fd7bc499ba799a0b8436b1946733608d9c62e2
Issue-ID: CLAMP-350
Signed-off-by: ThamlurRaju <TR00568434@TechMahindra.com>
5 years agoFixed generic Sonar issue in the clamp project 81/85681/4
k.kedron [Thu, 18 Apr 2019 11:42:40 +0000 (13:42 +0200)]
Fixed generic Sonar issue in the clamp project

Fixed Sonar issue:
- name convection for static field in AuthorizationController
- optimize condition flow in AuthorizationController
- remove not used import in BlueprintParserMappingConfiguration
- remove not used field in AuthorizationController, SdcControllersConfiguration, CldsService
- add private constructor to the AwtUtils
- change redundant EnableAutoConfiguration annotation to SpringBootApplication annotation
- remove duplications of code in the CldsDao

Change-Id: I49d8be9ec44b5930f76bace0fc9d8cf61ee000f5
Issue-ID: CLAMP-346
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
5 years agoMerge "Fix Checkstyle issues"
Xue Gao [Fri, 19 Apr 2019 11:35:55 +0000 (11:35 +0000)]
Merge "Fix Checkstyle issues"

5 years agoMerge "Improve test coverage in TcaRequestFormatter"
Xue Gao [Fri, 19 Apr 2019 07:49:10 +0000 (07:49 +0000)]
Merge "Improve test coverage in TcaRequestFormatter"

5 years agoFix Checkstyle issues 51/85551/2
Vidyashree Rama [Wed, 17 Apr 2019 09:37:29 +0000 (15:07 +0530)]
Fix Checkstyle issues

Fix Checkstyle issues

Change-Id: I67fa832cc1ac3e4992837a8022bb7673ab81913d
Issue-ID: CLAMP-328
Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
5 years agoImprove test coverage in TcaRequestFormatter 82/85682/2
m.kowalski3 [Thu, 18 Apr 2019 11:45:08 +0000 (13:45 +0200)]
Improve test coverage in TcaRequestFormatter

Issue-ID: CLAMP-349
Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
Change-Id: I617261a1a71f0a0007286be9cf09024c71419c68

5 years agoRemoved unused fields from AbstractModelElement 65/85665/1
p.borelowski [Thu, 18 Apr 2019 07:28:01 +0000 (09:28 +0200)]
Removed unused fields from AbstractModelElement

Removed 3 unused private fields from the class
org.onap.clamp.clds.model.properties.AbstractModelElement
along with the following changes within 4 other classes and 1 test class

Change-Id: Id4cc30964ca5478add446601f642c6c0ed190ab7
Issue-ID: CLAMP-347
Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
5 years agoMerge "Removed unused code from GuardPolicyDelegate and GuardPolicyDeleteDelegate"
Xue Gao [Wed, 17 Apr 2019 12:53:13 +0000 (12:53 +0000)]
Merge "Removed unused code from GuardPolicyDelegate and GuardPolicyDeleteDelegate"

5 years agoFixed Sonar issues in the onap.clamp.clds.client packages 65/85565/1
k.kedron [Wed, 17 Apr 2019 12:20:01 +0000 (14:20 +0200)]
Fixed Sonar issues in the onap.clamp.clds.client packages

Fixed Sonar issues:
 - change the HasMap to more optimized(in this case) EnumMap in GuardPolicyAttributesConstructor
 - remove no necessary casting in the TcaRequestFormatter
 - remove not used value in the DcaeDispatcherServices
Additionally correct javadoc in PolicyClient.

Change-Id: I6435fe093248073fee9749366e98d5720a8fe375
Issue-ID: CLAMP-346
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
5 years agoRemoved unused code from GuardPolicyDelegate and GuardPolicyDeleteDelegate 63/85563/2
p.borelowski [Wed, 17 Apr 2019 11:37:07 +0000 (13:37 +0200)]
Removed unused code from GuardPolicyDelegate and GuardPolicyDeleteDelegate

Removed unused code from GuardPolicyDelegate
and GuardPolicyDeleteDelegate according to Sonar

Change-Id: I9a58765b4bcf7015b0ca2e3b1dce272358657052
Issue-ID: CLAMP-345
Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
5 years agoFixed Sonar vulnerabilities in CldsDao 80/85480/2
k.kedron [Tue, 16 Apr 2019 14:34:26 +0000 (16:34 +0200)]
Fixed Sonar vulnerabilities in CldsDao

Fixed Sonar vulnerabilities in CldsDao:
- used StringBuilder instead of String concatenation to build the query

Change-Id: Idc5fb50eae240352edd93329398eca0ef1b3d1f8
Issue-ID: CLAMP-344
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
5 years agoMerge "Removed code duplication in PolicyClient"
Xue Gao [Tue, 16 Apr 2019 11:44:11 +0000 (11:44 +0000)]
Merge "Removed code duplication in PolicyClient"

5 years agoRemoved code duplication in PolicyClient 31/85431/1
k.kedron [Tue, 16 Apr 2019 08:53:44 +0000 (10:53 +0200)]
Removed code duplication in PolicyClient

Removed code duplication in PolicyClient according to Sonar analysis

Change-Id: I7fd7bdee228eb80661a8416ffc0aab0b2e8c7e04
Issue-ID: CLAMP-343
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
5 years agoFix Checkstyle issues 12/85412/2
Vidyashree Rama [Tue, 16 Apr 2019 05:22:51 +0000 (10:52 +0530)]
Fix Checkstyle issues

Fix Checkstyle issues

Issue-ID: CLAMP-328

Change-Id: Idecd87abbf3765a7e77e2219df1063e732bb04b0
Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
5 years agoFix PolicyID for DCAE 86/85086/1
sebdet [Thu, 11 Apr 2019 16:02:53 +0000 (18:02 +0200)]
Fix PolicyID for DCAE

Replace PolicyID by the real microservice policy name as it's known in
the csar installer code

Issue-ID: CLAMP-304
Change-Id: Ifbd1796cb52b6271218fe63927af32ec392ed81a
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoAdd Start/stop routes 84/85084/1
sebdet [Thu, 11 Apr 2019 15:58:36 +0000 (17:58 +0200)]
Add Start/stop routes

Add Start/stop routes for policy control, it's obviously working the PDP
group

Issue-ID: CLAMP-303
Change-Id: I16cafa46ee39b6114af9b36f7382b7c2401edaf1
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoAdd Log in UI 83/85083/1
sebdet [Thu, 11 Apr 2019 15:55:47 +0000 (17:55 +0200)]
Add Log in UI

Add log in UI from Loop logs table so that user see what has been done

Issue-ID: CLAMP-313
Change-Id: I673a46e7b867852179b32d163241de67b300b07c
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoAdd pdp group 69/84969/1
sebdet [Thu, 11 Apr 2019 00:07:44 +0000 (02:07 +0200)]
Add pdp group

Add pdp group code to add/remove policies from active PDP group

Issue-ID: CLAMP-303
Change-Id: I3fcffd229bc7703231b813948aac14ce63437127
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoAdd Loop name 68/84968/1
sebdet [Thu, 11 Apr 2019 00:05:56 +0000 (02:05 +0200)]
Add Loop name

Add Loop name in UI + removal of useless javascript code

Issue-ID: CLAMP-313
Change-Id: Iba72f3bfcf2a0bf2731120c77b17f41ed7ac77f6
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoMerge changes I8c744a32,Id357ac37,I7df87e14,I2abd173c,Ie53b1dfd
Eddy Hautot [Wed, 10 Apr 2019 15:57:33 +0000 (15:57 +0000)]
Merge changes I8c744a32,Id357ac37,I7df87e14,I2abd173c,Ie53b1dfd

* changes:
  Add timeout + Creds
  Remove SQL Dump
  Add delete support
  Rework Gson in Camel
  PDP Group support

5 years agoAdd timeout + Creds 79/84879/1
sebdet [Wed, 10 Apr 2019 13:29:16 +0000 (15:29 +0200)]
Add timeout + Creds

Add Creds and timeout to queries done to policy Engine in CAMEL routes

Issue-ID: CLAMP-303
Change-Id: I8c744a3272e139e5968751bcece7c53612c23904
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoRemove SQL Dump 77/84877/1
sebdet [Wed, 10 Apr 2019 13:27:46 +0000 (15:27 +0200)]
Remove SQL Dump

Remove SQL dump in logs done by hibernate

Issue-ID: CLAMP-254
Change-Id: Id357ac37dfa475a9774d0b2c3b5f254c84caa9d7
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoAdd delete support 61/84861/1
sebdet [Wed, 10 Apr 2019 12:07:35 +0000 (14:07 +0200)]
Add delete support

Move delete code to Camel way so that it's more flexible + introduce
removal of the loop + test

Issue-ID: CLAMP-315
Change-Id: I7df87e1441d4511ad6b42d0d269c3b2c8c7d8eef
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoRework Gson in Camel 48/84848/1
sebdet [Wed, 10 Apr 2019 10:39:53 +0000 (12:39 +0200)]
Rework Gson in Camel

Create new Camel DataFormat class to handle the Clamp JSon model
specific type

Issue-ID: CLAMP-303
Change-Id: I2abd173c7d2a96a03d333a8def4307bc3cf082d7
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
5 years agoPDP Group support 19/84719/1
sebdet [Tue, 9 Apr 2019 16:10:32 +0000 (18:10 +0200)]
PDP Group support

Add support to push all policies to pdp group + log

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