aboutsummaryrefslogtreecommitdiffstats
path: root/services
AgeCommit message (Collapse)AuthorFilesLines
47 hoursSet snapshot and/or references of policy/apex-pdp for new releaserameshiyer273-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-5166 Change-Id: If782b44af7a3fae37332eca2a4c81c0ecb7610a5 Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
2 daysUpdate snapshot and/or references of policy/apex-pdp to latest snapshotsrameshiyer273-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-5166 Change-Id: Ia08f1aa11333242e788e18f475c66016d2708853 Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
2024-11-04Fix references and organize dependencies in policy-apex-pdp afteradheli.tavares13-55/+58
splitting policy-endpoints and message-bus in policy-common Issue-ID: POLICY-5131 Change-Id: Ief788abbff9d001302a9ee1960f17d9d168a0e79 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-10-25Increase apex-pdp line and branch coveragewaynedunican1-0/+105
Issue-ID: POLICY-5059 Change-Id: Ifa1472dd914ec0ef25372fa057514571a7ea27ac Signed-off-by: waynedunican <wayne.dunican@est.tech>
2024-10-21Improve code and branch coverage in apex-pdpwaynedunican12-1/+900
Issue-ID: POLICY-5059 Change-Id: I714863fce899754f22c2d64cc4bfbd0051d3e27e Signed-off-by: waynedunican <wayne.dunican@est.tech>
2024-07-19Uplift of json schema validator libraryadheli.tavares2-4/+2
Issue-ID: POLICY-5084 Change-Id: Ie24719570c43a9f7b0fdac28973cc50d8eb7ed2c Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-07-12Update snapshot and/or references of policy/apex-pdp to latest snapshotsrameshiyer273-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-5072 Change-Id: I9e73f9288671f928623a2a6646f5839b9726cea1 Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
2024-06-19Merge "Convert junit4 to junit5 - services module"Liam Fallon58-1335/+1193
2024-06-17Convert junit4 to junit5adheli.tavares2-9/+33
- plugins module Issue-ID: POLICY-5041 Change-Id: Iebff0a2e6898a5dfe9679662dd2be4c5067a4008 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-06-17Convert junit4 to junit5adheli.tavares58-1335/+1193
- services module Issue-ID: POLICY-5041 Change-Id: I50f1ce21dbef1398cd91dd55196baa61bd06a63c Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-05-20Set snapshot and/or references of policy/apex-pdp for new releasesaul.gill3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4999 Change-Id: Id39d0f3ae07bd66388ca1792609c8ee759582f50 Signed-off-by: saul.gill <saul.gill@est.tech>
2024-05-17Update snapshot and/or references of policy/apex-pdp to latest snapshotswaynedunican3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-5001 Change-Id: I355059f0f553144adbe3b9e0e3accc2441d56609 Signed-off-by: waynedunican <wayne.dunican@est.tech>
2024-04-26Update snapshot and/or references of policy/apex-pdp to latest snapshotssaul.gill3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4970 Change-Id: I0ef5fcfbb70d87cd3df3ebaf495edf0da43cf383 Signed-off-by: saul.gill <saul.gill@est.tech>
2024-04-11Dependency management updateadheli.tavares3-16/+27
- including dependencies to pom.xml files only where they are used, avoiding extra dependencies being added in all packages. Issue-ID: POLICY-4945 Change-Id: I99a922f4c124c492e28326d6e08e15cd96b68a40 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-02-19Update snapshot and/or references of policy/apex-pdp to latest snapshotswaynedunican3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4932 Change-Id: I39f5d8c55625f96586618c80232bb4d3798ff8eb Signed-off-by: waynedunican <wayne.dunican@est.tech>
2024-02-09Remove Dmaap from apex-pdprameshiyer279-81/+46
Issue-ID: POLICY-4402 Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech> Change-Id: I76c284b6ff7ec0ce77189f3f2bc93d5b91d4eb24
2023-12-18Change PDP topic to lower case for kafka compabilityadheli.tavares1-6/+5
Issue-ID: POLICY-4402 Change-Id: I77fee1d194f884022b42094838b96070c3eda663 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-12-11Update snapshot and/or references of policy/apex-pdp to latest snapshotssaul.gill3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4907 Signed-off-by: saul.gill <saul.gill@est.tech> Change-Id: I7e48289381e7f0fa2ce126952b765463e6a10e0d
2023-11-14Set snapshot and/or references of policy/apex-pdp for new releaseliamfallon3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4854 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I9dcccb27b3bf7b5ee8de344874b3dac5e6e4b4b1
2023-11-13Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4854 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I0153bb097c61f2c4e52069e05196f31cc61a54ac
2023-10-18Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4854 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: Idc1a4c157321d86067c9a86fd14275e0efac9d8a
2023-10-12Remove AAF references from apex-pdp.adheli.tavares2-45/+5
Issue-ID: POLICY-4592 Change-Id: I1e546879ef217d1100659e1cf18a8fcf5d8fb4c9 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-09-22Java 17 Upgradeadheli.tavares8-77/+27
Updated dependencies to latest versions Made Java 17 changes Moved apex dependencies versions to main apex pom Issue-ID: POLICY-4675 Change-Id: Ia5cd5670a1f024f5402cbd7371162ce3313930ef Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-07-17Remove db based statistics from apex-pdpRam Krishna Verma1-90/+1
Removing the db based statistics feature from apex-pdp in lieu of Prometheus based one. Issue-ID: POLICY-4109 Change-Id: Ia20adf5b59c56681669d55c98e409269cd4f53c1 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2023-05-25Set snapshot and/or references of policy/apex-pdp for new releaseliamfallon3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4662 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I6bed34d4561b33b442102994f8e028691ef3769d
2023-04-25Update snapshot and/or references of policy/apex-pdp to latest snapshotsSuresh Charan3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4648 Signed-off-by: Suresh Charan <suresh.charan@bell.ca> Change-Id: I5300f1a9075a38d8a68e43306acc4961ed3804c0
2023-03-01Update snapshot and/or references of policy/apex-pdp to latest snapshotssaul.gill3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4570 Signed-off-by: saul.gill <saul.gill@est.tech> Change-Id: Ie8c858d0026057a7e9d756a1b8481bc0337ba00d
2023-01-31Upgrade and clean up dependenciesliamfallon6-15/+27
- 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: Ie004dcc5303e92f6e2c2154967c3537b91868dd5 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-12-15Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon3-3/+3
policy/apex-pdp 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: Ia964f8a4e9fceb9f38f4b560b641af10cda312da
2022-10-21Set snapshot and/or references of policy/apex-pdp for new releaseliamfallon3-3/+3
policy/apex-pdp 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: I3463647a8a3689518769a5fe5aaab2cfea8438e7
2022-10-21Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon3-3/+3
policy/apex-pdp 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: Ic5da8f09888e81bfe6b0132c8fd725a3a4a40aed
2022-09-28Add Kafka dependencySirisha_Manchikanti1-0/+5
Issue-ID: POLICY-4134 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I373140b42e3f22df3083572b9b55f1da711aa81b
2022-09-23Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon3-3/+3
policy/apex-pdp 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: Ib4d723d5d687714011e76f22edf6a6c6f44aad5b
2022-09-16Fix minor warnings in codeliamfallon1-1/+0
Issue-ID: POLICY-4045 Change-Id: I6e3a73e243614108cfd9ea6a6967cb983a006ee4 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-05-03Set snapshot and/or references of policy/apex-pdp for new releaseliamfallon3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4073 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I36c398ac9f30480b55e7ad15b3fb4161d8999206 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-04-28Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4089 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: If859b088c5975c8dda67c34f335658c98341be57
2022-04-12Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4089 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: Ida537dd5acbd299893f3e30bac84146e134d3a0f
2022-04-08Fix wrong APEX-PDP behaviour during state changea.sreekumar1-1/+5
When a policy is deployed & undeployed, and then on doing PDP_STATE_CHANGE to passive and then active, previously undeployed policies are taken from memory and tried to be deployed. Any undeployed policies should be cleared from the engine memory. This is fixed here. Change-Id: I8f6fbc64d29bd8d89e906376d0770d375ffd8b82 Issue-ID: POLICY-4087 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2022-03-31Bug fixes for APEX PDP metricsRashmi Pujar1-9/+10
1. APEX engine metrics were being initialized to 0 in the constructor which caused them to reset to 0. Hence, initialization is removed, and updates are done to metrics only upon: engineStart/Stop, executionEnter/Exit stages. 2. APEX engine Uptime was only updated when engine stopped, hence always 0. Also, uptime is redundant since it can be derived from lastStart timestamp and hence is removed as a metric. 3. Fixed a corner case bug which occurs when all policies are undeployed the counters are not correct. 4. Fix Unit tests Issue-ID: POLICY-4044 Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca> Change-Id: I4d875ff288cf8c242a1851eb105e56dc69b97883
2022-03-23Account for batch deploy/undeploy in apex app metricsRashmi Pujar2-18/+58
Batch deploy/undeploy operations will now increment pdpa_policy_deployments_total counter by the total number of policies as present in the request. Issue-ID: POLICY-4043 Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca> Change-Id: I9ea34d11f5952213b9e72d121ab85dcbd0b8dfc9
2022-03-11Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon3-3/+3
policy/apex-pdp updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-3982 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I838a8d4d6365de1df2feda9d7ba7ffefbfd82c4f
2022-02-23Add support for retrieving apex-policyModel from metadatarameshiyer275-3/+345
Apex policyModel had been provided under policy properties for apex-pdp. Additional support included to retrieve the policyModel from metadata if PAP supplied it as metadataSet. Issue-ID: POLICY-3834 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ic810d78cf01c507c5b4d167f28ae6f7729132238
2022-02-11Remove apex-pdp unused core modulesliamfallon2-15/+4
This is the final review in the refactoring of the model code in apex-pdp. The core-messaging and core-infrastructure modules are unused in apex-pdp except for websocket communication. Websocket communication is also not used in any deployment. This review: - removes the core-mesaging module, which had an apex-specific websocket implementation, except for the MessageException class, which is moved to the base core module - removes the core-infrastructure module, except for the ThreadUtils class, which is moved to the base core module - removes the websocket event protocol, which used core-messaging but is not used in any deployment - collapses all three "core" submodules into a single module - Updates dependencies where needed Issue-ID: POLICY-1820 Change-Id: Ieae30063e99570e61943372d3fa23b77a211462c Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-02-10Collapse apex-pdp maven model submodulesliamfallon1-1/+1
This review collapses all the code in six podel submodules into a single model module. There are no code changes, just files moved around. This change reduces the complexity of the code structure and speeds up the build. Issue-ID: POLICY-1820 Change-Id: Ifb644e8ec85ae6d0987378f4616fbc8a8858a9a8 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-02-10Merge "rename metrics as per global constants for prometheus"Liam Fallon2-33/+45
2022-02-09rename metrics as per global constants for prometheusRashmi Pujar2-33/+45
Issue-ID: POLICY-3760 Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca> Change-Id: I0fb59e8d9c95fd81a1754bb769705ef753b9022d
2022-02-09Merge "Remove JAXB and XML, use GSON for JSON"Jorge Hernandez8-1206/+1330
2022-02-08Remove JAXB and XML, use GSON for JSONliamfallon8-1206/+1330
This review converst apex-pdp to use GSON for JSON handling. In order to preserve backward compatibility with the JAXB format of JSON, custom handling of maps was required. Therefore, the policy-common StandardCoder could not be used. There are a lot of small changes, removing annotations from concepts and tweaking of test data. However, this cleans up the code base so it is worth doing. Issue-ID: POLICY-1820 Change-Id: I213fa64f6d7f3f1df8d10f111d9fbedbe80f9fe0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-02-07Expose APEX policy execution metricsRashmi Pujar1-2/+42
Testing of these metrics will be covered in CSIT. Issue-ID: POLICY-3845 Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca> Change-Id: I8aed49d113f071ab33691f8cf1df624f3358386a
2022-01-24Add TOSCA policy status header field to APEX event create CLIRashmi Pujar12-50/+128
In order to expose the processing status of a TOSCA policy to APEX-PDP, a new header field for APEX concept "event" has been introduced to track this within an APEX policy implementation. This field will be leveraged to extract the TOSCA policy execution metrics. Note, that the field is marked as optional for backward compatibility. Unit tests have been augmented to test for the field wherever applicable and the default empty value is retained for the others. "example-grpc" module has been updated to include this field. Exposing the TOSCA policy execution metrics is outside the scope of this patch since the current changes are already very large owing to the atomic nature of the change introduced. Issue-ID: POLICY-3845 Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca> Change-Id: Ief6d70f9abcfc8414e10aa51a27815ee9028e4c8