policy/clamp.git
2 years agoupdate references in policy/clamp pom 41/132741/1
liamfallon [Thu, 15 Dec 2022 12:39:44 +0000 (12:39 +0000)]
update references in policy/clamp pom

updated references in the policy/clamp pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic09ff93af8a7142f7149f79aac344efc389b4082

2 years agoMerge "Server stubs for acm runtime"
Liam Fallon [Thu, 15 Dec 2022 09:03:28 +0000 (09:03 +0000)]
Merge "Server stubs for acm runtime"

2 years agoServer stubs for acm runtime 95/132695/2
lapentafd [Mon, 12 Dec 2022 14:28:41 +0000 (14:28 +0000)]
Server stubs for acm runtime

- Added spring profile "stub"
- Added Commission and Instantiation stub controllers
- Added util function that decodes the object from the openapi/examples
- Added 2 missing examples
- Added Unit Test for stub controllers

Issue-ID: POLICY-4143
Change-Id: Ife91a74e93df4e9db55e17ca9d1793a7ed289e92
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoReplace ToscaConceptIdentifier with UUID in Participant Messages ACM 96/132696/2
FrancescoFioraEst [Tue, 13 Dec 2022 13:57:47 +0000 (13:57 +0000)]
Replace ToscaConceptIdentifier with UUID in Participant Messages ACM

Replace in all messages the reference to Automation Composition
ToscaConceptIdentifier(name, version) with instanceId(UUID).

Issue-ID: POLICY-4479
Change-Id: I7bc9a7494103b9c1752a1e2c6f6d5a527196913d
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Fix intermittent clamp test failure"
Liam Fallon [Tue, 13 Dec 2022 14:12:45 +0000 (14:12 +0000)]
Merge "Fix intermittent clamp test failure"

2 years agoMerge "Link the existing InstantiationController with the generated code"
Ramesh Murugan Iyer [Tue, 13 Dec 2022 09:22:13 +0000 (09:22 +0000)]
Merge "Link the existing InstantiationController with the generated code"

2 years agoFix intermittent clamp test failure 75/132675/2
lapentafd [Mon, 12 Dec 2022 15:06:45 +0000 (15:06 +0000)]
Fix intermittent clamp test failure

Issue-ID: POLICY-4476
Change-Id: I93a14336fa4197c241ad5880e2f597820fd809ce
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoMerge "Add support for instance properties"
Pamela Dragosh [Mon, 12 Dec 2022 15:19:14 +0000 (15:19 +0000)]
Merge "Add support for instance properties"

2 years agoMerge "Adding examples for openapi specification"
Pamela Dragosh [Mon, 12 Dec 2022 15:17:57 +0000 (15:17 +0000)]
Merge "Adding examples for openapi specification"

2 years agoLink the existing InstantiationController with the generated code 60/132660/1
FrancescoFioraEst [Fri, 9 Dec 2022 14:38:10 +0000 (14:38 +0000)]
Link the existing InstantiationController with the generated code

Issue-ID: POLICY-4467
Change-Id: Ibe9206ee4189e73357271211d83b0603edfb86da
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Increase code coverage of k8s-participant module"
Liam Fallon [Fri, 9 Dec 2022 10:43:39 +0000 (10:43 +0000)]
Merge "Increase code coverage of k8s-participant module"

2 years agoMerge "Clamp models code coverage"
Liam Fallon [Fri, 9 Dec 2022 10:41:35 +0000 (10:41 +0000)]
Merge "Clamp models code coverage"

2 years agoMerge "Add instanceId support in AutomationCompositionProvider"
Liam Fallon [Fri, 9 Dec 2022 10:41:23 +0000 (10:41 +0000)]
Merge "Add instanceId support in AutomationCompositionProvider"

2 years agoAdd support for instance properties 37/132637/1
FrancescoFioraEst [Thu, 8 Dec 2022 12:41:49 +0000 (12:41 +0000)]
Add support for instance properties

Issue-ID: POLICY-4483
Change-Id: I6ca953e05e74d68262507b393fb6415573fa3eab
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoClamp models code coverage 34/132634/1
lapentafd [Thu, 8 Dec 2022 12:12:10 +0000 (12:12 +0000)]
Clamp models code coverage

