policy/clamp.git
2 years agoRemove AutomationCompositionState from ACM 71/133271/1
FrancescoFioraEst [Wed, 15 Feb 2023 17:26:30 +0000 (17:26 +0000)]
Remove AutomationCompositionState from ACM

Issue-ID: POLICY-4559
Change-Id: Ib088c76fd39fcaf8fc7b5f315880e2619186caec
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Refactor yaml files in ACM"
Liam Fallon [Wed, 15 Feb 2023 17:02:52 +0000 (17:02 +0000)]
Merge "Refactor yaml files in ACM"

2 years agoMerge "Implement recording of Operational State and Usage State on ACM-R"
Ramesh Murugan Iyer [Wed, 15 Feb 2023 16:44:08 +0000 (16:44 +0000)]
Merge "Implement recording of Operational State and Usage State on ACM-R"

2 years agoAdd undeploy on deregister (acm-side) 62/133262/1
saul.gill [Wed, 15 Feb 2023 12:39:43 +0000 (12:39 +0000)]
Add undeploy on deregister (acm-side)

State of Ac Elements associated with participant changed on deregister

Issue-ID: POLICY-4499
Change-Id: I54265c13deebd77d654fb843a33f7267d4276b76
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoImplement recording of Operational State and Usage State on ACM-R 44/133244/1
FrancescoFioraEst [Mon, 13 Feb 2023 11:08:42 +0000 (11:08 +0000)]
Implement recording of Operational State and Usage State on ACM-R

Issue-ID: POLICY-4511
Change-Id: I3a241bf602e6625d91cee2dc5242b76165bcd381
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Deployment and undeployment on Participant Intermediary"
Liam Fallon [Tue, 14 Feb 2023 10:24:57 +0000 (10:24 +0000)]
Merge "Deployment and undeployment on Participant Intermediary"

2 years agoMerge "Add stubs and tests for ppnt controller"
Liam Fallon [Tue, 14 Feb 2023 09:49:50 +0000 (09:49 +0000)]
Merge "Add stubs and tests for ppnt controller"

2 years agoRefactor yaml files in ACM 40/133240/1
FrancescoFioraEst [Mon, 13 Feb 2023 14:51:08 +0000 (14:51 +0000)]
Refactor yaml files in ACM

Refactor Supported ACM element types
and align element type version in all examples

Issue-ID: POLICY-4512
Change-Id: Ic810fc1a98237d1b6fb816dccb1fcbe61a675c1e
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd stubs and tests for ppnt controller 38/133238/1
saul.gill [Mon, 13 Feb 2023 17:53:26 +0000 (17:53 +0000)]
Add stubs and tests for ppnt controller

Added stubs
Added tests
Added node state and elements to all participant endpoint

Issue-ID: POLICY-4557
Change-Id: Ia76831ec02f9a308e39f138a3b24f3baced62095
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoRemove unnecessary dependencies in policy/clamp 35/133235/1
liamfallon [Mon, 13 Feb 2023 17:23:41 +0000 (17:23 +0000)]
Remove unnecessary dependencies in policy/clamp

Issue-ID: POLICY-4482
Change-Id: Id303d1203ebe0e490e1e9b964f3133ed4269019b
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoDeployment and undeployment on Participant Intermediary 31/133231/2
FrancescoFioraEst [Fri, 10 Feb 2023 15:28:50 +0000 (15:28 +0000)]
Deployment and undeployment on Participant Intermediary

Handle AC Element Instance Deployment and undeployment
on Participant Intermediary.

Issue-ID: POLICY-4507
Change-Id: I6a6976a8893450467ee609a1a476dbfa473a0e82
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Initial support for Implement recording of Operational State"
Liam Fallon [Fri, 10 Feb 2023 23:39:41 +0000 (23:39 +0000)]
Merge "Initial support for Implement recording of Operational State"

2 years agoMerge "Contract Tests policy-clamp"
Liam Fallon [Fri, 10 Feb 2023 23:37:34 +0000 (23:37 +0000)]
Merge "Contract Tests policy-clamp"

2 years agoInitial support for Implement recording of Operational State 26/133226/1
FrancescoFioraEst [Fri, 10 Feb 2023 12:54:14 +0000 (12:54 +0000)]
Initial support for Implement recording of Operational State

Remove AutomationCompositionState and AutomationCompositionOrderedState
in Jpa classes
add validation to not update deployed instances

Issue-ID: POLICY-4550
Change-Id: If18915a4be6b67dda83ff3ca5457ed52d0e8ddf2
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoContract Tests policy-clamp 11/133211/1
lapentafd [Wed, 8 Feb 2023 16:40:59 +0000 (16:40 +0000)]
Contract Tests policy-clamp

Moving Contract tests in a new package, verifying the stubbed implementation.

Issue-ID: POLICY-4533
Change-Id: Ibd5c9d8b9a2685439bc9d335910882e3f2668d7d
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoImplement AC Element Instance Locking and Unlocking on ACM-R 93/133193/1
FrancescoFioraEst [Tue, 7 Feb 2023 11:06:01 +0000 (11:06 +0000)]
Implement AC Element Instance Locking and Unlocking on ACM-R

Issue-ID: POLICY-4509
Change-Id: I8bca27cfa2a417314a27e2bec3938b538f05e346
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Replace Eclipselink with Hibernate"
Ramesh Murugan Iyer [Wed, 8 Feb 2023 09:37:48 +0000 (09:37 +0000)]
Merge "Replace Eclipselink with Hibernate"

