aboutsummaryrefslogtreecommitdiffstats
path: root/examples
AgeCommit message (Collapse)AuthorFilesLines
2 daysSet snapshot and/or references of policy/apex-pdp for new releaserameshiyer2712-12/+12
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>
3 daysUpdate snapshot and/or references of policy/apex-pdp to latest snapshotsrameshiyer2712-12/+12
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-10-22Improve coverage on apex-pdprameshiyer273-0/+425
Issue-ID: POLICY-5059 Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech> Change-Id: I3d8d71f4ee9db10fe43bfe51586156cf768a8560
2024-09-18Apex pdp code improvementsrameshiyer276-207/+51
Fix compilation issues in windows Replace Acm policy with kafka coverage improvements Issue-ID: POLICY-5059 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Idfac722cce2d1a2fa471e8c77286006bd883e9a7
2024-07-19Uplift of json schema validator libraryadheli.tavares3-13/+27
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 snapshotsrameshiyer2712-12/+12
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-19Convert junit4 to junit5adheli.tavares1-20/+21
- clean up any references to junit4 - clean up some sonar complaints - remove not used integration tests Issue-ID: POLICY-5041 Change-Id: I67e7a8f00df5b6c5ba514f4ea2ecd96bf942d4c7 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-06-18Convert junit4 to junit5adheli.tavares20-380/+354
- examples module Issue-ID: POLICY-5041 Change-Id: Ia46a6590149571d31dde918e1ea77753ab330f90 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-05-20Set snapshot and/or references of policy/apex-pdp for new releasesaul.gill12-12/+12
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 snapshotswaynedunican12-12/+12
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.gill12-12/+12
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-03-14Update dependenciesadheli.tavares2-1/+2
- add dependencies that used to be brought by oparent - fix any related code to these dependencies - add examples module missing from examples pom.xml Issue-ID: POLICY-4945 Change-Id: Iddd49835305b57e7a5e669fc8cde35281bbbdbe6 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-02-19Update snapshot and/or references of policy/apex-pdp to latest snapshotswaynedunican11-11/+11
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-pdprameshiyer275-90/+58
Issue-ID: POLICY-4402 Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech> Change-Id: I76c284b6ff7ec0ce77189f3f2bc93d5b91d4eb24
2023-12-11Update snapshot and/or references of policy/apex-pdp to latest snapshotssaul.gill11-11/+11
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 releaseliamfallon11-11/+11
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 snapshotsliamfallon11-11/+11
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 snapshotsliamfallon11-11/+11
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-09-26Add shared context examplewaynedunican16-0/+1044
- Add a new example which splits the DecisionMaker policy into two policies - One which sets answers and one which makes the decision - Both policies share the AnswerAlbum context - Added documentation to support this Issue-ID: POLICY-4765 Change-Id: I12bcef9f32b5efae2574cc5e6ebb988a17ac96a9 Signed-off-by: waynedunican <wayne.dunican@est.tech>
2023-09-22Java 17 Upgradeadheli.tavares18-292/+323
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-06-14Add AVRO example for MyFirstPolicywaynedunican27-0/+749
- Avro example added for MFP - Documentation review to follow - Avro schemaTypes created individally in .avsc files Issue-ID: POLICY-4691 Change-Id: I6be22763eeac9251d75b80f67052ba4ae7274f75 Signed-off-by: waynedunican <wayne.dunican@est.tech>
2023-05-25Set snapshot and/or references of policy/apex-pdp for new releaseliamfallon11-11/+11
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 Charan11-11/+11
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-04-11Remove references to Apex-PCVS Examplesadheli.tavares42-2627/+0
Issue-ID: POLICY-4640 Change-Id: Ib39d3d65f968ae6fc97ce99d2956bf7edaac7686 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-03-14Update for SNI Chceckingliamfallon3-7/+8
SNI checking is now supported in Jersey Issue-ID: POLICY-4474 Change-Id: I6afc2d577493485f151887180ef152303c456f3a Signed-off-by: liamfallon <liam.fallon@est.tech>
2023-03-01Update snapshot and/or references of policy/apex-pdp to latest snapshotssaul.gill12-12/+12
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-02-17Clean up dependencies for London Releaseliamfallon1-2/+1
Issue-ID: POLICY-4482 Change-Id: Ifc4039feaac82a1fa4bf1f2eb602f79c7a268b9f Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-12-15Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon12-12/+12
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 releaseliamfallon12-12/+12
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 snapshotsliamfallon12-12/+12
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-23Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon12-12/+12
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-08-30Add example policy for AC element microservice testFrancescoFioraEst11-1/+631
Issue-ID: POLICY-4307 Change-Id: I0275bbacb3d2689f50f93eef541cd43601aab8ef Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-07-26Update APEX example to use JSON Schema plugina.sreekumar28-444/+596
Change-Id: Ic8b412ce0ca71b4452d67b1e4445e423b0ec5b54 Issue-ID: POLICY-4292 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2022-07-18Support MetadataSet generation in APEX CLI Editorrameshiyer271-0/+23
In addition to the existing capabilities of CLI editor, new arguments added for generating Tosca policy template excluding the policy model entity. Also generates independent json file for node template comprising the policy model data. Issue-ID: POLICY-4084 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I7c6a9570846e3ebfaa3f4ebc8d60faa94b533240
2022-05-03Set snapshot and/or references of policy/apex-pdp for new releaseliamfallon11-11/+11
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 snapshotsliamfallon11-11/+11
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 snapshotsliamfallon11-11/+11
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-03-11Update snapshot and/or references of policy/apex-pdp to latest snapshotsliamfallon11-11/+11
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-03-10Remove bad dependency in apex POMliamfallon1-6/+0
The Apex core modules were all collapsed into a single module in Jakarta. Issue-ID: POLICY-3982 Change-Id: I76e039fa58d4338d03331aa818ee44ea58451930 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-02-11Remove apex-pdp unused core modulesliamfallon4-23/+8
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 submodulesliamfallon4-4/+4
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-08Remove JAXB and XML, use GSON for JSONliamfallon7-33/+4
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-03Remove direct DB Load/Save from apex-pdpliamfallon10-454/+7
This review is part of a series of reviews to move the apex-pdp state machine model to use the base model types in policy models. Persistence of policies for apex-pdp is now implemented in PAP and API. The historic direct load and save functionality for APEX policy state machine models to and from databases is no longer used and no longer supported. This revmoves the DAO code from apex-pdp and the associated handling and test code. The next review will remove the JPA annotations. Subsequent reviews will mvoe the mdoel across to use the policy models base model types. Issue-ID: POLICY-1820 Change-Id: Iabf034b40a413d32fe62091fe3446f52ec30d3af Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-01-24Add TOSCA policy status header field to APEX event create CLIRashmi Pujar4-8/+12
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
2021-11-29Update snapshot of policy/apex-pdp to 2.7.1-SNAPSHOTliamfallon11-11/+11
*** This commit is generated by a PF release script *** policy/apex-pdp is update from 2.7.0-SNAPSHOT to 2.7.1-SNAPSHOT Issue-ID: POLICY-3827 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I334dda447490f6c3e848be7b58f4a5119ae70ead
2021-10-14Bump policy/apex-pdp to Jakarta 2.7.0-SNAPSHOTa.sreekumar11-11/+11
Change-Id: I8ead26be4968b94980dcafd269c7ab32022b34d0 Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-10-14Bump policy/apex-pdp to 2.6.2-SNAPSHOTa.sreekumar11-11/+11
Change-Id: I0db6ab5efb0595cba86ce9cbaaafab88349818ff Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-09-15Bump apex-pdp to 2.6.1-SNAPSHOTa.sreekumar11-11/+11
Change-Id: Ie39d324e02a302b882318d46735a727322ce409d Issue-ID: POLICY-3587 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-09-01Fix sonars in apex-pdp #3Jim Hahn1-3/+3
Fixed: - use "var" - use assertEquals instead of assertTrue(xxx.equals()) - separate assertions Issue-ID: POLICY-3093 Change-Id: Id4db62626948681cd267e68a56dda65fa355c6f8 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-24Use CompareToBuilderJim Hahn3-47/+14
Also added lombok to test classes. Issue-ID: POLICY-3391 Change-Id: I9ecf479f3861a2e5211b037e885029d1719b6a56 Signed-off-by: Jim Hahn <jrh3@att.com>