policy/clamp.git
2 years agoRemove participantType and references 19/133019/2
saul.gill [Mon, 23 Jan 2023 17:44:13 +0000 (17:44 +0000)]
Remove participantType and references

Issue-ID: POLICY-4538
Change-Id: Idf3f0308254a318b3e72aa8a234fd7c78f6ffd82
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoModels for refactor Prime and Deprime in ACM 15/133015/2
FrancescoFioraEst [Tue, 24 Jan 2023 16:27:21 +0000 (16:27 +0000)]
Models for refactor Prime and Deprime in ACM

Refactor Ac Definition to store Prime and Deprime status
and refactor CommissioningController to show the status
of the AC Definition and of all elements.

Issue-ID: POLICY-4502
Change-Id: Ifd90fc8d5788ec2ddebc12ee2e78beef4c0254c8
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRefactor participantId as UUID 88/132988/1
FrancescoFioraEst [Tue, 17 Jan 2023 09:56:52 +0000 (09:56 +0000)]
Refactor participantId as UUID

As part of endpoint refactoring, refactor participantId as UUID in ACM.

Issue-ID: POLICY-4521
Change-Id: I8ac652d9b2fadf9ce3220febb9c2c3ac0d3786cc
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Remove reference type of participantId in Unit Tests in ACM"
Liam Fallon [Mon, 23 Jan 2023 14:50:16 +0000 (14:50 +0000)]
Merge "Remove reference type of participantId in Unit Tests in ACM"

2 years agoMerge "Refactor AcInstanceState Update on ACM"
Ramesh Murugan Iyer [Mon, 23 Jan 2023 09:31:50 +0000 (09:31 +0000)]
Merge "Refactor AcInstanceState Update on ACM"

2 years agoRemove reference type of participantId in Unit Tests in ACM 35/132935/2
FrancescoFioraEst [Wed, 18 Jan 2023 10:31:34 +0000 (10:31 +0000)]
Remove reference type of participantId in Unit Tests in ACM

As part of the participantId refactoring, reduce the impact
of the changes by removing the reference type of participantId
in unit tests.

Issue-ID: POLICY-4524
Change-Id: I08837a0739f229a0a8c439c8b12578823277aa32
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd supported ac elements to participants 49/132949/2
saul.gill [Fri, 13 Jan 2023 17:24:23 +0000 (17:24 +0000)]
Add supported ac elements to participants

Added new supported elements table
Added supported element names and versions
to participant application.yaml files

Issue-ID: POLICY-4512
Change-Id: I97d7f571f2906846514ac0804b4827f0601177d7
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoRefactor AcInstanceState Update on ACM 68/132968/1
FrancescoFioraEst [Thu, 19 Jan 2023 10:08:35 +0000 (10:08 +0000)]
Refactor AcInstanceState Update on ACM

Create AcInstanceStateResolver that will be used to Handle Deployment,
Undeployment, Locking and Unlocking.

Issue-ID: POLICY-4526
Change-Id: I9a7beb57dba9e9ea334974d63c1063acde7c977d
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Remove reference type of participantId in Unit Tests in ACM-models"
Liam Fallon [Wed, 18 Jan 2023 09:41:48 +0000 (09:41 +0000)]
Merge "Remove reference type of participantId in Unit Tests in ACM-models"

2 years agoRemove reference type of participantId in Unit Tests in ACM-models 30/132930/1
FrancescoFioraEst [Tue, 17 Jan 2023 13:42:36 +0000 (13:42 +0000)]
Remove reference type of participantId in Unit Tests in ACM-models

As part of the participantId refactoring, reduce the impact
of the changes by removing the reference type of participantId
in unit tests.

Issue-ID: POLICY-4523
Change-Id: I5d25dd3a02dffc8293bd9a4a2ce5dbcdbbf0bcb5
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRemove FilterRepository in ACM 27/132927/1
FrancescoFioraEst [Tue, 17 Jan 2023 10:54:33 +0000 (10:54 +0000)]
Remove FilterRepository in ACM

As part of participantId refactoring, FilterRepository and related
implementation could be removed.

Issue-ID: POLICY-4522
Change-Id: Idb078989871f1f65615a7df90aea69f7cd822dae
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd participant controller in ACM 06/132906/3
saul.gill [Tue, 10 Jan 2023 11:11:08 +0000 (11:11 +0000)]
Add participant controller in ACM

Added participant controller
Altered openapi spec
Added participantId

Issue-ID: POLICY-4496
Change-Id: I0c0ea93dacb6927e6f16bd4638d03db6266be3bd
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoMerge "Refactor AcTypeState Update"
Liam Fallon [Thu, 12 Jan 2023 09:35:07 +0000 (09:35 +0000)]
Merge "Refactor AcTypeState Update"

2 years agoMerge "Add ACM demo service template under examples"
Liam Fallon [Wed, 11 Jan 2023 12:49:49 +0000 (12:49 +0000)]
Merge "Add ACM demo service template under examples"

2 years agoRefactor AcTypeState Update 95/132895/1
FrancescoFioraEst [Tue, 10 Jan 2023 15:46:51 +0000 (15:46 +0000)]
Refactor AcTypeState Update

Refactor AcTypeState Update and add AcTypeState Resolved that will used by priming/depriming.

Issue-ID: POLICY-4503
Change-Id: I2dd70cd8f569f29d35709e741616079499757bfd
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd ACM demo service template under examples 88/132888/1
rameshiyer27 [Mon, 9 Jan 2023 15:13:00 +0000 (15:13 +0000)]
Add ACM demo service template under examples

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

