summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-06-28Changes to support multiple outputs from a statea.sreekumar47-1510/+1970
This review addresses two main changes: 1) inputFields and outputFields are not tied to task definition anymore. Instead inputEvent and outputEvents associated to a task is populated as part of the policy state definition, as the state definition have the information anyway. - Clean up of the usage of inputFields and outputFields in task definition will happen in a future review - inputFields and outputFields defined in task definition in policies until honolulu will not make the policy invalid as the changes are done in backward compatible way. 2) Multiple output events can come out of a final state now. - Define another policy state output with the relevant eventName in the command file - In the task logic, create a map to store the fields of the relevant outputEvent, and then just call "executor.addFieldsToOutput(<the_map_of_fields>)" These 2 steps are enough to send multiple events to relevant components as per the apex configuration. Change-Id: Id88ca402704106404f529e595e1a76f6bf167876 Issue-ID: POLICY-3336 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-06-28Merge "Update policy-apex-pdp for checkstyle 8.43"Ajith Sreekumar10-40/+40
2021-06-28Update policy-apex-pdp for checkstyle 8.43liamfallon10-40/+40
Issue-ID: POLICY-3209 Change-Id: I0cb6fc8f5693fe03b4d68af2fde5116e9e248115 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-28Merge "Update apex-pdp for checkstyle 8.43"Ajith Sreekumar12-24/+25
2021-06-24Update apex-pdp for checkstyle 8.43liamfallon12-24/+25
Issue-ID: POLICY-3206 Change-Id: I3873c85aab577e85a9ae6b610c3871ee4de6ea53 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-23Sonar Issues in Apex plugins-contextlapentafd7-51/+55
Replacing local-variable type inference, and checkstyle fix Refactor lambda expression to have one invocation to throw exception Issue-ID: POLICY-3093 Change-Id: I6f89793a3652c50897d7f8e0fda35fffba903acc Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-06-18Fix Sonar Issues in apex-pdp-services-enginelapentafd16-87/+97
Test refactoring and local-variable type inference replaced Issue-ID: POLICY-3093 Change-Id: I0c5506f27ea53da7740acce87a25060ba2bce7f4 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-06-15Fix Sonar issues in apex-pdplapentafd7-29/+111
Issue-ID: POLICY-3093 Change-Id: I4def597b054a9ab2f3cc9a4665df04dd1d515ebf Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-06-10Fix Rebase Issue on Sonar Issues apex-pdp-modellapentafd1-21/+0
Deleting a duplicate method inserted in two different reviews Issue-ID: POLICY-3093 Change-Id: Ie7c06c17ad1df380ebcd7129c218f5784152ff0e Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-06-10Merge "Fix Sonar Issues in apex-pdp-basic-model"Pamela Dragosh7-52/+93
2021-06-09Merge "Fix Sonar Issues in apex-pdp-model"Ram Krishna Verma17-214/+249
2021-06-09Fix Sonar Issues in apex-pdp-basic-modellapentafd10-74/+115
Test refactoring and use of Local-Variable Type Inference Issue-ID: POLICY-3093 Change-Id: If19c9ec96ba440a58eff679f276e4b53a26ce1ab Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-06-08Fix Sonar Issues in apex-pdp-modellapentafd17-214/+249
Changes made into model/basic-model Renamed test classes to match the others Issue-ID: POLICY-3093 Change-Id: I7a0d6046ead42a9165aaf96b89511dd8d064d109 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-06-02Merge "Fix Sonar Issues on Apex-pdp"Ajith Sreekumar20-124/+150
2021-05-31Fix Sonar Issues on Apex-pdplapentafd20-124/+150
Changes made into cli-codegen, cli-editor, and core-engine Renamed one test class to match other test classes Issue-ID: POLICY-3093 Change-Id: Ib2d947782021590ffc08d426e7a1607a8c33f98a Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-05-31Fixing issues around policy deployment in APEXa.sreekumar4-33/+59
Following items are fixed. 1) When in PASSIVE state, any policiesToBeUndeployed received in PDP_UPDATE message are not handled. 2) APEX policy deployment fails when policiesToBeUndeployed and policiesToBeDeployed come together in PDP_UPDATE message from PAP. 3) Improve response messages after deployment/undeployment. Change-Id: I8f9c802db4b19c43881c734570b65ad66b3867d5 Issue-ID: POLICY-3332 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-05-13Remove csit folder from policy/apex-pdpRam Krishna Verma7-7644/+0
The csit test files for all repos have been consolidated in policy/docker to maintain them at single place and allow us to trigger verify jobs in gerrit reviews. Issue-ID: POLICY-3257 Change-Id: I26d281b75d91e7bf1250e97b22d0e7a303815ed6 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-12Fix issue where apex-pdp test is failing in gitlaba.sreekumar1-3/+4
One of the testcases in APEX-PDP is failing only in gitlab, but not failing in jenkins or local builds. The reason is "/I/Dont/Exist*" is an invlaid path in jenkins etc, but it is valid in gitlab somehow. Changing this to "/I/Dont/Exist\0" so that the path is invalid irrespective of the build platform. Change-Id: I42bbc9ae21f0d827082f446f8dd416dcc10349e2 Issue-ID: POLICY-3306 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-05-11Merge "Support ':' in Apex Event Avro schema fieldnames"Pamela Dragosh4-10/+124
2021-05-11Update the default logback.xml in APEX to log to STDOUTa.sreekumar1-0/+14
Update the default logback.xml to log to STDOUT, so that while running in standalone mode, logs can be seen easily. Change-Id: Ie0ccdbe11672c33723c920767ce14d1b26fa9762 Issue-ID: POLICY-3303 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-05-10Support ':' in Apex Event Avro schema fieldnamesJohnKeeney4-10/+124
Similar to '.' (_DoT_) and '-' (_Dash_), the ':' (_ColoN_) character can now be used in Apex Event Field names specified using Avro Schema Change-Id: I320058441a1a1a544b9f1619e45c96e71e5aa9e3 Signed-off-by: JohnKeeney <john.keeney@est.tech> Issue-ID: POLICY-3301 Signed-off-by: JohnKeeney <john.keeney@est.tech>
2021-05-07Merge "Code coverage for Service Engine Event"Jim Hahn4-3/+381
2021-05-07Code coverage for Service Engine Eventarkadiusz.adamski4-3/+381
- Increase code coverage for service engine events Issue-ID: POLICY-3092 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I40bda05fc53168d86ec4ac1c72b69a1badb02b38
2021-05-07Code coverage for File Carrier Pluginarkadiusz.adamski5-2/+604
- Increase code coverage for file carrier plugin in service engine Issue-ID: POLICY-3092 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I8c08ee55c9d31792e35a1acc79330c8eef42af56
2021-05-06Merge "Add testcases for policy status and pdp statistics"Pamela Dragosh1-10/+51
2021-05-05Updating APEX base image from policy-jre-alpine to policy-jdk-alpinea.sreekumar1-1/+1
The stackoverflow issue is happening only in standalone mode when RestManager class is called from APEX Javascript logic to post a JSON body, that too 6-7 out of 10 times. To identify the exact root cause may need more investigation, but changing the base image from policy-jre-alpine to policy-jdk-alpine seems to have fixed the issue during local testing. (Issue didn't happen 10 out of 10 times) Change-Id: Ibe718294ff9ab04c70349b3bc52c3c66619f2093 Issue-ID: POLICY-3066 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-05-04Add testcases for policy status and pdp statisticsRam Krishna Verma1-10/+51
Adding testcases to validate policy status and pdp statistics api's. Issue-ID: POLICY-3257 Change-Id: I730451c4abb19bab6ddf10cba58f63ab5ca3a11a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-04Merge "Remove GroupValidationResult"Jim Hahn53-1460/+713
2021-05-03Remove GroupValidationResultJim Hahn53-1460/+713
Removed GroupValidationResult, replacing it with BeanValidationResult. Modified the ParameterGroup subclasses to use BeanValidator, adding annotations where needed to trigger the validations that had been automatically performed by GroupValidationResult. Issue-ID: POLICY-2059 Change-Id: I2c0c01fac355e6cde4d8d6998dc42f8a2e2ebb65 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-04-30Merge "Changes to retain executionProperties per event flow for better ↵Ram Krishna Verma3-19/+6
context handling"
2021-04-28Merge "Support delta policies in apex-pdp"Ram Krishna Verma5-39/+87
2021-04-28Changes to retain executionProperties per event flow for better context handlinga.sreekumar3-19/+6
Change-Id: I11668e9222dd9c61cc3096fa5c754c8702a781bf Issue-ID: POLICY-3227 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-04-27Support delta policies in apex-pdpwaynedunican5-40/+88
Remove scanning of policy list from apex engine. Use the policiesToBeDeployed and policiesToBeUndeployed lists from PDP_UPDATE message instead. Issue-ID: POLICY-3170 Change-Id: Icdde66ef87d9feab83ccb1cf99a64d7870bcaaaa Signed-off-by: waynedunican <wayne.dunican@est.tech>
2021-04-22Merge "Changes to support Kafka over SSL in APEX"Ram Krishna Verma2-2/+17
2021-04-22Merge "Refactor of command line classes"Ram Krishna Verma10-420/+197
2021-04-22Merge "Fix name of target-database property in persistence.xml files"Liam Fallon3-31/+33
2021-04-22Refactor of command line classesadheli.tavares10-420/+197
ApexCommandLineArguments class to have parse() overriden to keep remainingArgs taking the tosca file without -p. Issue-ID: POLICY-3129 Change-Id: Ib067bf4c32992c4477cb6751f65269c103513d10 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-04-21Changes to support Kafka over SSL in APEXa.sreekumar2-2/+17
The Kafka plugin in APEX-PDP already has a field "kafkaProperties" that can take in any properties required for the Kafka client. This is apt to store the SSL related properties as they could change based on the server implementation. To make the communication possible, the only change required in APEX is to allow a property to have an empty value. For e.g., to disable the server host name verification, ssl.endpoint.identification.algorithm must to be explicitly set to an empty string on the client. Change-Id: If3adaeaf11e5fbbd2aff582b5d4ba7824017ea8a Issue-ID: POLICY-3194 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-04-21Merge "Code coverage for plugins jms event carrier"Liam Fallon4-65/+880
2021-04-20Code coverage for plugins jms event carrierarkadiusz.adamski4-65/+880
- Increase code coverage for plugins jms event carrier Issue-ID: POLICY-3109 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I28dd8c5b32eb91f8f5047916e8899439d4c62374
2021-04-19Fix name of target-database property in persistence.xml filesktimoney3-31/+33
Updated property javax.persistence.target-database to eclipselink.target-database Removed tools/tools-common/testing.txt Added Modifications Copyright to headers Updated Postgres references to MySQL Updated user information Issue-ID: POLICY-3059 Change-Id: I42ad294458809c0a3dca4d3ce9dd1ae5a7daa417 Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-04-19Merge "Update jMeter test files"Jorge Hernandez2-2256/+5175
2021-04-15Code coverage for service engine event packagearkadiusz.adamski12-0/+1049
- Increase code coverage for service engine event package Issue-ID: POLICY-3092 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: Iaed5fc31f242a47dd1dc46f5d5c74c43c720e9ee
2021-04-15Merge "Code coverage for jms protocol event plugin"Ajith Sreekumar5-3/+420
2021-04-15Update jMeter test filesarkadiusz.adamski2-2256/+5175
- Update performance test file - Update stability test file Issue-ID: POLICY-3109 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: Ibcab9cd012ed9ea50cb389f45ae7d8149b850a2d
2021-04-15Code coverage for jms protocol event pluginarkadiusz.adamski5-3/+420
- Increase code coverage for jms protocol event plugin Issue-ID: POLICY-3092 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: I615d56736b548b3d5f552ae1becac771d445b477
2021-04-08APEX-PDP incorrectly reports successful policy deployment to PAPa.sreekumar2-4/+7
Change-Id: I2fbf0303805b4c5feead522ad78fd4ef518659af Issue-ID: POLICY-3173 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-04-07Merge "Use sh instead of ash in apex-pdp"Pamela Dragosh8-44/+40
2021-04-07Use sh instead of ash in apex-pdpJim Hahn8-44/+40
Issue-ID: POLICY-3160 Change-Id: Ic48de952b5717e4f33d0eac47b41c41a2a97b883 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-31Update jMeter test filearkadiusz.adamski1-7/+7
Issue-ID: POLICY-3093 Signed-off-by: arkadiusz.adamski <aadamski@est.tech> Change-Id: If9600785d46bed5596847991690fe1631b97bbf3