aboutsummaryrefslogtreecommitdiffstats
path: root/PolicyEngineAPI/src/test/java/org/onap
AgeCommit message (Collapse)AuthorFilesLines
2018-04-24Add websocket client code.pa834y2-276/+176
Change-Id: I2d3939c698a0df6bec068063f08566226f65bfd3 Issue-ID: POLICY-756 Signed-off-by: pa834y <pa834y@att.com>
2018-04-18Remove insecure dependency on PolicyEngineAPIliamfallon1-3/+7
The insecure dependency tyrus-container-grizzly-client is part of Tyrus, a Java web socket implementation library. A direct substitution of this library is not available so the code in AutoClientEnd.java and ManualClientEnd.java was adapted to work with the library org.java-websocket.Java-WebSocket that does not seem to have any vulnerabilities when tested with the org.owasp.dependency-check-maven plugin. The purpose of this submission is to see if the new library does indeed remove the vulnerability. If so, the implementation in AutoClientEnd and ManualClientEnd must be cleaned up. Change-Id: I961635aaea42c2f847edf11ee77e2961cdfb097b Issue-ID: POLICY-744 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-03-27JUnit additions and powermock pom fixesbobbymander1-645/+705
Issue-ID: POLICY-602 Change-Id: I2484b47cc52a07413de69c1022a056fd0cf2d7d7 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-03-08Merge "JUnit additions for BRMS,API"Jorge Hernandez1-0/+52
2018-03-07JUnit additions for BRMS,APIbobbymander1-0/+52
Issue-ID: POLICY-598 Change-Id: I6a41d510d95afd8538e7775fe12d6e07771dd307 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-03-06Add new constructorDeterme, Sebastien (sd378r)1-1/+16
Add a new constructor to PolicyEngine to support Properties parameters instead of a file. Issue-ID: CLAMP-136 Change-Id: Id82a736cac8ac5603ff3627a9ce2ac5af4197a45 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-01JUnit additions for PAP-REST,APIbobbymander1-0/+45
Issue-ID: POLICY-600 Change-Id: I68020230d370950c0323a544910ad54015e1a08a Signed-off-by: bobbymander <bobby.mander@att.com>
2018-02-23Add JUnit tests policy/engine PolicyEngineAPIwaqas.ikram2-133/+1298
Change-Id: I8d7a76836759b042c83349c2b875fb77085b531c Issue-ID: POLICY-606 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-02-20JUnit test for policy/engine PolicyEngineAPIwaqas.ikram14-2674/+2361
Change-Id: I31991245bb5cc877722f7ce14530222a102d6472 Issue-ID: POLICY-606 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-02-16New JUnit for PolicyEngineAPIbobbymander1-0/+75
Issue-ID: POLICY-338 Change-Id: I711bb0c219534a537c3d35331b8ef8703423ad63 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-02-05Technical debt and fix JUnit testPamela Dragosh1-13/+0
* One statement per line * private constructor for class with statics * Fix silly JUnit test Issue-ID: POLICY-474 Change-Id: Ie760826879febbbc4db4f03079ae1f847f2194dd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-02-02Technical debt reductionPamela Dragosh1-2/+2
* empty constructor * Unnecessary imports * try-with-resources * missing @Override * useless parens * proper boolean detection * useless imports * Use Set vs HashSet * moving statements to separate lines Issue-ID: POLICY-477 Change-Id: I5fae9c5c8e7d30f731a1caefc8a5271cf382e0a0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-02-01Reduce technical debt and add JUnitPamela Dragosh20-52/+489
* Addressed some very simple cyclic complexity * Added simple JUnit tests and finished others * Removed useless assignments Issue-ID: POLICY-477 Change-Id: Ic919bbf78ad2732a430c32f1feb3c88678be710d Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-12-21Sonar cleanup for PolicyEngineUtilsMagnusen, Drew (dm741q)1-2/+3
Changes to resolve some sonar "major" issues in the PolicyEngineUtils module. Patch 2: Updated the NotificationStoreTest junit to account for the return of a "Collections.emptyList()" rather than "null" in StdPDPNotification class. Patch 3: Updated the StdPDPNotificationTest junit to account for the return of a "Collections.emptyList()" rather than "null" in StdPDPNotifaction class. Issue-ID: POLICY-474 Change-Id: I925774ac181fd38d1206637f47ab27ba499629ef Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
2017-08-23Fixes for sonar critical issuesTej, Tarun6-395/+13
Fixes for critical and blocker issues reported in sonar. Issue-Id: POLICY-113 Change-Id: I50969fe93a94b0497f3fb30864a6c45e63208fe6 Signed-off-by: Tej, Tarun <tt3868@att.com>
2017-08-11Fixes for Backward compatibility issuesTej, Tarun1-4/+4
Changes to the API interface and Java SDK to support backward compatibility. Issue-Id: POLICY-165 Change-Id: I2efe8196614cfbd8b733abceb505bd6b91aa97f7 Signed-off-by: Tarun Tej Velaga <tt3868@att.com>
2017-07-31[POLICY-73] replace openecomp for policy-engineGuo Ruijing59-0/+14723
Change-Id: I54072f6bcd388c0e05562614ee89b4ae7ad67004 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com> Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>