summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-07-13Fix assertTrue SONAR issues in apex-pdp/examples and apex-pdp/modelJvD_Ericsson19-228/+234
Replace assertTrue with assertEquals and assertFalse with assertNotEquals in apex-pdp/examples and apex-pdp/model Issue-ID: POLICY-2690 Change-Id: Ie863dd95ccead62268689a4a8388f9b6e8821649 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2020-07-06Merge "Replace try/catch blocks with assertj - apex-pdp"Ram Krishna Verma8-544/+178
2020-07-06Merge "Fix URL checking on REST plugins"Jorge Hernandez5-63/+50
2020-07-06Fix URL checking on REST pluginsliamfallon5-63/+50
The URL parameter must always be provided on the REST client carrier plugin The URL parameter must always be provided on the REST requestor consumer The URL parameter is not required on the REST requestor producer This patch fixes the implementation to always checks the URL for existence on the REST Client plugin. The current checks on the REST Requestor are correct for the REST requestor plugin consumer and producer classes, so the checks are not required in the REST Requestor parameters. Issue-ID: POLICY-2692 Change-Id: I4e1534202002cf4a03bd159ac97b2a4f5b1746ab Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-07-06Replace try/catch blocks with assertj - apex-pdpwaynedunican8-544/+178
Replaced try/catch blocks in apex-pdp with assertj assertions Issue-ID: POLICY-2451 Change-Id: I83375b9e0f38d399b84bb68ce5d441e1cec73ef5 Signed-off-by: waynedunican <wayne.dunican@est.tech>
2020-07-03Fixing issue with policy chaining after CDS request failure in APEXa.sreekumar2-12/+13
Change-Id: Id27343c21caaf69e30ee13076a2963c256fab55d Issue-ID: POLICY-2687 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-07-01Fixing ConcurrentModificationException during multiple policy deployment in APEXa.sreekumar1-24/+34
Change-Id: Ib39e798d733727bdc676755b66adf2c499e618af Issue-ID: POLICY-2655 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-06-30Add tests for XPathReaderToineSiebelink2-0/+94
XPathReader had some SQ vulnerabilities whihch have been udpated in previous commit This is just making sure same code is now covred by testware Issue-ID: POLICY-2654 Change-Id: Ie40ee015b517b0cc3c5986a67513543653f53a61 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2020-06-30Merge "Removed CDS simulator from apex-pdp"Jim Hahn3-104/+10
2020-06-29Removed CDS simulator from apex-pdpJim Hahn3-104/+10
As the simulator now resides in policy-models, the code for it is no longer needed in apex-pdp. Deleted it. Issue-ID: POLICY-2676 Change-Id: I8ae6c8d860a47e5e7ba0509c99e4e2676109de25 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-06-29Fix SonarQube vulnerabilitiesToineSiebelink6-10/+34
Added logging to handle file io boolean returns Added security related settings to xml factories and builders Issue-ID: POLICY-2654 Change-Id: Ibc0a01f978bfc446e1dc1f8ad952d1305a7b7178 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
2020-06-25Fixing error with Main class name usage in APEXa.sreekumar1-2/+2
Change-Id: I0da222e592e6e29f0afca4a1515d8f126fe91cbb Issue-ID: POLICY-2623 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-06-25Merge "Remove thread in JavascriptExecutor"Liam Fallon9-704/+103
2020-06-23Remove thread in JavascriptExecutorhuaxing9-704/+103
This change is basically a rollback of https://gerrit.onap.org/r/c/policy/apex-pdp/+/104230, with minor refactoring. The problem that 104230 tried to address was supposed to be caused by https://jira.onap.org/browse/POLICY-2463. With this rollback, apex-pdp increases performance and reduces memory usage. Issue-ID: POLICY-2572 Signed-off-by: huaxing <huaxing.jin@est.tech> Change-Id: I3a52d0ead0c1e530d218f9e3aba8b3eb5558abaf
2020-06-23remove build warning with json dependencyHenry.Sun1-5/+0
Signed-off-by: Henry.Sun <henry.a.sun@est.tech> Change-Id: Ieceb3e129620ced23552027e71fd09a2bd91acbe Issue-ID: POLICY-2649
2020-06-23Merge "Updating all Apex dependencies"Ram Krishna Verma12-15/+15
2020-06-23Remove apex-pdp Jackson security issueliamfallon4-19/+8
We should use the managed version of jackson from policy-parent rather than a specific apex-pdp version. Also upgrade the version of Avro, avro 1.9.2 uses a newer somewhat more secure version of Jackson. Issue-ID: POLICY-1508 Change-Id: If32218816ae76cf3cf6ddc8980e3a37e7e2ffd19 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-06-22Updating all Apex dependenciesRossC13-17/+16
Issue-ID: POLICY-2387 Change-Id: I6d9222cfe8841a4a4532d95dbc6f8b3f3d15ac87 Signed-off-by: RossC <ross.carter@est.tech>
2020-06-19Changes for checkstyle 8.32liamfallon556-985/+182
Issue-ID: POLICY-2188 Change-Id: I56bbf3aa3bd9e1ef433cc93ad2be0c54d141a2a5 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-06-15Merge "Improve robustness of unit testing"Ram Krishna Verma7-141/+34
2020-06-12Remove logback.xml files bundled as part of jara.sreekumar2-113/+0
Change-Id: I0c15bb6bddb00f5d1fa00ea48e570bc7c270c43d Issue-ID: POLICY-2627 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-06-12Improve robustness of unit testinghuaxing7-141/+34
Issue-ID: POLICY-2630 Signed-off-by: huaxing <huaxing.jin@est.tech> Change-Id: I6475f9272c1a770836af537c13b23e486b66ac3e
2020-06-03Merge "Stability test for Apex-pdp"Pamela Dragosh1-30/+2725
2020-06-02Stability test for Apex-pdpaditya.puthuparambil1-30/+2725
Issue-ID: POLICY-2457 Signed-off-by: aditya.puthuparambil <aditya.puthuparambil@est.tech> Change-Id: Id47155d172f2b6386c94470dd5068ee09d2a8238
2020-05-28Point to parent SNAPSHOTPamela Dragosh1-1/+1
Issue-ID: POLICY-2319 Change-Id: I0699b2d2791e07df89b7a1e9c78320ced3c14f26 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-05-21Bump apex master to 2.4.0RossC88-89/+89
Issue-ID: POLICY-2514 Change-Id: I764cfe41ed8cf8ffebd4ff076d0b76b79d61e142 Signed-off-by: RossC <ross.carter@est.tech>
2020-05-20Bump Apex to 2.3.3RossC89-89/+89
Issue-ID: POLICY-2514 Change-Id: I5b130b052150eb0e51759c751b83ab9d6f199759 Signed-off-by: RossC <ross.carter@est.tech>
2020-05-20Release apex 2.3.2 docker6.0.0-ONAPRossC1-0/+8
Issue-ID: POLICY-2514 Change-Id: I6dbdc5057a944792372ebcd02fe30f97fe7b6686 Signed-off-by: RossC <ross.carter@est.tech>
2020-05-20Release apex 2.3.2 java artifactsRossC1-0/+4
Issue-ID: POLICY-2514 Change-Id: If247d2ea6d7aabe5c82776ddf46ddf623247cc13 Signed-off-by: RossC <ross.carter@est.tech>
2020-05-19Merge "Point to released artifacts"Ram Krishna Verma1-3/+3
2020-05-19Point to released artifactsPamela Dragosh1-3/+3
Issue-ID: POLICY-2514 Change-Id: I76b58cd69dcba6010867a583edb1b844eeec20d4 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-05-15Fix Web Socket server connection failureliamfallon4-7/+32
In the Web Socket unit test, sometimes the server does not start quickly enough and is not available when the wek socket client connects. This review changes the unit test to wait for up to 2 seconds for the web socket server to come up. Issue-ID: POLICY-2571 Change-Id: I0c970783f368d691d07683bad0cdc28b681e5334 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-05-15Unit test fails when port number occupiedliamfallon1-7/+10
If the port specified in the allocateAddress() is occupied, the method returns the next highest available port. The unit test is changed to reflect this behaviour. Issue-ID: POLICY-1916 Change-Id: I02f63476d5f8f3ef2b2363afb3e23de04264e810 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-05-08Unit tests for various classesRossC8-6/+490
Issue-ID: POLICY-1916 Change-Id: Ie7cafa16ce12ca542a4e76307caddb36b7753990 Signed-off-by: RossC <ross.carter@est.tech>
2020-05-01Minor fixes in examples-vcpeRam Krishna Verma2-271/+5
Issue-ID: POLICY-1916 Change-Id: Ie3d1c33648e7996ac063bbaac6ea11f3df03564b Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-05-01Minor fixes in examples-grpcRam Krishna Verma2-264/+5
Issue-ID: POLICY-1916 Change-Id: I4bd93d72f234e1ce572b11bcb0621078480e061b Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-04-27Point to latest SNAPSHOTsPamela Dragosh1-3/+3
Glassfish security fix in parent, also fixes in common/models Issue-ID: POLICY-2510 Change-Id: Id5186d4e2610a56db6ef66be62b4cc5177018c68 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-17Merge "Fix sonar issues"Pamela Dragosh4-30/+24
2020-04-15Bump policy-apex-pdp to 2.3.2-SNAPSHOTa.sreekumar89-89/+89
Change-Id: Ic668ab20498bdc41edc78f52c7ce9d89a1385f19 Issue-ID: POLICY-2378 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-04-15Release 2.3.1 apex docker imagePamela Dragosh1-0/+8
Issue-ID: POLICY-2378 Change-Id: I0d3d2733083b50dc4b0f5e8126e7014d4ef97a4d Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-15Fix sonar issueshuaxing4-30/+24
Issue-ID: POLICY-1913 Signed-off-by: huaxing <huaxing.jin@est.tech> Change-Id: Id1a9a6b6f7a9c8c74dd69bd0d30af05162a92cd1
2020-04-14Release apex 2.3.1Pamela Dragosh1-0/+4
Issue-ID: POLICY-2378 Change-Id: I7b966eca01f8baf0be3461b33efb8faaf12eb29c Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-14Merge "Point to released common/models"Ram Krishna Verma1-2/+2
2020-04-14Point to released common/modelsPamela Dragosh1-2/+2
Issue-ID: POLICY-2378 Change-Id: I3d4ef6b6b8f61c0af23676189c9bf6eec529e3f3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-14SONAR issue fixaditya.puthuparambil3-51/+59
Issue-ID: POLICY-1913 Signed-off-by: aditya.puthuparambil <aditya.puthuparambil@est.tech> Change-Id: Ie6dccc50ad63c5fdca1e79d7985aec2455041b56
2020-04-13Point common/models fixPamela Dragosh1-2/+2
Fix for naming policy and yaml string conversion. Issue-ID: POLICY-2486 Change-Id: I1fc63ab7fdde63c5555d0bae784aee1309f7f8c3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-11Point to released parent, common modelsPamela Dragosh1-3/+3
Issue-ID: POLICY-2378 Change-Id: I219f1ba6c816166c98346df47a68d21b9736b6b5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-07Make sure Editor's css overrides common csshuaxing1-0/+8
Issue-ID: POLICY-2446 Signed-off-by: huaxing <huaxing.jin@est.tech> Change-Id: I1bc45367884ec78436a97256ac4286ab79c8a6b7
2020-04-06Fix intermittent unit test failures WebSocketliamfallon4-15/+25
The Web Socket server is marked as started before the start process has complted. This change fixes that issue. Issue-ID: POLICY-1470 Change-Id: I5b5ef5832893d884a6551b0516df91cb71d6c622 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-04-05Fix intermittent unit test failures reseterquestorliamfallon9-310/+232
When consumers and producers are paired as in the case of the REST Rquestor, both sides must come up and be wired together in the initiation phase of apex-pdp before the consumers and producers start handling envents. In the ApexActivator class, the consumers were started immediately after they were initialized meaning that a consumer could return events to a producer that had not started yet. This change fixes the ApexActivator so that it waits until all consumers and producers are initialized before starting event handling. It also fixes the timings on RestRequestor tests and tidies up the unit tests. Issue-ID: POLICY-2469 Change-Id: Ib66d9531bf21f2a879ab33795aded4f48e7bfbc6 Signed-off-by: liamfallon <liam.fallon@est.tech>