summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-02-21Fix policycreation testPamela Dragosh3-31/+51
This test was only performing code coverage, it should have revealed that IllegalArgument exceptions were incorrect. Fixed bug in savePolicy when an exception being thrown has a null message. Added warning and error messages for debugging in the future. Issue-ID: POLICY-1590 Change-Id: Ie32a73adbaf944f96e411a2c612cd8293382911c Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-02-18Update policy-engine to fix failing jUnit tests after jdk11 upgradePeyton Puckett2-2/+26
Issue-ID: POLICY-1590 Change-Id: I9f5a05112d943d7f3b6b0e807bf6ae4f2b993e55 Signed-off-by: Peyton Puckett <peyton.puckett@att.com> Signed-off-by: Peyton Puckett <pp5762@att.com>
2020-02-18Merge "Allow storing database password in environment variables"Jim Hahn2-4/+18
2020-02-18Allow storing database password in environment variablesDominik Mizyn2-4/+18
This patch allows to store and get database password from environment variables. This is needed if we want to send those variables by helm secrets. Issue-ID: OOM-2287 Change-Id: I041c3e4dd3b9042b2b6c2b34afc22867bab81b22 Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
2020-02-16Remove deletion of POLICY_HOME/etc/ssljhh1-3/+1
To match work from: https://gerrit.onap.org/r/#/c/policy/docker/+/101758/ Issue-ID: POLICY-2181 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I1f83508d7edd97337ee746cc09aff94bee684817
2020-02-10Migrate policy-engine docsJessica Wagantall9-0/+145
Merging this will create https://onap-policy-engine.readthedocs.io This build will run in parallel to the current docs generation method until we are ready to cut over. Issue-ID: CIMAN-364 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org> Change-Id: I3582e1840308baf26778cbbbecfe53ad388ed2a6
2020-02-07Review intellij git ignored filesBruno Sakoto1-1/+6
Issue-ID: POLICY-2359 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Iee0846d913798e33d5f745c2d4fc7c3a89304cd0
2020-02-04Include jaxb in runtimeJim Hahn3-3/+0
The jaxb implementation was included with scope=test. As a result, it was not found when trying to run the engine within docker. Issue-ID: POLICY-1590 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I2e6e23929448b7c27bf6f6a1d2ea40c0c1cace97
2020-02-04Merge "policy/engine jdk11 junit and compilation error fixes"Pamela Dragosh16-69/+135
2020-02-03policy/engine jdk11 junit and compilation error fixesHOCKLA16-69/+135
Issue-ID: POLICY-1590 Change-Id: I0bbc6f7310705c20924812efc5be2b0f91cf71a2 Signed-off-by: HOCKLA <ah999m@att.com>
2020-01-28Updating docker image with new tools.Bilal A1-0/+2
Issue-ID: POLICY-2325 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I352038ab7b3bfcf5a25d6d50b90c55b2536bcda9
2020-01-21Merge "policy/engine jdk11 upgrades"Pamela Dragosh30-101/+256
2020-01-20policy/engine jdk11 upgradesHOCKLA30-101/+256
Issue-ID: POLICY-1590 Change-Id: I4da8324a065ac9babe16368e69b76a4cbe9504ef Signed-off-by: HOCKLA <ah999m@att.com>
2020-01-20First update sonarPamela Dragosh2-73/+9
This is still pointing to old oparent, so only making the minor change. Note, I could not test this locally because the JUnits fail. Once Ali's review is merged I will make the final cleanup. Issue-ID: POLICY-2321 Change-Id: Idcd7633fc2fdbeaede8b24aab5dcd5437632da2f Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-01-10Point to policy/models release versionHOCKLA1-2/+2
Issue-ID: POLICY-1592 Change-Id: Ic8f5f5829b757578d0d5b32bf273cc9799faef71 Signed-off-by: HOCKLA <ah999m@att.com>
2020-01-07Add and modify jUnits for code coverage (continue admin)Peyton Puckett3-11/+413
Issue-ID: POLICY-2133 Change-Id: I4848e18c3ff638d6b659464b7c9293228dcc36d5 Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2019-12-18Add and modify jUnits for code coverage (continue components, admin)Peyton Puckett2-4/+259
Issue-ID: POLICY-2133 Change-Id: I6b308ad8e9dcd54a260312bbee8deeaec3af2cf1 Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2019-12-11Add and modify jUnits for code coverage (components)Peyton Puckett1-27/+404
Issue-ID: POLICY-2133 Change-Id: I0ded200797c112c1da4e50bd0721bb87c2d124ac Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2019-12-06Merge "Add and Modify jUnits for code coverage (model, admin)"Pamela Dragosh3-6/+184
2019-12-06Point to release versions of policy/parent and policy/commonHOCKLA1-2/+2
Issue-ID: POLICY-1583 Change-Id: I6d7ec1ccf00110d0f84998c05492b6d59a12cdf1 Signed-off-by: HOCKLA <ah999m@att.com>
2019-12-05Add and Modify jUnits for code coverage (model, admin)Peyton Puckett3-6/+184
Add tests to model after viewing sonarcloud coverage Start adding tests for admin Issue-ID: POLICY-2133 Change-Id: I690c612357fe3390c7904c6ba4c941dcefcc7640 Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2019-12-05Merge "Add and Modify JUnits for Code Coverage (components, controller)"Pamela Dragosh3-14/+368
2019-12-04Add and Modify JUnits for Code Coverage (components, controller)Peyton Puckett3-14/+368
Issue-ID: POLICY-2133 Change-Id: I9d8cecc7e9b1c280a0296a4e160f42e41264c1b6 Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2019-12-04Merge "Couple of JUnit additions for PAP-REST"Pamela Dragosh3-113/+271
2019-12-03Merge "Add and Modify JUnits for Code Coverage (daoImpl)"Jorge Hernandez2-15/+159
2019-12-02Add and Modify JUnits for Code Coverage (daoImpl)Peyton Puckett2-15/+159
Issue-ID: POLICY-2133 Change-Id: I1b16aa63394da0715dc50b5f0ac037b64d020a41 Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2019-12-02Unit/SONAR/Checkstyle in ONAP-RESTliamfallon4-8/+256
Util package of ONAP-REST, with JUnit added and SONAR/Checkstyle issues addressed. Coverage increased from 51% to 73% in large PolicyValidation class. Issue-ID: POLICY-2131 Change-Id: Iffa90e2dfa155d3e9cac114032fb9ca0df2cbab0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-12-01Merge "Unit/SONAR/Checkstyle in ONAP-REST"Liam Fallon2-7/+747
2019-11-30Merge "Add and Modify JUnits for Code Coverage"Jorge Hernandez2-9/+94
2019-11-28Unit/SONAR/Checkstyle in ONAP-RESTliamfallon2-7/+747
Util package of ONAP-REST, with JUnit added and SONAR/Checkstyle issues addressed. Coverage increased from 31% to 51% in large PolicyValidation class. Issue-ID: POLICY-2131 Change-Id: Ic88dd0d47bc9c09ed294ea62c37c683297b590c0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-11-27Unit/SONAR/Checkstyle in ONAP-RESTliamfallon4-17/+305
Util package of ONAP-REST, with JUnit added and SONAR/Checkstyle issues addressed. Coverage increased from 18% to 31% in large PolicyValidation class. Issue-ID: POLICY-2131 Change-Id: Ie059db312918021683fe27cc2aaeed86b04046f2 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-11-26Couple of JUnit additions for PAP-RESTbobbymander3-113/+271
Issue-ID: POLICY-2130 Change-Id: Id7252df4a244e579d599a5d2631c60ddb9ccfab3 Signed-off-by: bobbymander <bobby.mander@att.com>
2019-11-22Add and Modify JUnits for Code CoveragePeyton Puckett2-9/+94
Modify license Issue-ID: POLICY-2133 Change-Id: I1b58fcc1636a9bf8d45595480bc5e027d93bb277 Signed-off-by: Peyton Puckett <peyton.puckett@att.com>
2019-11-21Sonar cleanup and remove duplicate codePamela Dragosh2-129/+90
Removed some duplicate code and cleaned up some sonar issues. Issue-ID: POLICY-2242 Change-Id: I374c263516d87bda66442ed65cae9cc056e68e56 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-11-21Merge "Add ONAP-XACML StdEngine tests"Pamela Dragosh4-33/+136
2019-11-20Add ONAP-XACML StdEngine testsPamela Dragosh4-33/+136
Re-worked some JUnits to ensure they really are testing correctly. added coverage to the factory and std engine for easy exception conditions. Issue-ID: POLICY-2242 Change-Id: Iff6a390bff871fea2836336b77567f4a35720dfd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-11-20Merge "Build tar.gz without requiring docker image build"Pamela Dragosh1-0/+4
2019-11-20Merge "Unit/SONAR/Checkstyle in ONAP-REST"Ram Krishna Verma4-322/+2290
2019-11-19Build tar.gz without requiring docker image buildjhh1-0/+4
This allows the tar.gz to be released by LF jobs. Issue-ID: POLICY-2250 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I7a6a2fa109328f9e479af019198877fd6421ede5
2019-11-19Unit/SONAR/Checkstyle in ONAP-RESTliamfallon4-322/+2290
Refactor of the PolicyValidationRequestWrapper class to make it testable and unit tests for the class. Issue-ID: POLICY-2131 Change-Id: Ie6b0b20aafd6a823fa778bb8070d057f27b28603 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-11-19Merge "Format ONAP-XACML and add JUnit"Jorge Hernandez38-4621/+4339
2019-11-19Format ONAP-XACML and add JUnitPamela Dragosh38-4621/+4339
Formatting and sonar issues. Cleaned up JUnit tests. Added more JUnit test coverage. Issue-ID: POLICY-2242 Change-Id: Ife0921971c6eb97de2a64b2f303cd16f992b4bd3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-11-18Unit/SONAR/Checkstyle in ONAP-RESTliamfallon28-1191/+1852
Util package of ONAP-REST, 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: Ic134408efe76b9838f5607a07f1735d12bd41032 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-11-18Merge "Unit/SONAR/Checkstyle in ONAP-REST"Liam Fallon41-1255/+743
2019-11-15More JUnit additions for PAP-RESTbobbymander5-25/+98
Issue-ID: POLICY-2130 Change-Id: Ia111e5fd6dfba1e03f157ff95f91ef65df293043 Signed-off-by: bobbymander <bobby.mander@att.com>
2019-11-15Merge "Cleanup drl files in policy/engine test modules"Jorge Hernandez5-2371/+197
2019-11-15Unit/SONAR/Checkstyle in ONAP-RESTliamfallon41-1255/+743
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-15Merge "Unit/SONAR/Checkstyle in ONAP-REST"Pamela Dragosh85-3101/+2562
2019-11-13Unit/SONAR/Checkstyle in ONAP-RESTliamfallon85-3101/+2562
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 Pujar5-2371/+197
Issue-ID: POLICY-1895 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: Ice15aadbafd999b20594c3b6488e115063c985ce