Issue-ID: POLICY-4476
Change-Id: Ie34f278cf999dd2046ccdff6b97936b42ad19355
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoIncrease code coverage of k8s-participant module 32/132632/1
rameshiyer27 [Tue, 6 Dec 2022 17:04:32 +0000 (17:04 +0000)]
Increase code coverage of k8s-participant module

Unit tests with static mocks are being ignored in the build causing drop in the code coverage of k8s participant module. Static implementation in the code has been changed as it is not required.
Code coverage improved to 85%

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

2 years agoAdd instanceId support in AutomationCompositionProvider 27/132627/2
FrancescoFioraEst [Wed, 7 Dec 2022 16:22:45 +0000 (16:22 +0000)]
Add instanceId support in AutomationCompositionProvider

As part of the endpoint refactoring of InstantiationController,
AutomationCompositionProvider have to support instanceId
in CRUD operations. InstanceId will be temporary add as normal field
and it will became primary key in next Jira task.

Issue-ID: POLICY-4478
Change-Id: I0f7a1ab7683671403831cffdfe6db37eea569c74
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdding examples for openapi specification 30/132630/1
lapentafd [Tue, 6 Dec 2022 21:34:12 +0000 (21:34 +0000)]
Adding examples for openapi specification

Issue-ID: POLICY-4435
Change-Id: Icc45000058a579a076bbb0c2ae9bf3e66bce6f67
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoRemove test statistics json files 29/132629/1
FrancescoFioraEst [Thu, 8 Dec 2022 09:47:30 +0000 (09:47 +0000)]
Remove test statistics json files

Issue-ID: POLICY-4481
Change-Id: Idd84f453315bce3865080979aceff3a188e36de5
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Fix dockersuse profile"
Liam Fallon [Wed, 7 Dec 2022 15:56:36 +0000 (15:56 +0000)]
Merge "Fix dockersuse profile"

2 years agoMerge "A1pms: Fix Code smells and coverage"
Liam Fallon [Wed, 7 Dec 2022 15:30:54 +0000 (15:30 +0000)]
Merge "A1pms: Fix Code smells and coverage"

2 years agoMerge "Clamp models utils code coverage"
Liam Fallon [Wed, 7 Dec 2022 15:30:40 +0000 (15:30 +0000)]
Merge "Clamp models utils code coverage"

2 years agoIncrease code coverage in runtime ACM 13/132613/1
FrancescoFioraEst [Tue, 6 Dec 2022 15:44:05 +0000 (15:44 +0000)]
Increase code coverage in runtime ACM

Issue-ID: POLICY-4475
Change-Id: I936d6f0c20f774e37cef8dfbccaecb8f85660309
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoFix dockersuse profile 97/132597/1
saul.gill [Tue, 6 Dec 2022 15:27:11 +0000 (15:27 +0000)]
Fix dockersuse profile

Addition of mvn properties to make Dockerfile configurable
caused ignoring of dockersuse properties.
Removed overriding properties and manually tested.
Added dockerfile names to docker profile too.

Issue-ID: POLICY-4473
Change-Id: Ic7432524127500c7533d0d72172027142de1ee4c
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoA1pms: Fix Code smells and coverage 95/132595/1
aravind.est [Tue, 6 Dec 2022 15:42:08 +0000 (15:42 +0000)]
A1pms: Fix Code smells and coverage

Issue-ID: CCSDK-3816
Signed-off-by: aravind.est <aravindhan.a@est.tech>
Change-Id: Ifa9a5d538d13e59ec842edee6d3cbc43a0f0df1d

2 years agoClamp models utils code coverage 94/132594/1
lapentafd [Tue, 6 Dec 2022 12:13:22 +0000 (12:13 +0000)]
Clamp models utils code coverage

Issue-ID: POLICY-4476
Change-Id: Ia18a80565abbf8e9aaeba270f60b6984aa8078ef
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoMerge "Replace SpringFox with SpringDoc in CLAMP"
Liam Fallon [Tue, 6 Dec 2022 15:46:31 +0000 (15:46 +0000)]
Merge "Replace SpringFox with SpringDoc in CLAMP"

