summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2019-04-15Fix security problem with Zookeeperliamfallon2-1/+8
Issue-ID: POLICY-1540 Change-Id: I5c549a1dffb21b54c81a44ba69ca49cb24732558 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-04-10Remove hibernate from apexliamfallon9-827/+1
Issue-ID: POLICY-1368 Change-Id: I67f448fc9d89eef4829cd6f999f5c21ac8ebff12 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-04-10Fix Kafka partiion support in APEXliamfallon1-3/+22
The kafka producer property ‘partitioner.class’ should be configurable via the EngineConfig.json file so that a specialized or custom Kafka partitioner can be used. Issue-ID: POLICY-1627 Change-Id: Ic36ccdf3d244ab932b58c3e2ae1cd668249726c5 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-19Fix checkstyle/Sonar issues on juint/sonar fixesliamfallon28-27/+62
Recent changes to increase code coverage and fox Sonar bugs have introduced checkstyle and further Sonar issues. This review cleans those up. Issue-ID: POLICY-1523 Change-Id: I829217ef77d52e57f9713cfeee5b122e1f25efbc Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-19Use Assertions class from policy-commonliamfallon3-3/+6
Change import line in all classes that use the Assertions class, there are a lot of them. Issue-ID: POLICY-1264 Change-Id: I8480264be4e36348b3fc63acf1bc36e9c9dd250b Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-08Merge "Increase test coverage for plugins-event-carrier"Liam Fallon4-0/+439
2019-03-08Increase test coverage for plugins-event-carrierParshad Patel4-0/+439
Add basic JUnit test cases for plugins-event-carrier-restserver Issue-ID: POLICY-1513 Change-Id: I36e41bd05be71c44eb9e94350f4614437b0d205b Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2019-03-07Merge "Increase test coverage for plugins-executor-js"Jorge Hernandez7-70/+535
2019-03-06Merge "Increase test coverage for plugins-event"Liam Fallon4-0/+300
2019-03-06Increase test coverage for plugins-executor-jsHengye7-70/+535
Add junit test cases into apex-pdp/plugins/plugins-executor-javascript Issue-ID: POLICY-1523 Change-Id: Ie8017be2f7507fdb641a4020e13152c656cadf04 Signed-off-by: Hengye <yehui.wang@est.tech>
2019-03-05Increase test coverage for plugins-eventParshad Patel4-0/+300
Add JUnit test cases for plugins-event-carrier-websocket Issue-ID: POLICY-1513 Change-Id: I5f2a8dacfff4c14cf4a24e9258b5a551cecc1489 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2019-03-01Merge "Increase test coverage for plugins-executor-mvel"Pamela Dragosh7-15/+496
2019-03-01Merge "Increase test coverage for plugins-executor-jruby"Pamela Dragosh7-15/+416
2019-02-28Increase test coverage for plugins-executor-jythonning.xi7-63/+506
Add junit test cases into apex-pdp/plugins/plugins-executor-jython Issue-ID: POLICY-1523 Change-Id: I2545a9cefc6b4b9a53200b98081ddd8bc8274b40 Signed-off-by: ning.xi <ning.xi@est.tech>
2019-02-28Increase test coverage for plugins-executor-jrubyshaoqiu7-15/+416
Add junit test cases into apex-pdp/plugins/plugins-executor-jruby Issue-ID: POLICY-1523 Change-Id: I2ed06a69cf991d744aa5c4c69f605fdf1dca6524 Signed-off-by: shaoqiu <tim.huang@est.tech>
2019-02-28Increase test coverage for plugins-executor-mvelHengye7-15/+496
Add junit test cases into apex-pdp/plugins/plugins-executor-mvel Issue-ID: POLICY-1523 Change-Id: I74d47974a326c7fbd53a0b7d88262ef1dbd54c8c Signed-off-by: Hengye <yehui.wang@est.tech>
2019-02-26Merge "Increase test coverage for plugins-event"Jorge Hernandez3-0/+446
2019-02-26Increase test coverage for plugins-eventParshad Patel3-0/+446
Add basic JUnit test cases for plugins-event-carrier-jms Issue-ID: POLICY-1513 Change-Id: I68fa36bc988745108014f47a57fc02bc2ceed0c7 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2019-02-23Fix checkstyle errors on testsliamfallon3-0/+16
Issue-ID: POLICY-1513 Change-Id: Id61df043adf398a0493916f6116ff5858c60fb29 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-02-22Change versions of Zookeeper and C3P0liamfallon4-37/+55
This review changes the versions of Zookeeper and C3P0 to resolve security issues. It also merges the context test utils module into the context test because that module was misplaced and put an incompatible Zookeeper dependency in the APEX context module. Issue-ID: POLICY-1540 Change-Id: I86048ae1fc8b818611f423d6fd1f4a9fcc3f76f9 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-02-20Increase test coverage for apex-pdp/pluginsParshad Patel3-0/+233
Add basic JUnit test cases for plugins-event-carrier-kafka Issue-ID: POLICY-1513 Change-Id: I009547115705496a850a9609416cdf71f52fb936 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2019-02-05Fix bug with Apex rejecting HTTP 2xx responsesliamfallon2-2/+2
APEX rejects all HTTP responses except 200. This change accepts any HTTP 2xx response code as a valid response. Issue-ID: POLICY-1289 Change-Id: Ief681ba4dac1ef3ff5f257dd931569bd2274d017 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-19Add example policy for HTTPSliamfallon4-16/+24
Added an example of how to configure HTTPS for an Apex policy. Issue-ID: POLICY-1222 Change-Id: Iea8a8accac32f6d25c64a8324e202ad5e6221c7a Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-18Add Java property parameters for HTTPSliamfallon1-1/+1
Issue-ID: POLICY-1222 Change-Id: I4a683cf2f52e7f1d28164954f84d0744b5ca7e9c Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-11Add period after inheritDocliamfallon2-3/+3
Issue-ID: POLICY-1074 Change-Id: I88dc888b2a374b38499241f578a36dd116e2b85b Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-11Merge "Remove unused parameter from test data"Pamela Dragosh13-28/+10
2018-12-11Remove unused parameter from test dataliamfallon13-28/+10
The "restRequestTimeout" parameter is not used in the current version of Apex, it was replaced by the "requestorTimeout" paramter. However, the parameter remained in the JSON data files. Also updated to improve output of messages during unit test. This review also sets the Jersey injection dependendy scope to "test" Issue-ID: POLICY-1074 Change-Id: I75f495f571c8101310bd1eaec01a305318346cd9 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-11Merge "Support HTTP headers in REST Client"Jorge Hernandez15-46/+2366
2018-12-08Fix checkstyle issuesliamfallon4-5/+25
Some minor line length and formatting checkstyle warnings fixed. Change-Id: Ib92069bbdb444560083e6d0dbf5d16a3ab824d82 Issue-ID: POLICY-1074 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-08Support HTTP headers in REST Clientliamfallon15-46/+2366
Fixed REST client plugin to supprot HTTP headers and add unit test to plugin. Change-Id: I6a71ab7f83ed2126b8600bb5e586f971dbdacdc0 Issue-ID: POLICY-1222 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-06Merge "Support HTTP headers in REST Requestor"Jorge Hernandez15-24/+1092
2018-12-04Support HTTP headers in REST Requestorliamfallon15-24/+1092
Change-Id: Iea4211e7d3324f5ea6244f45c91241a4067d8d33 Issue-ID: POLICY-1222 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-04Add unit test for Java executorliamfallon10-26/+603
Code coverage in the Apex-PDP plugins is very low. JUnit coverage will be increased for the Plugins over the Dublin design timeline. Issue-ID: POLICY-1379 Change-Id: Ie70ab5a9be650818cb330ec5be2a89a5db6153c5 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-03Use Parent Eclipselinkliamfallon1-1/+0
Issue-ID: POLICY-1360 Change-Id: I99a9e7bf60590fd0da5d7ba001e8ab322623fee6 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-11-20Refactor Apex benchmark testsliamfallon2-2/+2
Apex performance tests are refactored and reorganised to be all in the one place and to be coherent. A test REST server that can generate events in batches is introduced and this can be configured to respond to REST calls from Apex with various batch sizes that can be varied for performance tests. Actual performance tests are added for the various executors in Apex. Change-Id: I692b41e1e4451e821a618c64dead5cc8e9685d08 Issue-ID: POLICY-812 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-11-20Rename test classes in apex-pdpParshad Patel17-20/+20
Make test classes name consistence under auth, model, plugins, testsuits, tools projects Issue-ID: POLICY-1263 Change-Id: I49ec9a9f5b457d6381e693de2c04ec0268ad1b02 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-11-07Refactor unit test dataliamfallon14-7214/+1329
There were many copies of test policies and examples strewn through the Apex unit tests. This change cleans up the unit tests so that a single version of all example policies is used in all tests. Also added a new relative file root command line parameter to Apex to allow the root of relative paths in configuration files to be set. Apologies for the size of this review but unfortunately all of this must be done in one shot. Issue-ID: POLICY-1252 Change-Id: Ibbb18fbf18e3897a1c61301d0a65e62bc643a0e9 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-11-01Upgrade Jython for security, add doc warningliamfallon2-2/+8
Upgrading Jython to use a full release version. This will probably noit remove security problem but upgrades Jython to the most popular version. A warning is added telling developers to check extra pcakages in the Jython plugin documentation. Issue-ID: POLICY-1065 Change-Id: I83275204c1905bd48dd5ea58e98dcbbd9c47195f Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-31Set new master version for Dublinliamfallon33-99/+66
Issue-ID: POLICY-1232 Change-Id: If43c40e9e13bd9387e2b6ee876717f8413a17e34 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-24Fix refering to snapshot in policy/apex-pdp2.0.1ramverma33-33/+33
Issue-ID: POLICY-1213 Change-Id: I9187462aa470cff6ca7adc750c8a666bf8e15429 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-10-05Fix sonar bugs in apex-pdpramverma1-2/+7
Change-Id: I1ab9b9d9b0b8d1655301959d7d6b9ab3cc87eba3 Issue-ID: POLICY-954 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-10-04Fix creation of sub Avro itemsliamfallon3-28/+162
When an Avro object is created, nested sub avro objects are not created automatically. This change allows invocation of a method to create sub objects of Avro objects. Issue-ID: POLICY-954 Change-Id: Ie510867f2631ba6a8c6f5452c08aef5db67e8997 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-22Fix sonar problems in Apexliamfallon7-84/+199
Fixed some easy to resolve Sonar issues. Issue-ID: POLICY-1034 Change-Id: Ia8e4606bd4307daca499b4a74c96135211e572fd Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-20Fix bug with POJO events in APexliamfallon4-7/+6
When an envet should be decoded entirely into a POJO and is too complex for Avro, apex decoding breaks. This reviuew fixes thsi issue. Issue-ID: POLICY-1034 Change-Id: Iccd739c4bb5c1645a2a7165f5bbfdfd4b964d79e Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-19Fix license issue with Hibernate dependencyliamfallon1-1/+1
Change-Id: I0f0ce81661c505a7df4b6199c6d0baf7a9d0ce3e Issue-ID: POLICY-1059 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-18remove license issuesliamfallon4-15/+62
Change the versions of some second order dependencies to mitigate license issues. Change-Id: I39745ec1eb7c72fb481a4adafc2805e4bbbd8386 Issue-ID: POLICY-1059 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-17Merge "Re-implement Kafka tests that periodically fail"Jorge Hernandez2-1/+10
2018-09-16Fix Sonar issues in apexliamfallon7-11/+11
Fixing various Sonar issues in apex. Issue-ID: POLICY-1034 Change-Id: Ie693637d75bd7e38c71b7ba04886fb75636276ed Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-15Re-implement Kafka tests that periodically failliamfallon2-1/+10
The Kafla integration tests fail, this change re-implements the tests using a test framework from salesforce.com i Issue-ID: POLICY-1034 Change-Id: Iffcc9e0a9f419c8ec439771be7a7a58faa2f9860 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-14Fix exception not logged or rethrownliamfallon8-12/+12
Eclipse sonarlint does not check for exception dropping by default, it must be configured. This commit addresses exception dropping in apex. Change-Id: I406838990b3424c2912124b25d7326502cacc96c Issue-ID: POLICY-1034 Signed-off-by: liamfallon <liam.fallon@ericsson.com>