aboutsummaryrefslogtreecommitdiffstats
path: root/participant
AgeCommit message (Collapse)AuthorFilesLines
2023-02-08Implement AC Element Instance Locking and Unlocking on ACM-RFrancescoFioraEst1-1/+1
Issue-ID: POLICY-4509 Change-Id: I8bca27cfa2a417314a27e2bec3938b538f05e346 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-03Merge "Refactor ParticipantUpdate to ParticipantPrime"Ramesh Murugan Iyer7-77/+77
2023-02-02Refactor ParticipantUpdate to ParticipantPrimesaul.gill7-77/+77
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-11/+7
Issue-ID: POLICY-4547 Change-Id: I2b9320c79b9a9ab6df587065b7a0638ff06d16be Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-01Upgrade and clean up dependenciesliamfallon12-104/+125
- 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 ACMFrancescoFioraEst7-46/+46
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 ACMFrancescoFioraEst2-4/+17
Issue-ID: POLICY-4502 Change-Id: Ib0ecc513285bf971a0c25cec528dcdeec5ad63a2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-30Remove ParticipantType in all yaml filesFrancescoFioraEst9-42/+10
Issue-ID: POLICY-4538 Change-Id: I9f6d8830f64ef1178d3e20c7d00374156a84b59e Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-01-26Remove participantType and referencessaul.gill10-79/+13
Issue-ID: POLICY-4538 Change-Id: Idf3f0308254a318b3e72aa8a234fd7c78f6ffd82 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-01-23Refactor participantId as UUIDFrancescoFioraEst14-42/+35
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 ACMFrancescoFioraEst9-184/+135
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.gill14-16/+83
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-06Refactor register deregister a Participant and Supervise ParticipantsFrancescoFioraEst1-26/+3
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>
2022-12-20Add compositionId into Messages between ACM and ParticipantsFrancescoFioraEst10-380/+86
Issue-ID: POLICY-4489 Change-Id: I1fb8c04eacee040d5c944c522ca59a2a9a50376b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-15Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon9-9/+9
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
2022-12-13Replace ToscaConceptIdentifier with UUID in Participant Messages ACMFrancescoFioraEst20-227/+195
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-12Merge "Add support for instance properties"Pamela Dragosh2-20/+0
2022-12-09Merge "Increase code coverage of k8s-participant module"Liam Fallon4-45/+38
2022-12-08Add support for instance propertiesFrancescoFioraEst2-20/+0
Issue-ID: POLICY-4483 Change-Id: I6ca953e05e74d68262507b393fb6415573fa3eab Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-08Increase code coverage of k8s-participant modulerameshiyer274-45/+38
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
2022-12-07Merge "A1pms: Fix Code smells and coverage"Liam Fallon2-5/+32
2022-12-06A1pms: Fix Code smells and coveragearavind.est2-5/+32
Issue-ID: CCSDK-3816 Signed-off-by: aravind.est <aravindhan.a@est.tech> Change-Id: Ifa9a5d538d13e59ec842edee6d3cbc43a0f0df1d
2022-12-06Replace SpringFox with SpringDoc in CLAMPliamfallon20-254/+980
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>
2022-11-30Merge "Add A1 PMS participant"Liam Fallon23-0/+1560
2022-11-28Add A1 PMS participantaravind.est23-0/+1560
Issue-ID: CCSDK-3816 Signed-off-by: aravind.est <aravindhan.a@est.tech> Change-Id: I00c04542f5ec4672b1c3a29ca32477bf5d2ca336
2022-11-24Link the AutomationComposition with AutomationCompositionDefinitionFrancescoFioraEst4-29/+24
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>
2022-11-17Update participans to swagger v3FrancescoFioraEst3-172/+80
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>
2022-11-03Add Prometheus metric messages for ACM participantsFrancescoFioraEst12-33/+210
Issue-ID: POLICY-4433 Change-Id: I625c9ee26bb2451e0dcfbb4bbf7288dcc0effb50 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-10-28Remove old implementation of statistics in ACM participantsFrancescoFioraEst14-246/+5
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>
2022-10-21Set snapshot and/or references of policy/clamp for new releaseliamfallon8-8/+8
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
2022-10-21Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon8-8/+8
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
2022-10-14Clean up dependencies in CLAMP POMsliamfallon2-30/+0
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>
2022-10-11Use spring-boot-starter-actuator managed versionliamfallon2-3/+1
Issue-ID: POLICY-4393 Change-Id: I31399942e603b2f29921c38c7dc1b9ab18be0d09 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-09-27Merge "Increase code coverage in Acm element"Liam Fallon3-4/+56
2022-09-27Merge "Improve code coverage on policy-participant module in clamp"Liam Fallon5-10/+354
2022-09-27Increase code coverage in Acm elementFrancescoFioraEst3-4/+56
Issue-ID: POLICY-4367 Change-Id: I63e1bede019c102b7f448935f63eb9991e54e128 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-09-27Improve code coverage on policy-participant module in clamprameshiyer275-10/+354
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
2022-09-26Refactor Mock Server in httpParticipant Unit TestsFrancescoFioraEst3-47/+154
Replace MockServerRest, that failing and causing all tests ignored. Issue-ID: POLICY-4366 Change-Id: Icc86cf26f4cd329b0d24b3dd05b85143e6621517 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-09-23Update snapshot and/or references of policy/clamp to latest snapshotsliamfallon8-8/+8
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
2022-09-20Fix PodStatus Validator failing in K8sParticipantFrancescoFioraEst4-38/+68
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>
2022-09-12Fix log of Element container is not visible at Standard OutputFrancescoFioraEst2-1/+10
Issue-ID: POLICY-4351 Change-Id: I5f06c7158654fc14c2549772f8416eb1fc5bb07b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-09-01Refactor Element ACM for prometheus configurationFrancescoFioraEst7-14/+221
Issue-ID: POLICY-4337 Change-Id: Ic8e43748bc8ffc9a9513f7f278afae9f3f393bc9 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-09-01Fix Clamp build fails in policy participant moduleFrancescoFioraEst1-6/+10
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>
2022-08-29Merge "Add new topic for publishing events in Acm Element Impl"Liam Fallon7-19/+62
2022-08-26Add Prometheus counters for AC elementFrancescoFioraEst6-14/+44
Issue-ID: POLICY-4327 Change-Id: I8d17da711c8ba980e7f42ac611ee9bb858dccea9 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-08-26Add new topic for publishing events in Acm Element Implrameshiyer277-19/+62
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
2022-08-25Merge "Create Unit Tests for Message Handler and Activator"Ramesh Murugan Iyer5-0/+356
2022-08-24Create Unit Tests for Message Handler and ActivatorFrancescoFioraEst5-0/+356
Issue-ID: POLICY-4325 Change-Id: I1f91dec71974bd1169e3310d59057a6b96061db9 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-08-19Add REST Endpoints for ACM test microservicerameshiyer279-16/+510
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
2022-08-09Create Message Handler and Activator for the test microserviceFrancescoFioraEst10-0/+775
Issue-ID: POLICY-4319 Change-Id: If096467ad717fdeaf70e6a9079c531a201e6cec7 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>