2 years agoReplace SpringFox with SpringDoc in CLAMP 59/132559/4
liamfallon [Thu, 1 Dec 2022 15:24:57 +0000 (15:24 +0000)]
Replace SpringFox with SpringDoc in CLAMP

This commit:
- Remove springfox from CLAMP
- updates the commissioning, AC Element, and K8S particiapnt to use the
  generated interface rather than the hard coded one
- removes swagger annotations from handwritten code
- implements SpringDoc for the <base_path>/v3/api-docs on endpoints

Issue-ID: POLICY-4404
Change-Id: I49f48bc7828cb49dab854ef9ed16a9aa377983e1
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoMerge "Refactor POST and PUT Automation Composition"
Liam Fallon [Mon, 5 Dec 2022 17:36:04 +0000 (17:36 +0000)]
Merge "Refactor POST and PUT Automation Composition"

2 years agoMerge "Save ToscaServiceTemplate as Json in ACM"
Liam Fallon [Mon, 5 Dec 2022 17:35:54 +0000 (17:35 +0000)]
Merge "Save ToscaServiceTemplate as Json in ACM"

2 years agoRefactor POST and PUT Automation Composition 45/132545/1
FrancescoFioraEst [Thu, 1 Dec 2022 09:15:22 +0000 (09:15 +0000)]
Refactor POST and PUT Automation Composition

Refactor POST and PUT Automation Composition to handle
a single resource instead of a list.

Issue-ID: POLICY-4470
Change-Id: Ic7025e1eafdd197487bc5268993ec5e3e5520025
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Add A1 PMS participant"
Liam Fallon [Wed, 30 Nov 2022 15:10:38 +0000 (15:10 +0000)]
Merge "Add A1 PMS participant"

2 years agoMerge "Move git-commit-id-maven-plugin to parent pom"
Liam Fallon [Wed, 30 Nov 2022 14:22:22 +0000 (14:22 +0000)]
Merge "Move git-commit-id-maven-plugin to parent pom"

2 years agoSave ToscaServiceTemplate as Json in ACM 33/132533/1
FrancescoFioraEst [Mon, 28 Nov 2022 17:31:45 +0000 (17:31 +0000)]
Save ToscaServiceTemplate as Json in ACM

Save ToscaServiceTemplate as Json using DocToscaServiceTemplate
as model.

Issue-ID: POLICY-4468
Change-Id: I4c6f49012d091b87f0da4db2edcd5f16af2f4d5c
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Link the AutomationComposition with AutomationCompositionDefinition"
Liam Fallon [Mon, 28 Nov 2022 14:59:43 +0000 (14:59 +0000)]
Merge "Link the AutomationComposition with AutomationCompositionDefinition"

2 years agoAdd A1 PMS participant 49/132449/4
aravind.est [Mon, 21 Nov 2022 15:26:58 +0000 (15:26 +0000)]
Add A1 PMS participant

Issue-ID: CCSDK-3816
Signed-off-by: aravind.est <aravindhan.a@est.tech>
Change-Id: I00c04542f5ec4672b1c3a29ca32477bf5d2ca336

2 years agoMove git-commit-id-maven-plugin to parent pom 66/132466/1
danielhanrahan [Fri, 25 Nov 2022 14:26:42 +0000 (14:26 +0000)]
Move git-commit-id-maven-plugin to parent pom

The POM config for git-commit-id-maven-plugin is duplicated in each
repo, so the config is moved to policy/parent

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

2 years agoLink the AutomationComposition with AutomationCompositionDefinition 57/132457/1
FrancescoFioraEst [Thu, 24 Nov 2022 10:41:40 +0000 (10:41 +0000)]
Link the AutomationComposition with AutomationCompositionDefinition

In AutomationComposition replace the link to ToscaNodeTemplate
whit a link to AutomationCompositionDefinition
using compositionId.

Issue-ID: POLICY-4464
Change-Id: I66878f04ef93fb0754d0066e78bd074ce082f891
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd model to save ToscaServiceTemplate as Json in ACM 22/132422/1
FrancescoFioraEst [Wed, 23 Nov 2022 10:04:55 +0000 (10:04 +0000)]
Add model to save ToscaServiceTemplate as Json in ACM

