summaryrefslogtreecommitdiffstats
path: root/BRMSGateway/src/main
AgeCommit message (Collapse)AuthorFilesLines
2020-05-20Point to released artifactsPamela Dragosh1-1/+1
Issue-ID: POLICY-2514 Change-Id: Ic0d839f4f6270ffe6e6dfe8a92916b5912f2f501 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-30Bump engine patch 1.6.4-SNAPSHOTPamela Dragosh1-1/+1
And point to latest parent, common and models. Issue-ID: POLICY-2510 Change-Id: Ib0cab4b57fb6efb8388d89bedcf2d34164edc0e7 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-15Bump engine 1.6.3-SNAPSHOTPamela Dragosh1-1/+1
Issue-ID: POLICY-2378 Change-Id: Ic374190da660b3c258998ecf131fa57dcb1cb834 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-14Point to released common,models,drools-appsPamela Dragosh1-1/+1
Issue-ID: POLICY-2378 Change-Id: I4aa81585e154c1e7ee131db9cf5194530a212e67 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-27Point to released snapshotsPamela Dragosh1-1/+1
Issue-ID: POLICY-2378 Change-Id: I6213bdf4a5c3a83312f0bb2926474e4f3acaa681 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-02-18Allow storing database password in environment variablesDominik Mizyn1-2/+9
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-03policy/engine jdk11 junit and compilation error fixesHOCKLA1-1/+1
Issue-ID: POLICY-1590 Change-Id: I0bbc6f7310705c20924812efc5be2b0f91cf71a2 Signed-off-by: HOCKLA <ah999m@att.com>
2019-09-17Bump versions in policy/engine masterJim Hahn1-1/+1
Also added default branch to .gitreview to facilitate branching in the future. Switched internal properties to use snapshot versions of other repos per review comment. Change-Id: I23d71e67051d88cfaa07adc15e2d143289269027 Issue-ID: POLICY-2045 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-09-09Upgrade to released artifactsPamela Dragosh1-1/+1
Released parent, common and models Issue-ID: POLICY-2045 Change-Id: If26bd3e22f43396e61a53626b72d0d3e9d6bf5fb Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-08-29Change AlertSeverity to Severity in policy/engineJim Hahn1-75/+75
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-08-23Fix license on updated engine filesJim Hahn1-1/+1
Address review comment about license date on updated junits. Change-Id: I5dd6e47be243d6f0d5a001cb5cfb45e7ac31f9c8 Issue-ID: POLICY-1937 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-22Remove powermock to increase coverageJim Hahn1-12/+29
Removed powermock from the junit tests of these classes to increase reported sonar coverage: RESTfulPAPEngine BrmsGateway Typically added override methods to the classes under test, to replace the overrides originally provided by powermock. Also needed to add code to RESTfulPAPEngineTest to clear the XACML properties before the test ran. Modified to use the existing XACMLProperties.reloadProperties() method. Also modified PolicyNotificationMailTest to use a host/port that has no listener so that the test runs faster. Fixed some newly introduced sonar issues. Change-Id: I65e36b01e9506987032eb21baac808ed3dfd4f47 Issue-ID: POLICY-1937 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-07Bump version of policy/engineJim Hahn1-1/+1
Change-Id: I77e7483bcecbc19d9a5a93087fd4c674aa898b52 Issue-ID: POLICY-1965 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-06Update to latest common/models released versionsjhh1-1/+1
policy/models: 2.1.2 policy/common: 1.5.1 Change-Id: Ifa72ed573fb7685710c7288da6fd16ffe6ea397f Issue-ID: POLICY-1953 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-07-01Bump engine 1.5.1-SNAPSHOTPamela Dragosh1-1/+1
Released 1.5.0 Fixed compilation issue related with version upgrade of policy/common. Issue-ID: POLICY-1737 Change-Id: Ib2f56e8ffcb4b399dbe4a5453b70da10b0f87985 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-31Bump engine to version 1.5.0Jim Hahn1-7/+1
Fixed license date. Change-Id: I711fb4e91afdb3813bc04b16265f584d80ac8e5d Issue-ID: POLICY-1747 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-23Bump to 1.4.2-SNAPSHOTPamela Dragosh1-1/+1
Released 1.4.1 Issue-ID: POLICY-1700 Change-Id: Ied6d06664155ff6e44ede90f1c081ec5bd2ef679 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-16Step snapshot version of policy engineliamfallon1-1/+1
Issue-ID: POLICY-1630 Change-Id: Iefcaaf1811535e22904367b8d11346a02f5851c1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-04-05update dependencies from policy/modelsHengye1-5/+6
Now pointing to policy/models for yaml and other dependencies. Issue-ID: POLICY-1264 Change-Id: I440d18425e46ec91e6d4e7f2cf1571c4d2bbdb6f Signed-off-by: Hengye <yehui.wang@est.tech> Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-03-31Enhancement to use the common CryptoUtilspa834y1-10/+11
Change-Id: I06718526382b424eab991f39a7dac1b5cf4f1b74 Issue-ID: POLICY-1422 Signed-off-by: pa834y <pa834y@att.com>
2018-11-27Eliminate error messages about BACKUPMONITORENTITYJim Hahn1-1/+1
Change-Id: Ibf4ed1c684c7e29730e2ce4934e267d55b57e02d Issue-ID: POLICY-1290 Signed-off-by: Jim Hahn <jrh3@att.com>
2018-10-31Set new master version for Dublinliamfallon1-1/+1
Issue-ID: POLICY-1232 Change-Id: I81e2b700debd4acca52f8ed9bbf8b54d75ceca83 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-25Fix refering to snapshot in policy/engineramverma1-28/+24
Issue-ID: POLICY-1213 Change-Id: I6666585a176b9e981976777018e4b7616e47ffc7 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-20BRMSGW HTTPS support for DMaaP/UEB interfacesMichael Mokry1-1/+1
Modified BrmsPush UEB interface implementation to use HTTPS Change-Id: Id8ae68f23ee371142da3f9d8aa0a2b2e7988ff36 Issue-ID: POLICY-942 Signed-off-by: Michael Mokry <mm117s@att.com>
2018-07-26Fix nested stmts issue of SonarKrishnajinka1-3/+1
Policy rest util MSModeUtils have Sonar flagged issues about nesting more than 3 control stmts. Fix these. Also a minor change from prev commit about BrmsPush.java. Rework based on review Issue-ID: POLICY-1009 Change-Id: Ibd3cebcdebf9cf26233e810033793a5315b93272 Signed-off-by: Krishnajinka <kris.jinka@samsung.com>
2018-07-25Fix sonar issue about nested stmtsKrishnajinka1-88/+110
Refactor code to not nest more than 3 condition or loop stmts in policy PolicyEngineUtils. Rework based on review comments Issue-ID: POLICY-1003 Change-Id: I95fcfa0f99c517c02357c85ca39cd2f934e8da4d 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-06-05Update engine to SNAPSHOT-1.3.0liamfallon1-1/+1
Snapshot updated for Casablanca. Change-Id: Ieb2c9a990c0f36f31c974038465e7d38aaa21e5d Issue-ID: POLICY-875 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
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-08Configuration as argument to BRMS Gatewayliamfallon1-5/+24
Added the ability specify the parameter file for the BRMS Gateway as a argument to allow different configurations to be used during unit test. This will allow more thorought unit tests to be written. Replaced System.exit() calls with exeception throws becasue System.exit() call bring down the entire JVM during testing, terminating the test at that point. Changed the package path on four unit test files to the correct path for unit tests for the BRMS gateway. Added a unit test for sanity test of the configuraiton file argument. Issue-ID: POLICY-773 Change-Id: Ic095a5131ddb846eaf3b11157853fab71908c629 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-05-04Adding rollback for transaction handlingwaqas.ikram1-88/+122
Change-Id: I90887aafdd3cc49940bb4ed4b9283ec8a25aa205 Issue-ID: POLICY-773 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-04-24Add JUnit for direct Sonar Nexus REST interfaceliamfallon2-74/+112
JUnit tests and changes to the source code to fix issues that were identified in JUnit testing. JUnit testing runs tests towards the Nexus server at https://nexus.onap.org If that server does not exist then the unit tests will fail but as the nexus serveir is required for the build to work then it should be OK to use that server for unit testing. This removes the need to write complex (and less effective) Mockito type unit tests. Issue-ID: POLICY-700 Change-Id: I4aa33a1022033b42bb1fd1fa36785a8e0216b887 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-04-24Implement Sonar Nexus REST interface directlyliamfallon9-25/+977
The BRMS gateway used the obsolete nexus-rest-client-java library to query the Nexus repository. This change removes that dependency and implements an interface directly to Nexus servers using the Nexus REST interface. This change is being submitted to ensure that the security issues with the plugin are resolved. The unit test for the new code will be implemented in a later submission. Issue-ID: POLICY-700 Change-Id: Ia1044e432d370034fe13f42cf7ed55d75e21187a Signed-off-by: liamfallon <liam.fallon@ericsson.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-5/+5
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-03-29Removed checkstyle warningswaqas.ikram11-729/+780
Change-Id: I0701333d2b36a0796b592ce92b8015c1a56f8258 Issue-ID: POLICY-711 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-03-28ONAP code change for log files consolidationChou, Joseph (JC2555)1-4/+4
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-23ONAP code change for log files consolidationChou, Joseph (JC2555)1-4/+4
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-14Policy:BlockerManamohan Satapathy1-9/+11
Use try-with-resources to close this JarFile:L590 L617 Issue-ID: POLICY-688 Sonar link:https://sonar.onap.org/issues?myIssues=true&open=AWF91iXI8TZzbCgU6anv&resolved=false&severities=BLOCKER Location:BRMSGateway\src\main\java\org\onap\policy\brmsInterface\BRMSPush.java Change-Id: I11f07325e78d6c7a9760496db4685546d2910595 Signed-off-by: Manamohan Satapathy <MS00534989@techmahindra.com>
2018-03-09Fix brmsgw regex handling for dependeciespa834y1-2/+3
Issue-ID: POLICY-684 Change-Id: I3a8fbbaebf4fdfcd097edcc367e06ef8807aa3bc Signed-off-by: pa834y <pa834y@att.com>
2018-03-08Policy:BlockerManamohan Satapathy1-8/+11
Use try-with-resources or close this FileOutputStream in a finally clause.:L574 L575 Issue-ID: POLICY-656 Sonar Link: https://sonar.onap.org/issues?myIssues=true&resolved=false Location:BRMSGateway\src\main\java\org\onap\policy\brmsInterface\BRMSPush.java Change-Id: Id9ce5e5505bb3c622652cd7ff1e844519c9c786f Signed-off-by: Manamohan Satapathy <MS00534989@techmahindra.com>
2018-03-05Remove auto generated rule to the drlpa834y2-2/+12
Issue-ID: POLICY-488 Change-Id: Id6915407a6f030b77ae2d18ad3665af9d0feb34b Signed-off-by: pa834y <pa834y@att.com>
2018-02-21Updated the Policy Logging Patternrb71471-39/+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-19Rename maven modules in drools-applicationsliamfallon1-14/+15
All found references to drools-applications module names changed to new names Issue-ID: POLICY-238 Change-Id: I3cd453c91194699434a71c1a12d2dcccfa5df234 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2017-12-05Fix Sonar Issues for BRMSGWDaniel Cruz1-13/+10
Removing additional sonar issues. Issue-ID: POLICY-472 Change-Id: Id447c0e31338321051b7d5f69e3087bbc95b504f Signed-off-by: Daniel Cruz <dc443y@att.com>
2017-12-04Fix BRMSGW Sonar IssuesDaniel Cruz3-50/+62
Addressing sonar issues in the BRMSGW submodule. Issue-ID: POLICY-472 Change-Id: I31d532153ff88dafa55c74654fbdfe3874bfb65f Signed-off-by: Daniel Cruz <dc443y@att.com>
2017-11-21Bump minor versionJessica Wagantall1-1/+1
Bump minor version in preparation for Amsterdam branching. Change-Id: I61e0ae91e3ece54ed09a88dad9b8dac173ccae07 Issue-ID: CIMAN-120 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2017-11-15Update to v1.1.2-SNAPSHOTPamela Dragosh1-1/+1
Release 1.1.1, moving patch to 1.1.2 Issue-ID: POLICY-436 Change-Id: Iabde3e56c04c68ca966efde09b5780e6275cb8a8 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-11-08Update SNAPSHOT versionPamela Dragosh1-1/+1
Releasing v1.1.0 so need to update to v1.1.1 Issue-ID: POLICY-436 Change-Id: Ic575e75d0321c3de2074f8e23d2d0bbd11f6a229 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>