aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-PDP-REST/src
AgeCommit message (Collapse)AuthorFilesLines
2020-01-20policy/engine jdk11 upgradesHOCKLA2-14/+16
Issue-ID: POLICY-1590 Change-Id: I4da8324a065ac9babe16368e69b76a4cbe9504ef Signed-off-by: HOCKLA <ah999m@att.com>
2019-11-18Merge "Unit/SONAR/Checkstyle in ONAP-REST"Liam Fallon1-4/+4
2019-11-15Merge "Cleanup drl files in policy/engine test modules"Jorge Hernandez1-1100/+13
2019-11-15Unit/SONAR/Checkstyle in ONAP-RESTliamfallon1-4/+4
Fifth and final batch of JPA pojos (Q-Z), with JUnit added and SONAR/Checkstyle issues addressed. In cases where a class name change caused an update in another package, the license header on files for those knock on changes are not updated. Issue-ID: POLICY-2131 Change-Id: I1cc536a5b8a0cd3c6beff068dd72381f7ae10d12 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-11-13Unit/SONAR/Checkstyle in ONAP-RESTliamfallon4-11/+11
Fourth batch of JPA pojos (N-P), with JUnit added and SONAR/Checkstyle issues addressed. In cases where a class name change caused an update in another package, the license header on files for those knock on changes are not updated. Issue-ID: POLICY-2131 Change-Id: I9319b514b5c19e6837c34566dde770673d16bca3 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-11-13Cleanup drl files in policy/engine test modulesRashmi Pujar1-1100/+13
Issue-ID: POLICY-1895 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: Ice15aadbafd999b20594c3b6488e115063c985ce
2019-11-11Fix table names for CSIT issueJim Hahn1-4/+4
Changed the table name in multiple files. Backed out some changes per review comments. Change-Id: I31f75ebdef4aa70aff841c8a52185f6ab8a4e329 Issue-ID: POLICY-2131 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-10-30Fix unit test failure in ONAP-PDP-RESTliamfallon1-2/+9
Unit test parameters were cleared by earlier tests, test setup changed to initiate paramters required by the test. Issue-ID: POLICY-2205 Change-Id: Ia460226ae5fb6e0c42ba9840bd4fe3952dbd1a13 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-10-29Fix knock on tabs/SONAR/Checkstyle issuesliamfallon2-735/+782
Changes in the last ONAP-REST review caused knock on changes in ONAP-PDP-REST. Those changes identified issues in two classes with tabs. While changing the tabs to spaces, some other easy to fix SONAR/Checkstyle issues were addressed. Issue-ID: POLICY-2132 Change-Id: I4e32089ada7b5095da0751993458cf7173cef064 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-10-24CHeckstyle and JUnit for base package in ONAP-RESTliamfallon12-151/+152
Added unit tests and fixed checkstyle and SONAR issues in the base package of ONAPE-REST There was a lot of knock-on automatic changes done by Eclipse when I renamed the class XACMLRestProperties to XacmlRestProperties so ignore the changes in all but the ONAP-REST package. I also didn't update the licenses on files on those classes because the changes were automatic. Issue-ID: POLICY-2131 Change-Id: I28823c844b5192f8d56de76a727996b13e7ea4a6 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-10-22Remove useless imports and varsPamela Dragosh2-3/+0
Some formatting and javadoc cleanup also. Issue-ID: POLICY-2133 Change-Id: Icb0f76c7e69df87918b4bc5a02a013f9d2bfae89 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-08-29Change AlertSeverity to Severity in policy/engineJim Hahn1-71/+71
Updated logback xml files, replacing AlertSeverity with Severity. Also fixed some spacing issues. Change-Id: I3e4b9163d5d897fe4402028b69c741f497aecfc5 Issue-ID: POLICY-1989 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-08Fix policy/engine due to sonar changes in commonJim Hahn3-39/+39
Fixed breakages due to changes made in policy/common to satisfy sonar. Change-Id: I88090c7549ba19f9eb45fae311e8811e39f30318 Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-20Fix to resolve unpushing(delete) policies issueMichael Mokry1-3/+9
Added code the ONAP-PDP-REST to fix an issue causing the policyName to be null and fail validation Updated Changes per Review: 1. re-added the else for "No Policy Scope given" 2. localized the policyName and policyScope declarations to reset to null each time through the loop 3. Changed to polName check to endsWith per Jim's review Change-Id: I912511ef362cc79e89adc1c9da93d387e273c32a Issue-ID: POLICY-1754 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-04-09Add missing requestAttribute to junitspa834y1-150/+178
Change-Id: Ic595e1b5b2807ad02369ff01d72c0864bc2c9153 Issue-ID: POLICY-1418 Signed-off-by: pa834y <pa834y@att.com>
2019-04-09Merge "CLAMP Model policy creation support"Jorge Hernandez2-160/+170
2019-04-09Merge "Make clientAuth header optional and log request"Jorge Hernandez12-622/+714
2019-04-08CLAMP Model policy creation supportuj426b2-160/+170
Change-Id: Ia69f061c078e4f6ed4b4d2cd12f03f58514f2123 Issue-ID: POLICY-1416 Signed-off-by: uj426b <uj426b@att.com>
2019-04-05Make clientAuth header optional and log requestpa834y12-622/+714
Change-Id: Ifc44740a71c2b60d5474cd665bbfca94dcc0c9a7 Issue-ID: POLICY-1418 Signed-off-by: pa834y <pa834y@att.com>
2019-04-04Auditing User Operations Push or Delete Policies.uj426b1-2/+2
Change-Id: I39d5fc01e68e9d711c5dd09790dc34beb68783c3 Issue-ID: POLICY-1421 Signed-off-by: uj426b <uj426b@att.com>
2019-04-03Merge "Enhancement to use the common CryptoUtils"Jorge Hernandez6-233/+237
2019-04-02Push and unpush to support multiple policiespa834y4-639/+716
Change-Id: I95a05898d299a96810abf4f3b7940e8a3a243000 Issue-ID: POLICY-1414 Signed-off-by: pa834y <pa834y@att.com>
2019-03-31Enhancement to use the common CryptoUtilspa834y6-233/+237
Change-Id: I06718526382b424eab991f39a7dac1b5cf4f1b74 Issue-ID: POLICY-1422 Signed-off-by: pa834y <pa834y@att.com>
2019-03-26Added changes to save original model fileHOCKLA2-2/+29
When a user imports a model, save the original model file Issue-ID: POLICY-1423 Change-Id: Ic7ccf2cc91ce466d7aac644cf566e35577888217 Signed-off-by: HOCKLA <ah999m@att.com>
2019-02-15Reformat ONAP-PDP-REST test caseskaihlavi29-2352/+2423
Reformat test cases to follow ONAP style https://wiki.onap.org/display/DW/Java+code+style Format changes mainly consist of conversions of tabs to 4 spaces Modifications copyrights for Samsung added and a number of subproject names corrected for licenses Change-Id: I52106aa0ab249dc6bf3b2a9c455e53f42d0e6136 Issue-ID: POLICY-1506 Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
2019-02-12Improve ONAP-PDP-REST JUnit test case independencykaihlavi6-142/+175
Handle cleanup of changed system properties and other test-related static parameters to prevent unexpected behaviour of other test cases that are dependent of the same properties and parameters when order of the execution changes Add Samsung modification copyrights for changed files Fix some loggings and a minor typo in documentation Change-Id: Ib6920d6300da79bfc426e4f348b503e3fd6a31ee Issue-ID: POLICY-1501 Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
2019-01-25New listPolicy API to check pushed policies in PDPpa834y4-1372/+1503
Issue-ID: POLICY-1410 Change-Id: I26f3f13e41a59de67e977914e4e129b79a979563 Signed-off-by: pa834y <pa834y@att.com>
2018-12-27Rename test classes in policy/engineParshad Patel4-4/+4
Make test classes name consitence by adding 'Test' at end of junit test classes and adding 'Support' or 'Dummy' at start of util or dummy type of test classes Issue-ID: POLICY-1281 Change-Id: I5fa65d0cfc95edc8f2fe0ca678a43d2011a39670 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-11-26Fix various errors in test logsJim Hahn4-24/+24
Changed license comment style in ddl files from C-style to SQL-style. Added value for NOTIFICATION_DELAY. Don't overwrite property and pom updates from previous commit. Change-Id: I8c9fd50343c3503c797cb4165bbff5809e4d0740 Issue-ID: POLICY-1285 Signed-off-by: Jim Hahn <jrh3@att.com>
2018-11-02Modified to make AAF configurable in policy/engineMichael Mokry3-3/+14
Added property to enable or disable AAF Added logic to the code to check the property and use old authentication logic to authenticate the user rather than AAF if disabled. Fixed license issue Modified cadi_truststore_password value to use proper variable Added comment to local development enviroment properties file Modified test resources to fix Junit failures Change-Id: I962895154716092c9cc0bc6c48f6419f3b5900fe Issue-ID: POLICY-1217 Signed-off-by: Michael Mokry <michael.mokry@att.com> (cherry picked from commit 6accdc2ae0340ed84a59c739bd345ced2ff323c5)
2018-10-05Fix sonar bugPamela Dragosh1-243/+274
Somehow this creeped into sonar. Not sure why it wasn't flagged before. Fixed tabs and indentation. Removed unnecessary close() statement for a try-with- resources statement. Issue-ID: POLICY-1186 Change-Id: I5499279fe7adf642a7f7dc8a53c1a27c24a0dcb3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-09-25CADI AAF changes for policy/engineMichael Mokry1-134/+144
Added cadi properties and modified policy aaf client code. Fixed issue with namespace and modified code to reverse it for structuring the username sent in AAF API call Added properties for keystore and keystore password after getting error response from AAF when setting up the connection to AAF Missed a fix for one of Jorge's comments in last patch, here it is. Change-Id: Ic164ade8aa34da95a560c1592656e0caf990a595 Issue-ID: POLICY-913 Signed-off-by: Michael Mokry <mm117s@att.com>
2018-09-18Fixes for oparent upgradePamela Dragosh1-1/+1
Clean up mariadb so that it is consistent, allow jetty to be defined by oparent, and fixes to fully support google guava upgrade. Issue-ID: POLICY-1126 Change-Id: Ic0c2fba5f6f5f1a41e53770b95861606a5b4bbe6 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-09-10Resolved XACML Platform Sonar issuesrb71471-83/+54
Issue-ID: POLICY-902 Change-Id: If22627dfe7df993b5c725ddf3a66c10ebbaa73ca Signed-off-by: rb7147 <rb7147@att.com>
2018-09-05XACML Platform Enhancementsrb71474-1392/+1713
To Support Raw Policy Creation from GUI and API. GetDecision on combining algorithim with Policy Set. Issue-ID: POLICY-902 Change-Id: Ie3189f8ded2e03366bc7d65d15b95b88c89b0acd Signed-off-by: rb7147 <rb7147@att.com>
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-20Use builder for std pap policyKrishnajinka6-25/+115
Modify constructor in stdpappolicy to use builder this will fix the sonar issue related with more than 7 parameters method parameters Issue-ID: POLICY-1016 Change-Id: Id736a66e5ea48f0f233cffb640cdce8aaa8f2c0d Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
2018-08-14Optimize PAP policy constructor with builderKrishnajinka5-12/+41
Fix sonar issue about constructor using more than 7 params. Use builder parameters object for setting the attributes of std pap policy.Recommit1 Issue-ID: POLICY-1016 Change-Id: Id9631a42813960baa78df4ab0c0f6706244c3180 Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
2018-08-13Modify std pap policy to use builder in constrKrishnajinka3-12/+33
Fix sonar issue about constructor using more than 7 params. Use builder parameters object for setting the attributes of std pap policy.Rework2 Issue-ID: POLICY-1016 Change-Id: If26f7daa8d5b5d387238aad74daeddd49a8b95bb Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
2018-08-10Add PAP Policy parameter builder xacml policykrishnajinka11-761/+824
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-07-25Fix issues reported by sonarKrishnajinka2-298/+282
Fix issues related to unused method variables, extract constants, not nest more than 3 control stmts, use try with res in policy engine project. Rework for comments Issue-ID: POLICY-1008 Change-Id: If0953de9e802110df14862707f3b525652cdf112 Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
2018-07-23Add modified copyright noticeKrishnajinka1-0/+1
For the files which are modified add modified copyright notices as per comments from earlier review Issue-ID: POLICY-1002 Change-Id: I873b3ccc986d5f3d138ddb9e9b3c2307a0b127a6 Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
2018-07-17USE TRY WITH RESOURCESKrishnajinka1-35/+35
Fix sonar issues to convert try blocks to try with resources plus change tabs 2 space Issue-ID: POLICY-961 Change-Id: I553d6a42f1efaab5b7eb3a53bab945a3360e69bb Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
2018-07-13Reverting "Merge "fix try block""Jorge Hernandez1-2/+7
This reverts commit 240bbdbdc76e0e91af9f18164eadb2708d14c6fb, reversing changes made to 3ee69f1af0acddd1e06060ad88c0029fe7ceeaaf. Change-Id: I61f07ead1d7d3e89c512a2224efecf9ac440df10 Issue-ID: POLICY-961 Signed-off-by: Jorge Hernandez <jh1730@att.com>
2018-07-13fix try blockKrishnajinka1-7/+2
Issue-ID: POLICY-961 Change-Id: Ia1f388368007a4a82a57520dc6ddd99cc484a393 Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
2018-06-08Remove "&quot;" from logback xml filesJim Hahn1-1/+1
Logback complains if %d{} values contain "&quot;", but it works fine without them, thus they have been removed. Update licenses. Change-Id: Id1f21d3d51bb2495a92f54fcf5c3ad978612c375 Issue-ID: POLICY-785 Signed-off-by: Jim Hahn <jrh3@att.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 Hahn2-0/+40
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-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>