Issue-ID: POLICY-4462
Change-Id: I81a5a8922b0e980143a8da4b6d0572767620fb36
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoLink the existing CommissioningController with the generated code 57/132257/5
FrancescoFioraEst [Tue, 15 Nov 2022 17:03:34 +0000 (17:03 +0000)]
Link the existing CommissioningController with the generated code

Link the existing CommissioningController
endpoint implementation code with the generated code in Acm.

Issue-ID: POLICY-4454
Change-Id: Ie10296b6af8c8bfdbfa7f54714b22ca4804a2eef
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoUpdate participans to swagger v3 93/132293/1
FrancescoFioraEst [Wed, 16 Nov 2022 15:28:44 +0000 (15:28 +0000)]
Update participans to swagger v3

Participant Kubernetes Rest Controller is enabled only for testing
and ACM Element is an application for testing,
so they not need yaml endpoints definition and Contract testing.

Issue-ID: POLICY-4459
Change-Id: Ibdab1b1fb6522e615eba182e8e3a332dec5b96fc
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Remove redundant endpoints in ACM"
Ramesh Murugan Iyer [Tue, 15 Nov 2022 12:37:49 +0000 (12:37 +0000)]
Merge "Remove redundant endpoints in ACM"

2 years agoMerge "Modify OpenAPI yaml to fix swagger editor errors"
Liam Fallon [Mon, 14 Nov 2022 20:12:42 +0000 (20:12 +0000)]
Merge "Modify OpenAPI yaml to fix swagger editor errors"

2 years agoMerge "Add AutomationCompositionDefinition model"
Ramesh Murugan Iyer [Mon, 14 Nov 2022 16:40:01 +0000 (16:40 +0000)]
Merge "Add AutomationCompositionDefinition model"

2 years agoRemove redundant endpoints in ACM 86/132186/1
FrancescoFioraEst [Mon, 14 Nov 2022 10:49:34 +0000 (10:49 +0000)]
Remove redundant endpoints in ACM

Remove redundant endpoints in ACM
not present in the new generated Api code.

Issue-ID: POLICY-4453
Change-Id: I4b843c2637e934f8a29f71d8031bdfe903ff20dc
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoModify OpenAPI yaml to fix swagger editor errors 48/132148/3
liamfallon [Fri, 11 Nov 2022 13:43:16 +0000 (13:43 +0000)]
Modify OpenAPI yaml to fix swagger editor errors

Using this approach for schemas fixes the errors in the online Swagger
Editor and the code generation still obeys the import mappings and uses
the Java classes.

Issue-ID: POLICY-4450
Change-Id: Ifc3064f8258c4281c9e6bfde16a812ffccd125c1
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoAdd AutomationCompositionDefinition model 43/132143/1
FrancescoFioraEst [Thu, 10 Nov 2022 12:58:30 +0000 (12:58 +0000)]
Add AutomationCompositionDefinition model

Add AutomationCompositionDefinition model
for Commissioned Automation Composition endpoints.

Issue-ID: POLICY-4452
Change-Id: I73fc5b06cb75ed578a40ea618f1f5a0eec616b08
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAlign Code Generation to Commissioned Automation Composition endpoints 30/132130/1
FrancescoFioraEst [Thu, 10 Nov 2022 11:52:31 +0000 (11:52 +0000)]
Align Code Generation to Commissioned Automation Composition endpoints

Issue-ID: POLICY-4450
Change-Id: Ic1bbc83611c2fb743f71d1d7ddb735756a37a6e6
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Remove clamp-backend url forwarding support"
Liam Fallon [Thu, 10 Nov 2022 13:02:56 +0000 (13:02 +0000)]
Merge "Remove clamp-backend url forwarding support"

2 years agoRemove clamp-backend url forwarding support 07/132107/1
liamfallon [Wed, 9 Nov 2022 18:10:03 +0000 (18:10 +0000)]
Remove clamp-backend url forwarding support

The functionality to forward the requests from the UI to the other
microservices has been moved to the gui-server microservice.

