summaryrefslogtreecommitdiffstats
path: root/ONAP-PDP-REST/src/test/java/org/onap
AgeCommit message (Collapse)AuthorFilesLines
2018-08-30Upgrade to policy/parentPamela Dragosh1-316/+358
Change from oparent to policy/parent which inherit from the latest oparent. The latest oparent has dependencyManagement recommendations from the ONAP Security sub committee that the policy team is adhering as part of the effort to consolidate security work across projects. Change-Id: I1a43fc5a04dbc8c4cb2b7bedbca67ad3e9dd120b Issue-ID: INT-619 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-08-10Add PAP Policy parameter builder xacml policykrishnajinka1-34/+37
Fix Sonar flagged major issue about 14 params instead of 9 in the constructor of std pap policy class. Commit5 for modify constrctor.fix test Issue-ID: POLICY-1016 Change-Id: I79c8482b7fc4e203cb18402ba2b5a68a120c57b1 Signed-off-by: krisjinka <kris.jinka@samsung.com>
2018-04-02JUnit additions for PDP,PDP-REST,SDK,XACMLbobbymander1-80/+106
Issue-ID: POLICY-600 Change-Id: I8052451c3f66116f361f2963fcc2727c022dd4d9 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-03-27JUnit additions and powermock pom fixesbobbymander2-487/+473
Issue-ID: POLICY-602 Change-Id: I2484b47cc52a07413de69c1022a056fd0cf2d7d7 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-03-26New Optimization PolicyMichael Mokry3-7/+127
This is the new Optimization Policy to support the Integration of the OOF Policy Model into the Policy Platform. Added changes from Frank Wang to fix the following issues with existing Model Parser: 1. TOSCA Rendering issues 2. Matching Attributes support 3. ImportModelAPI to support TOSCA model upload via REST API Running local Sonar tonight to start fixing Sonar issues Added changes per review comments and fixed Sonar issues Change-Id: Ia8ce09c28a718ce4460475e76a750caef774bd6b Issue-ID: POLICY-622 Signed-off-by: Michael Mokry <mm117s@att.com>
2018-03-22Merge "Fix vulnerabilities and bugs in policy/engine"Jorge Hernandez7-14/+14
2018-03-21JUnit additions for PDP-REST,REST,SDK-APPbobbymander1-0/+82
Issue-ID: POLICY-584 Change-Id: I3b16e2a957e67ecfe5c28d2afaa09771ae891216 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-03-21Fix vulnerabilities and bugs in policy/engineeramkve7-14/+14
Code fixes for 1 bug and 17 vulnerabilities reported by Sonar in policy/engine Change-Id: I7b641795c790ec15418bd9ae3a414279e1b0f733 Issue-ID: POLICY-662 Signed-off-by: eramkve <ram.krishna.verma@ericsson.com>
2018-03-21Merge "Fix all bugs reported by Sonar in policy/engine"Pamela Dragosh1-1/+1
2018-03-20Fix all bugs reported by Sonar in policy/engineeramkve1-1/+1
Code fixes for 27 bugs reported by Sonar in policy/engine Change-Id: I96da96b38a2e2954ec549e5cdf6ed3ad1d76722c Issue-ID: POLICY-662 Signed-off-by: eramkve <ram.krishna.verma@ericsson.com>
2018-03-14Update oparent version to 1.1.0liamfallon7-3/+15
Directive from ONAP project that all repos should be updated. Change vierified with a build with .m2 /org/onap cleared. The test cases are updated becasue changing the oparent version changed the order of test execution and tests failed due to the static data in PAPServices not being cleared. Clearing of PAPServices data in those test cases is now done in an @After method. The test case in the test below has a test dependency: ONAP-PDP-REST/src/test/java/org/onap/policy/pdp/rest/notifications/test/NotificationTest.java depends on com.att.aft.dme2 version 3.1.200-oss That dependency was added to the POM of ONAP-PDP-REST Issue-ID: POLICY-693 Change-Id: Ie070f9e94216f4a81f114380782a834ce8663fd5 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-03-08JUnit additions for PDP-REST,ONAP-SDK-APPbobbymander3-0/+144
Issue-ID: POLICY-602 Change-Id: I354415df7292656d60ce573fb5b004f5de25899a Signed-off-by: bobbymander <bobby.mander@att.com>
2018-03-06PolicyApiUtils junitsMagnusen, Drew (dm741q)1-0/+268
Added some junits for the PolicyApiUtils class. Issue-ID: POLICY-602 Change-Id: I393b636021c18d2406341f7fd8246fd342ab6f11 Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
2018-03-01Added Junits for Policy PAP-RESTrb71471-2/+2
Issue-ID: POLICY-600 Change-Id: Icb67ac587e614f663416b3ea0a03ca6e5b02c621 Signed-off-by: rb7147 <rb7147@att.com>
2018-02-28More junits for PDP-RESTMagnusen, Drew (dm741q)4-6/+512
More junits for the org.onap.policy.pdp.rest.impl/jmx packages. Issue-ID: POLICY-602 Change-Id: I2af2fc3280314a8d6c1e9c352eda042c7fea7932 Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
2018-02-26Merge "Added junits to increase coverage"Pamela Dragosh2-15/+160
2018-02-26Added junits to increase coverageMAGNUSEN2-15/+160
This commit adds some junits which touch several classes in the notifications package in the ONAP-PDP-REST project. Issue-ID: POLICY-602 Change-Id: Ie99ddd03841d4063aba64781bf08a38d2a25f0ed Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
2018-02-26JUnit additions for BRMS,PDP-REST,RESTbobbymander4-3/+88
Issue-ID: POLICY-598 Change-Id: I397ed925bdb43a4b2f7a94cc4692b6506f650ede Signed-off-by: bobbymander <bobby.mander@att.com>
2018-02-26JUnit additions for PDP,PDP-RESTbobbymander1-0/+52
Issue-ID: POLICY-600 Change-Id: Ia5584011cbd42b9b49953d714efbeb5956b9b295 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-02-22JUnit small additions for PAP-REST,PDP-REST,XACMLbobbymander1-0/+53
Issue-ID: POLICY-600 Change-Id: I1b012dd1dbc49c10cd47b5f100e8ccef6c92f70b Signed-off-by: bobbymander <bobby.mander@att.com>
2018-02-20Added Junits to ONAP-PDP-RESTMichael Mokry6-0/+606
Junits to cover classes in the api/services package that were at 0% coverage Change-Id: Ic92b9db4a8beea827b9b85de826da909b02ea1bd Issue-ID: POLICY-338 Signed-off-by: Michael Mokry <mm117s@att.com>
2018-02-19Fix compilation issue due to generic ExceptionJim Hahn1-5/+2
After modifying common to remove generic Exceptions, policy/engine would no longer compile. Had to modify policy/engine to accomodate the specific exception. Change-Id: If339285235994119009a8dcf9484bc81016e2600 Issue-ID: POLICY-246 Signed-off-by: Jim Hahn <jrh3@att.com>
2018-02-15Adding Junits in ONAP-PDP-RESTMichael Mokry1-0/+79
- This commit adds one Junit for PAPServices - I needed to make a minor modification to the PAPServices class in order to set the PAPs Change-Id: Ia54650307e8d9e96d40ce6e68ad18508d4030a4a Issue-ID: POLICY-338 Signed-off-by: Michael Mokry <mm117s@att.com>
2018-02-08MS Model Input ValidationMichael Mokry1-9/+9
- Provides validation for MS policy input content body that matches the GUI validations when create/update MS policy from API - Added changes to satisfy review comments and updated copywright headers for modified and new files Change-Id: I02bfa639bffb48520badd0e4fa34eb36418547ae Issue-ID: POLICY-377 Signed-off-by: Michael Mokry <mm117s@att.com>
2017-12-04Refactor to provide Common Policy ValidationMichael Mokry1-21/+21
Provides a common class to perform policy validation during create/udpate of policies by the GUI and API for consistency. Change-Id: Ied459e73d48517bb50064cd10d6a1c871b8311e5 Issue-ID: POLICY-449 Signed-off-by: Michael Mokry <mm117s@att.com>
2017-09-21Adding Junits for policy engine PDPuj426b1-17/+86
Additional coverage for Policy PDP Issue-Id: POLICY-52 Change-Id: I1d401a150359ddb15c48098d0bd1dbd11e4d2b44 Signed-off-by: uj426b <jauhari.utkarsh@gmail.com>
2017-08-24Fixes for missed sonar critical issuesTej, Tarun1-0/+3
Few fixes to the missed sonar critical issues and import warning fixes which are part of sonar critical fixes. Issue-Id: POLICY-113 Change-Id: If5010e984020b673e058cc1d01a8964a2354796d Signed-off-by: Tarun Tej Velaga <tt3868@att.com>
2017-08-23Fixes for sonar critical issuesTej, Tarun1-0/+3
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, Tarun2-5/+5
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 Ruijing8-0/+2201
Change-Id: I54072f6bcd388c0e05562614ee89b4ae7ad67004 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com> Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>