aboutsummaryrefslogtreecommitdiffstats
path: root/runtime-acm/src/test
AgeCommit message (Collapse)AuthorFilesLines
2023-06-16Add support for Prime Deprime Failure Handling in ACM-RuntimeFrancescoFioraEst2-19/+48
Issue-ID: POLICY-4714 Change-Id: I1f3cf8f0fcebc7c48b3632ad10aa8907c41cdb5a Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-06-14Add timeout for ACM operationsrameshiyer271-0/+39
User can retry the ACM state change order when ACM operations time out. Issue-ID: POLICY-4716 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ie840fc13170ef235c6b6f3b26a47b7516f10296c
2023-06-09Update openapi.yaml swagger with new status codesrameshiyer271-1/+1
Changing the response code of delete operation from 200 to 202 as it requires to be delegated to the participants. Adding 500 server error code for all the REST responses. Issue-ID: POLICY-4729 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I92c17b253071c3fe4014f475d681bc99df4a9402
2023-06-01Add Failure handling support in the ACM-RFrancescoFioraEst1-10/+156
Issue-ID: POLICY-4705 Change-Id: I919b7981cdbe69ac7ce703fceb2e980a6d9a056e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-05-23Update AC Element properties on the DEPLOYED staterameshiyer272-21/+8
User can update the instance property values on DEPLOYED state. The runtime sends PROPERTY_UPDATE event to the participants and the updated values are stored on the runtime database. Participants can implement the update method to perform the required action. Issue-ID: POLICY-4682 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ic35fba669b5ffcf2c75d6deaa8c309d58e4026f0
2023-05-17Add extend instance deletion support in ACMFrancescoFioraEst3-6/+32
Extend the functionality of deletion step to also inform the participant of instance deletion. This allow the participant to take any necessary steps that might result from instance deletion. Issue-ID: POLICY-4686 Change-Id: Ibeb44d472da20ad98dafa9ddd7ded28398f4ed10 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-05-08Update ACM-R missing stubslapentafd2-2/+2
Fix typo and adding return 202 to missing stub Issue-ID: POLICY-4143 Change-Id: I9b59b762395a1c3a1ae262ed4ac7679de402e0ac Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2023-05-03Add participant properties capability to acm/participantsFrancescoFioraEst1-2/+4
Add statusProperties support in acm acm/participants. Issue-ID: POLICY-4652 Change-Id: I6dd37c9be58fce36def022364abe46c791e98a77 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-04-11Add UseState and OperationalState support in ACMFrancescoFioraEst2-5/+9
Issue-ID: POLICY-4639 Change-Id: Iac5249c054bf41d830463826a8f61f477c48235b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-03-15Upgrade Demo ACM element microserviceFrancescoFioraEst1-2/+3
Upgrade chart Demo ACM element, upgrade servicetemplate example and fix prime issue Issue-ID: POLICY-4565 Change-Id: Icfc3a32f481840882eb6f20f25ed45b15d4991ff Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-24Fix ClassCastException in ACMFrancescoFioraEst1-5/+14
Fix ClassCastException in ACM when acm-runtime starts after participants. Issue-ID: POLICY-4575 Change-Id: Icef82d3ba7f3847c821362ed063c1cf8e81604c5 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-15Merge "Implement recording of Operational State and Usage State on ACM-R"Ramesh Murugan Iyer5-65/+179
2023-02-15Add undeploy on deregister (acm-side)saul.gill1-0/+1
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>
2023-02-14Implement recording of Operational State and Usage State on ACM-RFrancescoFioraEst5-65/+179
Issue-ID: POLICY-4511 Change-Id: I3a241bf602e6625d91cee2dc5242b76165bcd381 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-14Merge "Deployment and undeployment on Participant Intermediary"Liam Fallon1-2/+2
2023-02-13Add stubs and tests for ppnt controllersaul.gill1-0/+83
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>
2023-02-13Deployment and undeployment on Participant IntermediaryFrancescoFioraEst1-2/+2
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>
2023-02-10Merge "Initial support for Implement recording of Operational State"Liam Fallon2-20/+127
2023-02-10Merge "Contract Tests policy-clamp"Liam Fallon2-2/+2
2023-02-10Initial support for Implement recording of Operational StateFrancescoFioraEst2-20/+127
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>
2023-02-08Contract Tests policy-clamplapentafd2-2/+2
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>
2023-02-08Implement AC Element Instance Locking and Unlocking on ACM-RFrancescoFioraEst5-282/+113
Issue-ID: POLICY-4509 Change-Id: I8bca27cfa2a417314a27e2bec3938b538f05e346 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-03Handle AC Element Instance Deployment and undeployment on ACM-RFrancescoFioraEst9-258/+139
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>
2023-02-03Merge "Refactor ParticipantUpdate to ParticipantPrime"Ramesh Murugan Iyer3-35/+35
2023-02-02Refactor ParticipantUpdate to ParticipantPrimesaul.gill3-35/+35
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>
2023-02-02Fix issue in StartAndStop Activator TestFrancescoFioraEst1-10/+6
Issue-ID: POLICY-4547 Change-Id: I2b9320c79b9a9ab6df587065b7a0638ff06d16be Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-01Upgrade and clean up dependenciesliamfallon9-27/+13
- 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>
2023-01-31Refactor ACM Update message to ACM Deploy message in ACMFrancescoFioraEst3-35/+35
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>
2023-01-30Refactor Prime and Deprime messages in ACMFrancescoFioraEst6-88/+190
Issue-ID: POLICY-4502 Change-Id: Ib0ecc513285bf971a0c25cec528dcdeec5ad63a2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-26Remove participantType and referencessaul.gill5-36/+12
Issue-ID: POLICY-4538 Change-Id: Idf3f0308254a318b3e72aa8a234fd7c78f6ffd82 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-01-25Models for refactor Prime and Deprime in ACMFrancescoFioraEst4-11/+17
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>
2023-01-23Refactor participantId as UUIDFrancescoFioraEst7-54/+23
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>
2023-01-23Remove reference type of participantId in Unit Tests in ACMFrancescoFioraEst6-67/+40
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>
2023-01-19Add supported ac elements to participantssaul.gill1-1/+6
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>
2023-01-17Remove FilterRepository in ACMFrancescoFioraEst1-1/+1
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>
2023-01-12Add participant controller in ACMsaul.gill5-25/+231
Added participant controller Altered openapi spec Added participantId Issue-ID: POLICY-4496 Change-Id: I0c0ea93dacb6927e6f16bd4638d03db6266be3bd Signed-off-by: saul.gill <saul.gill@est.tech>
2023-01-06Refactor register deregister a Participant and Supervise ParticipantsFrancescoFioraEst4-149/+149
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>
2023-01-05Merge "Refactor Post instances to create and update ACM instances"Liam Fallon3-49/+22
2023-01-04Refactor Post instances to create and update ACM instancesFrancescoFioraEst3-49/+22
Issue-ID: POLICY-4493 Change-Id: I31c00e6d61a53dcd6a03a911a618f1c6495f2d38 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-04Refactor Post compositions to create and update ACM definitionsFrancescoFioraEst1-4/+4
Issue-ID: POLICY-4492 Change-Id: Ica3885c7e2a048500a86abc194624ac22efd6bc2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-20Add compositionId into Messages between ACM and ParticipantsFrancescoFioraEst5-58/+25
Issue-ID: POLICY-4489 Change-Id: I1fb8c04eacee040d5c944c522ca59a2a9a50376b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-20Merge "Refactor instanceId as primary key in JpaAutomationComposition"Liam Fallon2-6/+6
2022-12-16Add new endpoints for ACM state handlingliamfallon2-0/+7
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>
2022-12-16Refactor instanceId as primary key in JpaAutomationCompositionFrancescoFioraEst2-6/+6
Issue-ID: POLICY-4480 Change-Id: I4d3bd44c23378b428beb901d78ea48dcdbbe7f44 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-15Merge "Server stubs for acm runtime"Liam Fallon5-3/+196
2022-12-14Server stubs for acm runtimelapentafd5-3/+196
- 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>
2022-12-13Replace ToscaConceptIdentifier with UUID in Participant Messages ACMFrancescoFioraEst1-1/+1
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>
2022-12-12Link the existing InstantiationController with the generated codeFrancescoFioraEst4-180/+195
Issue-ID: POLICY-4467 Change-Id: Ibe9206ee4189e73357271211d83b0603edfb86da Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-09Merge "Add instanceId support in AutomationCompositionProvider"Liam Fallon4-30/+34
2022-12-08Add instanceId support in AutomationCompositionProviderFrancescoFioraEst4-30/+34
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>