Issue-ID: POLICY-4138
Change-Id: I3120e54894ab51194b20098c4c4d63679c15b06f
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoFix typo in ACM swagger 94/132094/2
lapentafd [Wed, 9 Nov 2022 11:05:52 +0000 (11:05 +0000)]
Fix typo in ACM swagger

Added code error 406 for POST, and fix typo

Issue-ID: POLICY-4430
Change-Id: I8328830d87cdc98a8b6caa222c062a90583d2912
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoAdd Maven Build for Code Generation 39/132039/1
lapentafd [Wed, 26 Oct 2022 15:43:00 +0000 (16:43 +0100)]
Add Maven Build for Code Generation

Issue-ID: POLICY-4159
Change-Id: I51b1dd182c878a44e1b3f8c205221ae434459f5a
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoMerge "Add ACM OpenApi Specifications"
Liam Fallon [Tue, 8 Nov 2022 09:15:47 +0000 (09:15 +0000)]
Merge "Add ACM OpenApi Specifications"

2 years agoAdd ACM OpenApi Specifications 51/131951/7
lapentafd [Wed, 2 Nov 2022 10:08:16 +0000 (10:08 +0000)]
Add ACM OpenApi Specifications

Commissioning and Instantiation endpoints

Issue-ID: POLICY-4430
Change-Id: I69d8525615c165dc450da7d5bfcc4953e2d7b3bc
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoAdd Prometheus metric messages for ACM participants 95/131995/1
FrancescoFioraEst [Mon, 29 Aug 2022 09:15:45 +0000 (10:15 +0100)]
Add Prometheus metric messages for ACM participants

Issue-ID: POLICY-4433
Change-Id: I625c9ee26bb2451e0dcfbb4bbf7288dcc0effb50
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRemove old implementation of statistics in ACM models 31/131931/1
FrancescoFioraEst [Fri, 28 Oct 2022 09:10:33 +0000 (10:10 +0100)]
Remove old implementation of statistics in ACM models

The old implementation of statistics in ACM
can be removed due the Prometheus metrics support.

Issue-ID: POLICY-4422
Change-Id: Ia2681b9a3ca59d532cd5c0d1ce4edd3e8f9f98e3
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Remove old implementation of statistics in ACM participants"
Liam Fallon [Sun, 30 Oct 2022 20:31:34 +0000 (20:31 +0000)]
Merge "Remove old implementation of statistics in ACM participants"

2 years agoRemove old implementation of statistics in ACM participants 96/131896/1
FrancescoFioraEst [Wed, 26 Oct 2022 15:29:50 +0000 (16:29 +0100)]
Remove old implementation of statistics in ACM participants

The old implementation of statistics in ACM-participants
can be removed due the Prometheus metrics support.

Issue-ID: POLICY-4420
Change-Id: I0785b269614aba51f94e71a3fe931541c1918b0c
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRemove old implementation of statistics in ACM-runtime 74/131874/2
FrancescoFioraEst [Wed, 26 Oct 2022 13:34:46 +0000 (14:34 +0100)]
Remove old implementation of statistics in ACM-runtime

The old implementation of statistics in ACM-runtime
can be removed due the Prometheus metrics support.

Issue-ID: POLICY-4419
Change-Id: Idecad04b4a5dd32ce2ebc1149eb99e4fdc6f0db1
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoSet snapshot and/or references of policy/clamp for new release 99/131699/1
liamfallon [Fri, 21 Oct 2022 16:45:53 +0000 (17:45 +0100)]
Set snapshot and/or references of policy/clamp for new release

policy/clamp updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic5dba007602ae27989cc20ef59f512b1e06fa892

2 years agoUpdate snapshot and/or references of policy/clamp to latest snapshots 52/131652/1
liamfallon [Fri, 21 Oct 2022 09:50:41 +0000 (10:50 +0100)]
Update snapshot and/or references of policy/clamp to latest snapshots

policy/clamp updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I230f8695c7a87f4bbffdcc3102c1922e6354f804

2 years agoRelease docker images for policy/clamp: 6.3.1 45/131645/1
liamfallon [Fri, 21 Oct 2022 09:19:11 +0000 (10:19 +0100)]
Release docker images for policy/clamp: 6.3.1

