summaryrefslogtreecommitdiffstats
path: root/ONAP-PDP-REST
AgeCommit message (Collapse)AuthorFilesLines
2018-05-21Update Policy Engine to 1.2.3-SNAPSHOTliamfallon1-1/+1
These reviews must be merged in order because of layering. This review should be merged FOURTH. Change-Id: Ifca8e33b79085a4032164b44dae3401f8179f5f6 Issue-ID: POLICY-844 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-05-16Upgrade SNAPSHOT to 1.2.2liamfallon1-1/+1
These reviews must be merged in order because of layering. This review should be merged SECOND Note: In order to get past the following layering problems, there are temporary chages to the following POMs to temporarily use 1.2.1-SNAPSHOT for those dependencies. They are ONAP-PAP-REST/pom.xml org.onap.policy.drools-applications.controlloop.common.policy-yaml ONAP-PDP/pom.xml org.onap.policy.drools-pdp.policy-endpoints A separate review will be used to restore these dependencies to 1.2.2-SNAPSHOT once the drools-pdp and drools-applications reviews are submitted and merged PLD added version.properties Issue-ID: POLICY-798 Change-Id: Id7e83f2ba12181c63cc8845b7eeccf2004d2bab9 Signed-off-by: liamfallon <liam.fallon@ericsson.com> Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-05-08fixing NullPointException incase of db exceptionwaqas.ikram2-322/+310
Making changes for NullPointerException it was triggered by - SQL Query Failed in PAP return unhandled reponse code > activeVersion variable is set to null > if statement in DeletePolicyService (!activeVersion.equalsIgnoreCase("0") result into NullPointerException Change-Id: Iad9de0d31b6cf16d1eafd6175d1c355b07481db9 Issue-ID: POLICY-773 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-04-19Add license to policy-engine filesJim Hahn5-0/+100
Added license to various files. Updated XACMLPolicyScanner to work even when license comment is added to the Policy.xml file. Moved DOCTYPE before license in html files. Removed license from css files, as many are generated or come from third-party software. Removed license from other generated files. Change-Id: I9d98ca9f552a6eae17e80ef27fc7045cc4f27b8e Issue-ID: POLICY-741 Signed-off-by: Jim Hahn <jrh3@att.com>
2018-04-16Upgrade Spring to 4.3.15-RELEASEPamela Dragosh1-1/+1
Upgrade to fix 3 security issues: https://nvd.nist.gov/vuln/detail/CVE-2018-1270 https://nvd.nist.gov/vuln/detail/CVE-2016-9878 https://nvd.nist.gov/vuln/detail/CVE-2018-1271 Issue-ID: POLICY-722 Change-Id: Icfa5775905ad091dbe55eadfb4414c67abebc13a Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-04-13Upgrade to SNAPSHOT 1.2.1Pamela Dragosh1-1/+1
Issue-ID: POLICY-736 Change-Id: If5c959aa1c0a123c7fd9eee281e39e1d646b6b03 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-04-03ONAP log files consolidationChou, Joseph (JC2555)2-9/+9
Check in changes for pap,pdp,console,brmsgw,paplp and pdplp Change-Id: I23525a44e0f269d04d9870c3eed18b6b8daacb2c Issue-ID: POLICY-562 Signed-off-by: Chou, Joseph (JC2555) <jc2555@att.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-28POM changes to centralize test scope depsbobbymander1-40/+0
Issue-ID: POLICY-600 Change-Id: I870317bbd125c6016818ec435ea7a406123c66c1 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-03-28Merge "ONAP code change for log files consolidation"Jorge Hernandez2-9/+9
2018-03-28ONAP code change for log files consolidationChou, Joseph (JC2555)2-9/+9
Undo the change so this would not block other test activity Change-Id: I4f7dd2e14f30034eefbf958be3c912af2962e8a2 Issue-ID: POLICY-562 Signed-off-by: Chou, Joseph (JC2555) <jc2555@att.com>
2018-03-27JUnit additions and powermock pom fixesbobbymander3-502/+493
Issue-ID: POLICY-602 Change-Id: I2484b47cc52a07413de69c1022a056fd0cf2d7d7 Signed-off-by: bobbymander <bobby.mander@att.com>
2018-03-26Merge "New Optimization Policy"Pamela Dragosh14-57/+271
2018-03-26New Optimization PolicyMichael Mokry14-57/+271
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-26Merge "ONAP code change for log files consolidation"Jorge Hernandez2-9/+9
2018-03-23ONAP code change for log files consolidationChou, Joseph (JC2555)2-9/+9
Code change for log files consolidation of PAP, PDP, BRMSGW, Console and db script Issue-ID: POLICY-562 Change-Id: I416ba7748b841bb2b1a31682e2b1631e279549e8 Signed-off-by: Chou, Joseph (JC2555) <jc2555@att.com>
2018-03-22Merge "Fix vulnerabilities and bugs in policy/engine"Jorge Hernandez9-36/+34
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/engineeramkve9-36/+34
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 Dragosh3-3/+12
2018-03-20Fix all bugs reported by Sonar in policy/engineeramkve3-3/+12
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.0liamfallon8-3/+21
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-07Merge "Clean up pom.xml and fix CLM"Pamela Dragosh1-1/+1
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-05Clean up pom.xml and fix CLMPamela Dragosh1-1/+1
This has some cleanup for overriding managed dependencies, a duplicate entry for mariadb, unnecessary inclusion of older EELF library, an upgrade of swagger tools to fix a security issue and lastly an override of a depedency to clear a security issue. Issue-ID: POLICY-507 Change-Id: I8767f6edc37551c559010d96d350afdd5961f13d Signed-off-by: Pamela Dragosh <pdragosh@research.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 Dragosh4-15/+512
2018-02-26Added junits to increase coverageMAGNUSEN4-15/+512
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-21Updated the Policy Logging Patternrb71471-40/+33
Updated the logback.xml to save logs for 30 days. Issue-ID: POLICY-644 Change-Id: I578570fa5a7f86ba464c37cddab43a2fabcdae7f Signed-off-by: rb7147 <rb7147@att.com>
2018-02-20Fix for h2 missing from testingPamela Dragosh1-0/+5
First submit for re-organizing pom.xml dependencies. H2 is ONLY used for testing and should be loaded otherwise. We removed it from policy/common so that is affecting these test. Issue-ID: POLICY-626 Change-Id: Iba86e89f2cb26581b2b465091e829d6bdd66a37b Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-02-20Merge "Added Junits to ONAP-PDP-REST"Jorge Hernandez6-0/+606
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 Fortify Scan Issue:guangxingwang2-4/+6
1) Fix Fortify Header Manipulation issue by checking the format of the message before adding it response header. 2) Fix Fortify Hardcoded Password issue by using encryption and decryption Issue-ID: POLICY-543 Change-Id: I16b44b9b0670b1af75094c9ae9d1f7d352fa894a Signed-off-by: guangxingwang <gw1218@att.com>
2018-02-19Fix compilation issue due to generic ExceptionJim Hahn2-8/+6
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-16Added Junis for Policy ONAP-RESTrb71471-1/+6
Cleaned the unused constructors. Cleaned the unused code. Added Junits for all JPAS. Renamed the Junit class names on removing classes. Issue-ID: POLICY-603 Change-Id: I0709ccecd7a2f3ec49367ff85f5a6d273479493e Signed-off-by: rb7147 <rb7147@att.com>
2018-02-15Adding Junits in ONAP-PDP-RESTMichael Mokry2-2/+85
- 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 Mokry10-61/+104
- 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>
2018-02-07Upgrade dependencies to clear security issuesPamela Dragosh1-7/+2
A bit of consolidation too - which could use a lot more work. These were simple security upgrades for fixes identified by LF weekly LCM job. Added some missing license headers. Issue-ID: POLICY-507 Change-Id: If285b0f95d30a1084c9363bf6a41b48d52fb3aff Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-02-02Resolved Fortify System Information Leak issuesrb71471-10/+6
Issue-ID: POLICY-550 Change-Id: I2145ecb6de43b69d6faf44c6395b119134a9904f Signed-off-by: rb7147 <rb7147@att.com>
2018-01-03Merge "Adding PolicyType to getConfig Response"Pamela Dragosh4-4/+44
2018-01-03Merge "Adding SONAR fixes for"Pamela Dragosh2-15/+10
2017-12-13Adding PolicyType to getConfig ResponseTej, Tarun4-4/+44
Adding a new parameter PolicyType so that getConfig Response can be known based on type of policy. Fixes for project warnings and unused imports. Issue-ID: POLICY-434 Change-Id: I0874abb7e986a8bb42ae18561064a8d7534eade6 Signed-off-by: Tej, Tarun <tt3868@att.com>
2017-12-12Fix audit log to contain ending timestampMike Babinski2-3/+3
Add transaction end method Change-Id: Ie818bb1650b0847800ce5481a85c5d2c8d7f4b9c Issue-ID: POLICY-494 Signed-off-by: Mike Babinski <mb1915@att.com>
2017-12-11Adding SONAR fixes forMichael Mokry2-15/+10
- pushPolicy defect fixes for POLICY-486 - Common Policy Validation feature for POLIYC-449 Change-Id: I8d54aa5a9b819c6eb4427dfa47c4ce963a21c2e0 Issue-ID: POLICY-449,POLICY-486 Signed-off-by: Michael Mokry <mm117s@att.com>
2017-12-06Merge "Refactor to provide Common Policy Validation"Pamela Dragosh5-68/+215