2 years agoHandle AC Element Instance Deployment and undeployment on ACM-R 26/133126/2
FrancescoFioraEst [Thu, 2 Feb 2023 15:42:56 +0000 (15:42 +0000)]
Handle AC Element Instance Deployment and undeployment on ACM-R

Part of the implementation related to Deployment and undeployment,
missing part will be implemented in POLICY-4509.

push-upstream: POLICY-4506
Change-Id: Ie7ad2da6c0a3286938fc4993d70ee71caee833ba
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Refactor ParticipantUpdate to ParticipantPrime"
Ramesh Murugan Iyer [Fri, 3 Feb 2023 09:01:30 +0000 (09:01 +0000)]
Merge "Refactor ParticipantUpdate to ParticipantPrime"

2 years agoReplace Eclipselink with Hibernate 36/133136/1
liamfallon [Thu, 2 Feb 2023 14:47:15 +0000 (14:47 +0000)]
Replace Eclipselink with Hibernate

Issue-ID: POLICY-4533
Change-Id: Iefaacb546812ccb660f32be012a44283c90b334a
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRefactor ParticipantUpdate to ParticipantPrime 20/133120/1
saul.gill [Thu, 2 Feb 2023 11:40:29 +0000 (11:40 +0000)]
Refactor ParticipantUpdate to ParticipantPrime

Refactored ParticipantUpdateAck to ParticipantPrimeAck
Refactored ParticipantUpdate to ParticipantPrime
Refactored all associated tests and code

Issue-ID: POLICY-4548
Change-Id: I2265777add4e088173ec465603e26143e3f40070
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoFix issue in StartAndStop Activator Test 16/133116/1
FrancescoFioraEst [Thu, 2 Feb 2023 10:20:43 +0000 (10:20 +0000)]
Fix issue in StartAndStop Activator Test

Issue-ID: POLICY-4547
Change-Id: I2b9320c79b9a9ab6df587065b7a0638ff06d16be
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoUpgrade and clean up dependencies 83/133083/4
liamfallon [Tue, 31 Jan 2023 12:35:17 +0000 (12:35 +0000)]
Upgrade and clean up dependencies

- Upgrade Hibernate
- Upgrade Mockito
- Upgrade Mockserver
- Remove Powermock (no longer supported) and replace with spring-test ReflectionTestUtils
- Upgrade Spring Framework
- Add spring-security to allow authentication on unit tests using MockMVC

Minor clean-up
- Replace deprecated authorization configuraiton on spring boot applications with SecurityFilterChain bean
- Change @LocalPort include on tests to use test include rather than runtime include
- Remove unused imports
- Remove unused constants and variables
- Add deprecation annotations where required

Issue-ID: POLICY-4482
Change-Id: I7356d60696330e868d4f67195ba55b80987f85b9
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoMerge "Add element and definition map to ppnt endpoints"
Liam Fallon [Wed, 1 Feb 2023 14:17:21 +0000 (14:17 +0000)]
Merge "Add element and definition map to ppnt endpoints"

2 years agoMerge "Refactor ACM Update message to ACM Deploy message in ACM"
Liam Fallon [Wed, 1 Feb 2023 09:49:00 +0000 (09:49 +0000)]
Merge "Refactor ACM Update message to ACM Deploy message in ACM"

2 years agoMerge "Added deployState to Automation Composition"
Liam Fallon [Wed, 1 Feb 2023 09:34:58 +0000 (09:34 +0000)]
Merge "Added deployState to Automation Composition"

2 years agoAdded deployState to Automation Composition 67/133067/4
saul.gill [Mon, 30 Jan 2023 15:44:58 +0000 (15:44 +0000)]
Added deployState to Automation Composition

Added deployState and lockState

Issue-ID: POLICY-4506
Change-Id: If7fa2cc1f3c729de5dc261e2b527b03c0009e99c
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoRefactor ACM Update message to ACM Deploy message in ACM 76/133076/1
FrancescoFioraEst [Mon, 30 Jan 2023 13:43:10 +0000 (13:43 +0000)]
Refactor ACM Update message to ACM Deploy message in ACM

Refactor ACM Update message to ACM Deploy message in ACM
and add AcElementDeploy in Deploy message.
AutomationCompositionElement will be removed from the message
after POLICY-4506 and POLICY-4507.

Issue-ID: POLICY-4543
Change-Id: I8444e15b3b4cb1209ffd083fb965e0707fbd9625
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd element and definition map to ppnt endpoints 63/133063/2
saul.gill [Fri, 27 Jan 2023 14:58:05 +0000 (14:58 +0000)]
Add element and definition map to ppnt endpoints

Add element instance map
Add node template state map

Issue-ID: POLICY-4540
Change-Id: I6e7c2b27db78a090b0a1303c49e57d8675316f9b
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoRefactor Prime and Deprime messages in ACM 51/133051/2
FrancescoFioraEst [Thu, 26 Jan 2023 17:31:46 +0000 (17:31 +0000)]
Refactor Prime and Deprime messages in ACM

Issue-ID: POLICY-4502
Change-Id: Ib0ecc513285bf971a0c25cec528dcdeec5ad63a2
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRemove ParticipantType in all yaml files 59/133059/1
FrancescoFioraEst [Mon, 30 Jan 2023 08:39:34 +0000 (08:39 +0000)]
Remove ParticipantType in all yaml files

Issue-ID: POLICY-4538
Change-Id: I9f6d8830f64ef1178d3e20c7d00374156a84b59e
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
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"