This commit releases docker images for repo policy/clamp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I5d882daf43e9983690b7f10f5f056abdf778a75e

2 years agoRelease policy/clamp: 6.3.1 38/131638/1
liamfallon [Fri, 21 Oct 2022 08:38:17 +0000 (09:38 +0100)]
Release policy/clamp: 6.3.1

This commit releases repo policy/clamp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I29a2ed13ac8ce3178e9fb049dda42dea4fc51a5c

2 years agoupdate references in policy/clamp pom 30/131630/1
liamfallon [Fri, 21 Oct 2022 07:06:07 +0000 (08:06 +0100)]
update references in policy/clamp pom

updated references in the policy/clamp pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I1bc7f5544d7d479ed844a74c72a618cfe19e4a42

2 years agoClean up dependencies in CLAMP POMs 77/131477/1
liamfallon [Fri, 14 Oct 2022 12:07:36 +0000 (13:07 +0100)]
Clean up dependencies in CLAMP POMs

External dependencies should in general be in the root POMs of repos and
internal dependencies only in child POMs. There are exceptions whare a
child modle is dealing with a specific technology. This commit tidies up
the CLAMP POMs.

Issue-ID: POLICY-4289
Change-Id: I0493daf1d737222bd724333ab8baab9226da6121
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUse spring-boot-starter-actuator managed version 33/131433/1
liamfallon [Tue, 11 Oct 2022 18:21:12 +0000 (19:21 +0100)]
Use spring-boot-starter-actuator managed version

Issue-ID: POLICY-4393
Change-Id: I31399942e603b2f29921c38c7dc1b9ab18be0d09
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoMake the ACM REST endpoint preamble configurable via spring 12/131412/1
rameshiyer27 [Mon, 10 Oct 2022 14:12:40 +0000 (15:12 +0100)]
Make the ACM REST endpoint preamble configurable via spring

ACM REST endpoint preamble "/onap/policy/clamp/acm/" needs to be
configurable by the user via spring boot properties file.

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

2 years agoIncrease code coverage in runtime-acm 73/131273/1
FrancescoFioraEst [Wed, 28 Sep 2022 12:24:50 +0000 (13:24 +0100)]
Increase code coverage in runtime-acm

Issue-ID: POLICY-4370
Change-Id: If017da7bfe555dcbc9c7be62628751dbf9707623
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Add Kafka dependency"
Liam Fallon [Tue, 27 Sep 2022 22:26:36 +0000 (22:26 +0000)]
Merge "Add Kafka dependency"

2 years agoMerge "Increase code coverage in Acm element"
Liam Fallon [Tue, 27 Sep 2022 17:34:49 +0000 (17:34 +0000)]
Merge "Increase code coverage in Acm element"

2 years agoMerge "Improve code coverage on policy-participant module in clamp"
Liam Fallon [Tue, 27 Sep 2022 17:34:41 +0000 (17:34 +0000)]
Merge "Improve code coverage on policy-participant module in clamp"

2 years agoIncrease code coverage in Acm element 27/131227/1
FrancescoFioraEst [Mon, 26 Sep 2022 15:47:07 +0000 (16:47 +0100)]
Increase code coverage in Acm element

Issue-ID: POLICY-4367
Change-Id: I63e1bede019c102b7f448935f63eb9991e54e128
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoImprove code coverage on policy-participant module in clamp 23/131223/1
rameshiyer27 [Tue, 27 Sep 2022 06:40:02 +0000 (07:40 +0100)]
Improve code coverage on policy-participant module in clamp

Added junits for handler and policy client classes which improves the
overall module covergae from 38.8% to 92%

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

2 years agoAdd Kafka dependency 26/131226/1
Sirisha_Manchikanti [Mon, 26 Sep 2022 14:20:11 +0000 (15:20 +0100)]
Add Kafka dependency

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

2 years agoRefactor Mock Server in httpParticipant Unit Tests 85/131185/3
FrancescoFioraEst [Mon, 26 Sep 2022 08:42:40 +0000 (09:42 +0100)]
Refactor Mock Server in httpParticipant Unit Tests

Replace MockServerRest, that failing and causing all tests ignored.