2 years agoRefactor register deregister a Participant and Supervise Participants 68/132868/2
FrancescoFioraEst [Wed, 4 Jan 2023 17:04:37 +0000 (17:04 +0000)]
Refactor register deregister a Participant and Supervise Participants

Refactor register deregister a Participant and Supervise
Participants using ON_LINE/OFF_LINE as Participant Status.

Issue-ID: POLICY-4497
Change-Id: If9c5b92131c99132c18340e56334fb9453745526
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Refactor Post instances to create and update ACM instances"
Liam Fallon [Thu, 5 Jan 2023 09:41:14 +0000 (09:41 +0000)]
Merge "Refactor Post instances to create and update ACM instances"

2 years agoRefactor Post instances to create and update ACM instances 50/132850/1
FrancescoFioraEst [Tue, 3 Jan 2023 16:15:39 +0000 (16:15 +0000)]
Refactor Post instances to create and update ACM instances

Issue-ID: POLICY-4493
Change-Id: I31c00e6d61a53dcd6a03a911a618f1c6495f2d38
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRefactor Post compositions to create and update ACM definitions 48/132848/1
FrancescoFioraEst [Tue, 3 Jan 2023 10:48:36 +0000 (10:48 +0000)]
Refactor Post compositions to create and update ACM definitions

Issue-ID: POLICY-4492
Change-Id: Ica3885c7e2a048500a86abc194624ac22efd6bc2
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Add compositionId into Messages between ACM and Participants"
Liam Fallon [Wed, 21 Dec 2022 12:24:18 +0000 (12:24 +0000)]
Merge "Add compositionId into Messages between ACM and Participants"

2 years agoMerge "Remove unused code in acm stubs"
Liam Fallon [Tue, 20 Dec 2022 16:44:27 +0000 (16:44 +0000)]
Merge "Remove unused code in acm stubs"

2 years agoAdd compositionId into Messages between ACM and Participants 11/132811/1
FrancescoFioraEst [Mon, 19 Dec 2022 14:43:11 +0000 (14:43 +0000)]
Add compositionId into Messages between ACM and Participants

Issue-ID: POLICY-4489
Change-Id: I1fb8c04eacee040d5c944c522ca59a2a9a50376b
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Fix copy contructor in DocToscaServiceTemplate in ACM"
Liam Fallon [Tue, 20 Dec 2022 09:56:01 +0000 (09:56 +0000)]
Merge "Fix copy contructor in DocToscaServiceTemplate in ACM"

2 years agoMerge "Refactor instanceId as primary key in JpaAutomationComposition"
Liam Fallon [Tue, 20 Dec 2022 09:55:45 +0000 (09:55 +0000)]
Merge "Refactor instanceId as primary key in JpaAutomationComposition"

2 years agoMerge "Upgrade the H2 database to the latest version"
Liam Fallon [Mon, 19 Dec 2022 18:17:52 +0000 (18:17 +0000)]
Merge "Upgrade the H2 database to the latest version"

2 years agoRemove unused code in acm stubs 01/132801/1
lapentafd [Mon, 19 Dec 2022 09:04:59 +0000 (09:04 +0000)]
Remove unused code in acm stubs

Issue-ID: POLICY-4143
Change-Id: Iaaa16a3a3273659506bc63169b5e87ae5ed288c1
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoUpgrade the H2 database to the latest version 98/132798/1
liamfallon [Sun, 18 Dec 2022 03:15:42 +0000 (03:15 +0000)]
Upgrade the H2 database to the latest version

The latest verison of H2 does not allow colums called "user" or indexes
using an underscore in their name.

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

2 years agoAdd new endpoints for ACM state handling 90/132790/1
liamfallon [Fri, 16 Dec 2022 10:17:46 +0000 (10:17 +0000)]
Add new endpoints for ACM state handling

This commit introduces the Swagger changes required for the updates to
the State Handling in ACM.

The Update handling on the endpoints has changed and will be completed
in future reviews. In the meantime, some stubs and unit tests have been
temporarily disabled.

Issue-ID: POLICY-4487
Change-Id: I40b8cbb188d809b43c3e385aea35f88e9ea7da2b
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRefactor instanceId as primary key in JpaAutomationComposition 34/132734/2
FrancescoFioraEst [Wed, 14 Dec 2022 16:57:00 +0000 (16:57 +0000)]
Refactor instanceId as primary key in JpaAutomationComposition

Issue-ID: POLICY-4480
Change-Id: I4d3bd44c23378b428beb901d78ea48dcdbbe7f44
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoFix copy contructor in DocToscaServiceTemplate in ACM 72/132772/2
FrancescoFioraEst [Thu, 15 Dec 2022 16:19:44 +0000 (16:19 +0000)]
Fix copy contructor in DocToscaServiceTemplate in ACM

Issue-ID: POLICY-4486
Change-Id: Ic13daae3c9c8ebdf72a30dcdac59b3a944f77893
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoUpdate snapshot and/or references of policy/clamp to latest snapshots 65/132765/1
liamfallon [Thu, 15 Dec 2022 16:19:55 +0000 (16:19 +0000)]
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-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia4d1977e35c4783bd94e034c4195b1ef1ae8b930

2 years agoRelease docker images for policy/clamp: 6.4.0 57/132757/1
liamfallon [Thu, 15 Dec 2022 15:38:18 +0000 (15:38 +0000)]
Release docker images for policy/clamp: 6.4.0

This commit releases docker images for repo policy/clamp.

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

Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I7c2b1dfa5e715adfd2a835e1e10b05fe16b28e16
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRelease policy/clamp: 6.4.0 52/132752/1
liamfallon [Thu, 15 Dec 2022 14:12:30 +0000 (14:12 +0000)]
Release policy/clamp: 6.4.0

This commit releases repo policy/clamp.

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

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

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>