summaryrefslogtreecommitdiffstats
path: root/runtime-acm/src/main
AgeCommit message (Collapse)AuthorFilesLines
2024-01-16Adding http tracing capabilitysaul.gill1-0/+67
Open telemetry tracing now supported in acm Issue-ID: POLICY-4875 Change-Id: I7423211f3b775825f24e4bd4b906f646a882747b Signed-off-by: saul.gill <saul.gill@est.tech>
2024-01-02Add validation in AC instance elements Id in updateFrancescoFioraEst1-9/+9
Issue-ID: POLICY-4905 Change-Id: If49a7829fa8acfe375cf7bb1d7ed6859f8a3f190 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-12-07Add validation for AC instance element idFrancescoFioraEst1-0/+2
Issue-ID: POLICY-4900 Change-Id: I78be5924950eec508856be5850a3a749860e0e49 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-11-29Update ExceptionHandler in ACMFrancescoFioraEst1-27/+7
Issue-ID: POLICY-4890 Change-Id: I29cc3fe546b8b80e196750cf13e8d5e564eff0c4 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-11-20Fix missing error message in ACMFrancescoFioraEst1-3/+8
Issue-ID: POLICY-4872 Change-Id: I2f7769a3bb1f6aa168f8d59ff99cb0774aee5ed7 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-10-16Fix messages in ACMFrancescoFioraEst1-11/+28
Fix TIMEOUT support in MIGRATING. Avoid conflicts updating AC instance Element instead of a full AC instance. Using ExecutorService to send messages to the participant, the transaction will completed before the message is sent. Issue-ID: POLICY-4811 Change-Id: I2730ae694c8a5c9edfe500b1fa93cfb3787f32c5 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-10-12Remove AAF references from acm-runtimeadheli.tavares3-84/+0
Issue-ID: POLICY-4592 Change-Id: I0a07deba014555290889256a8af197b7db6ae738 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-10-02Fix Sonar Issues for clamp/acmFrancescoFioraEst1-11/+7
Issue-ID: POLICY-4834 Change-Id: I4489dc66e9b20c8264ec88593f0b5d89d62f1ef8 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-09-28Add migration publisher message in ACM runtimeFrancescoFioraEst6-42/+122
Issue-ID: POLICY-4823 Change-Id: Id4480a0800e41ec8e2f0f9931a9a93752b2ef952 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-09-27Allow customisation in element and composition names in TOSCArameshiyer2711-16/+86
User defined values can be provided in the spring properties file for runtime-acm. The same values will be expected from the TOSCA template. If not configured in application properties, default values will be used. Issue-ID: POLICY-4827 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I17bfe811c2531c65e90679e95de9732129b54898
2023-09-27Fix swagger file linkssaul.gill7-6/+6
Issue-ID: POLICY-4829 Change-Id: I7d8f3ec6ff53eb63d35d5584e4289b07efe48880 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-09-26Update examples with new functionalityFrancescoFioraEst20-2017/+2255
Issue-ID: POLICY-4828 Change-Id: I7839bf6d49bd08cec42c51b460d3dc04422e4ba7 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-09-25Upgrade Java 17adheli.tavares16-44/+41
Issue-ID: POLICY-4673 Change-Id: I01fd3677687b5d2e065d0cc131b338ed841d7e99 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-08-29Update acm swaggersaul.gill16-149/+399
Added description of update in OAS Updated some example json/yaml Issue-ID: POLICY-4808 Change-Id: I8c4cab6870cd1071b4782784e997a303ace16fdd Signed-off-by: saul.gill <saul.gill@est.tech>
2023-08-25Make auth optional for prometheus metricssaul.gill2-6/+26
Issue-ID: POLICY-4802 Change-Id: Ib0c3aa1b75812d48a26296ba5acc3ea01147f9b4 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-08-08Add support to save outProperties in AC Definition in ACM runtimeFrancescoFioraEst2-1/+34
Add support to save outProperties in AC Definition from Participant Status message. Add outProperties support in restart message. Issue-ID: POLICY-4781 Change-Id: I9f9bed5c9c3e6692a1e4666162b752db95994f95 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-07-24Add missing validation in Delete AC instanceFrancescoFioraEst1-0/+6
Add missing validation in Delete AC instance when deployState is in DELETING. Fix send Heartbeat when "reportingTimeIntervalMs" is set to short time. Issue-ID: POLICY-4773 Change-Id: Ia90902a68aadbde5c2bb63d093a2495f1a529571 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-07-20Fix State change result of AC instances after timeoutrameshiyer271-3/+2
If the AC operation succeeds/failed after timeout, the latest results were not updated in the database. Issue-ID: POLICY-4769 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Id849a79847f85aa96ae36cd614d045e180731ebf
2023-07-18Fix OFF_LINE issue when Status message upcomingFrancescoFioraEst2-5/+11
Issue-ID: POLICY-4770 Change-Id: If5812e689fab5ebfcf3eb23c89dcbd556ad8f331 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-07-14Refer the header section as reference in openapi.yamlaravind.est1-540/+254
Header schema details moved to components/headers section and referred. Issue-ID:POLICY-4768 Signed-off-by: aravind.est <aravindhan.a@est.tech> Change-Id: Iecb6dbc91dae5ce0ed18c717de8b0fe043b3c843
2023-07-12Add support participant restart in ACM runtimeFrancescoFioraEst8-48/+162
Issue-ID: POLICY-4744 Change-Id: I33d31751be7ca5d7c215a2b465564d3ab0c7bee6 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-07-05Add validation for Participant availabilityrameshiyer276-7/+65
Validation added to check if the participant is online before executing all the ACM operations Issue-ID: POLICY-4746 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ibbdb299822e5fc6462db9688a3ec853076b1e7e9
2023-06-28Add restart publisher to support participant restart scenario in ACMFrancescoFioraEst3-18/+107
Issue-ID: POLICY-4743 Change-Id: Iecb8b4f5f5bf9be788d3507354f267f73d8c53d8 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-06-27Removing old implementation of participant restartsaul.gill1-1/+0
Particpant will be set as offline at deregister No ac states will be altered at deregister Issue-ID: POLICY-4742 Change-Id: Ifb297805ed4b97938b7f92855e30f978d474b648 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-06-23Add Timeuot support in prime/deprimeFrancescoFioraEst2-3/+50
Issue-ID: POLICY-4734 Change-Id: I581610bb1a025e76a5af77e1deb2cd7b97ce7101 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-06-20Remove retry count support in ACMFrancescoFioraEst7-152/+57
Due the new timeout implementation, the Retry Count support could be removed. Issue-ID: POLICY-4735 Change-Id: I3b9c50a761696e00bcd1ca73dafa382c481e921d Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-06-16Add support for Prime Deprime Failure Handling in ACM-RuntimeFrancescoFioraEst3-29/+51
Issue-ID: POLICY-4714 Change-Id: I1f3cf8f0fcebc7c48b3632ad10aa8907c41cdb5a Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-06-14Add timeout for ACM operationsrameshiyer271-0/+11
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 codesrameshiyer272-3/+297
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-RFrancescoFioraEst3-29/+89
Issue-ID: POLICY-4705 Change-Id: I919b7981cdbe69ac7ce703fceb2e980a6d9a056e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-05-23Update AC Element properties on the DEPLOYED staterameshiyer273-11/+155
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-18Rename statusProperites to outProperites in ACMFrancescoFioraEst1-1/+1
Issue-ID: POLICY-4687 Change-Id: Ida8ff3fbc72c2f6d75a8e3399fa40099696c1477 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-05-17Add extend instance deletion support in ACMFrancescoFioraEst3-30/+59
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 stubslapentafd3-13/+13
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-0/+2
Add statusProperties support in acm acm/participants. Issue-ID: POLICY-4652 Change-Id: I6dd37c9be58fce36def022364abe46c791e98a77 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-04-14Update Example files for Swagger documentlapentafd7-6/+110
Issue-ID: POLICY-4581 Change-Id: I0db74d45694c7f8d4d0113dbc81d8adb9b55f59a Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2023-04-11Add UseState and OperationalState support in ACMFrancescoFioraEst2-0/+12
Issue-ID: POLICY-4639 Change-Id: Iac5249c054bf41d830463826a8f61f477c48235b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-04-04Fix Participant primed status in ACMFrancescoFioraEst2-2/+4
Fix Participant primed status is not updated correctly in the runtime Issue-ID: POLICY-4625 Change-Id: I6a3ce7b73f5edaeedf84ec43c7f62c526cd99f36 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-03-15Upgrade Demo ACM element microserviceFrancescoFioraEst1-2/+8
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-6/+7
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 Iyer6-187/+148
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-RFrancescoFioraEst6-187/+148
Issue-ID: POLICY-4511 Change-Id: I3a241bf602e6625d91cee2dc5242b76165bcd381 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-13Add stubs and tests for ppnt controllersaul.gill5-2/+209
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-10Initial support for Implement recording of Operational StateFrancescoFioraEst1-6/+10
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-08Implement AC Element Instance Locking and Unlocking on ACM-RFrancescoFioraEst7-237/+304
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-RFrancescoFioraEst4-91/+59
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-02Refactor ParticipantUpdate to ParticipantPrimesaul.gill4-37/+37
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-01Upgrade and clean up dependenciesliamfallon1-20/+22
- 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-02-01Merge "Add element and definition map to ppnt endpoints"Liam Fallon1-0/+26