Issue-ID: POLICY-4366
Change-Id: Icc86cf26f4cd329b0d24b3dd05b85143e6621517
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoUpdate snapshot and/or references of policy/clamp to latest snapshots 40/131140/1
liamfallon [Fri, 23 Sep 2022 09:59:06 +0000 (10:59 +0100)]
Update snapshot and/or references of policy/clamp to latest snapshots

policy/clamp updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I37502e4d1d64661ae82b2a9a92330691ec69e634

2 years agoRelease docker images for policy/clamp: 6.3.0 30/131130/2
liamfallon [Fri, 23 Sep 2022 08:44:24 +0000 (09:44 +0100)]
Release docker images for policy/clamp: 6.3.0

This commit releases docker images for repo policy/clamp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia3f21de85c78e62650c9fe27cbb4c149c664e950
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRelease policy/clamp: 6.3.0 21/131121/1
liamfallon [Fri, 23 Sep 2022 06:50:20 +0000 (07:50 +0100)]
Release policy/clamp: 6.3.0

This commit releases repo policy/clamp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ice70fa0125041b9a16350808571e1aee21980eb1

2 years agoupdate references in policy/clamp pom 13/131113/1
liamfallon [Thu, 22 Sep 2022 22:22:10 +0000 (23:22 +0100)]
update references in policy/clamp pom

updated references in the policy/clamp pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Icff82d13846c151c0908cba3a6e8892fb4d11b7a

2 years agoFix PodStatus Validator failing in K8sParticipant 58/130958/3
FrancescoFioraEst [Tue, 13 Sep 2022 14:54:10 +0000 (15:54 +0100)]
Fix PodStatus Validator failing in K8sParticipant

Fix PodStatus Validator failing in K8sParticipant using service template
for Test and Verification of ACM State Management.

Issue-ID: POLICY-4355
Change-Id: I63f8ed2c4991422dd43749151387ff54ba7d6071
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoFix log of Element container is not visible at Standard Output 26/130726/4
FrancescoFioraEst [Mon, 5 Sep 2022 12:17:59 +0000 (13:17 +0100)]
Fix log of Element container is not visible at Standard Output

Issue-ID: POLICY-4351
Change-Id: I5f06c7158654fc14c2549772f8416eb1fc5bb07b
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRemove inactive committers from INFO.yaml 33/130833/1
liamfallon [Fri, 9 Sep 2022 09:23:41 +0000 (10:23 +0100)]
Remove inactive committers from INFO.yaml

Remove inactive committers from INFO.yaml

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4354
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I7dfe1f25d4fe0732785b262b60bcc8737afbb15e

2 years agoAdd helm chart for test ACM element microservice 29/130529/4
rameshiyer27 [Tue, 30 Aug 2022 21:29:55 +0000 (22:29 +0100)]
Add helm chart for test ACM element microservice

Adding helm chart for the ac element microservice under the examples
directory for testing ACM workflow. This helm chart can be uploaded
to a local helm repository and deployed using kubernetes participant
in ACM. The input configuration is provided in the Tosca service template
for ACM.

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

2 years agoMerge "Refactor Element ACM for prometheus configuration"
Liam Fallon [Fri, 2 Sep 2022 17:32:13 +0000 (17:32 +0000)]
Merge "Refactor Element ACM for prometheus configuration"

2 years agoAllow setting external dockerfiles for clamp 74/130674/1
danielhanrahan [Fri, 2 Sep 2022 12:07:33 +0000 (13:07 +0100)]
Allow setting external dockerfiles for clamp

Added maven properties to allow overriding each dockerfile during build,
for example:
 mvn clean install -Pdocker \
   -Ddocker.clamp-runtime.dockerFile=/path/to/Dockerfile

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

2 years agoRefactor Element ACM for prometheus configuration 95/130595/3
FrancescoFioraEst [Wed, 31 Aug 2022 13:12:15 +0000 (14:12 +0100)]
Refactor Element ACM for prometheus configuration

Issue-ID: POLICY-4337
Change-Id: Ic8e43748bc8ffc9a9513f7f278afae9f3f393bc9
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoFix Clamp build fails in policy participant module 25/130625/1
FrancescoFioraEst [Thu, 1 Sep 2022 11:03:39 +0000 (12:03 +0100)]
Fix Clamp build fails in policy participant module

Fix Clamp build fails in policy participant module
while processing policies without topology template.

Issue-ID: POLICY-4339
Change-Id: I94f2f0e0acede233f33668e2b083c58e15181290
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd Prometheus metric messages for ACM runtime 36/130536/1
FrancescoFioraEst [Wed, 31 Aug 2022 09:38:10 +0000 (10:38 +0100)]
Add Prometheus metric messages for ACM runtime

Issue-ID: POLICY-4336
Change-Id: I8f89f795625d8802ee6f3836c6fc4b66f0db75db
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Add new topic for publishing events in Acm Element Impl"
Liam Fallon [Mon, 29 Aug 2022 20:42:38 +0000 (20:42 +0000)]
Merge "Add new topic for publishing events in Acm Element Impl"

2 years agoAdd Prometheus counters for AC element 49/130449/2
FrancescoFioraEst [Wed, 24 Aug 2022 12:30:53 +0000 (13:30 +0100)]
Add Prometheus counters for AC element

Issue-ID: POLICY-4327
Change-Id: I8d17da711c8ba980e7f42ac611ee9bb858dccea9
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd new topic for publishing events in Acm Element Impl 56/130456/2
rameshiyer27 [Fri, 26 Aug 2022 09:56:31 +0000 (10:56 +0100)]
Add new topic for publishing events in Acm Element Impl

Listening and publishing on different topics for better readability of
logs and segregation of events between PDP and AC element.

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

2 years agoMerge "Create Unit Tests for Message Handler and Activator"
Ramesh Murugan Iyer [Thu, 25 Aug 2022 16:55:23 +0000 (16:55 +0000)]
Merge "Create Unit Tests for Message Handler and Activator"

2 years agoCreate Unit Tests for Message Handler and Activator 20/130320/3
FrancescoFioraEst [Wed, 17 Aug 2022 08:52:46 +0000 (09:52 +0100)]
Create Unit Tests for Message Handler and Activator

Issue-ID: POLICY-4325
Change-Id: I1f91dec71974bd1169e3310d59057a6b96061db9
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd REST Endpoints for ACM test microservice 85/130385/2
rameshiyer27 [Fri, 19 Aug 2022 09:08:16 +0000 (10:08 +0100)]
Add REST Endpoints for ACM test microservice

REST APIs for activating, deactivating and fetching the element config.

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

2 years agoCreate Message Handler and Activator for the test microservice 89/130189/4
FrancescoFioraEst [Thu, 4 Aug 2022 09:35:08 +0000 (10:35 +0100)]
Create Message Handler and Activator for the test microservice

Issue-ID: POLICY-4319
Change-Id: If096467ad717fdeaf70e6a9079c531a201e6cec7
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Create Dockerfile for the test microservice"
Ramesh Murugan Iyer [Fri, 5 Aug 2022 08:40:27 +0000 (08:40 +0000)]
Merge "Create Dockerfile for the test microservice"

2 years agoMerge "Create concepts models for the test microservice"
Ramesh Murugan Iyer [Thu, 4 Aug 2022 14:02:45 +0000 (14:02 +0000)]
Merge "Create concepts models for the test microservice"

2 years agoCreate Dockerfile for the test microservice 45/130145/1
FrancescoFioraEst [Tue, 2 Aug 2022 10:53:48 +0000 (11:53 +0100)]
Create Dockerfile for the test microservice

Issue-ID: POLICY-4318
Change-Id: Ic7099e9a7fd5839630a6dc5cc4fa2ea2300c9c58
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoCreate concepts models for the test microservice 76/130076/2
FrancescoFioraEst [Fri, 29 Jul 2022 14:43:16 +0000 (15:43 +0100)]
Create concepts models for the test microservice

Issue-ID: POLICY-4315
Change-Id: I55b5b4e909aa58b7c39fa96e88eca16bad73761d
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Add module for AC Element implementation"
Ramesh Murugan Iyer [Fri, 29 Jul 2022 16:06:19 +0000 (16:06 +0000)]
Merge "Add module for AC Element implementation"