summaryrefslogtreecommitdiffstats
path: root/BRMSGateway
AgeCommit message (Collapse)AuthorFilesLines
2020-04-30Bump engine patch 1.6.4-SNAPSHOTPamela Dragosh5-31/+31
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 Dragosh5-31/+31
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 Dragosh4-30/+30
Issue-ID: POLICY-2378 Change-Id: I4aa81585e154c1e7ee131db9cf5194530a212e67 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-13Point to parent, common, modelsPamela Dragosh2-25/+25
Released parent, fixes in model and commons. Issue-ID: POLICY-2486 Change-Id: I5c939dade1024dc6c606250ec8f55ece74614b36 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-27Point to released snapshotsPamela Dragosh3-29/+29
Issue-ID: POLICY-2378 Change-Id: I6213bdf4a5c3a83312f0bb2926474e4f3acaa681 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-25Bump engine 1.6.2 patchPamela Dragosh1-1/+1
I'm not going to bother with the other non-pom changes. Until we really need to. Issue-ID: POLICY-2378 Change-Id: Ib06ae950cd37d75fb34f49fd5cb207deca998c11 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-25Point to released artifactsPamela Dragosh3-29/+29
1.6.0 is drools-app 2.2.2 is models Issue-ID: POLICY-2378 Change-Id: I4329d433104e814ae023ee624442c79eb5eed3df Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-24Bump patch 1.6.1 to fix JUnit issuePamela Dragosh1-1/+1
The docker stage job is not succeeded, nor is the sonar job. Logging doesn't produce anything useful, so the best bet is to fix the order of the tests and hope that fixes the problem. Regardless must bump the patch to release it again. Issue-ID: POLICY-2378 Change-Id: I01ff47c8deb124e9fd6ffcb37407dc580ecd6b03 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 fixesHOCKLA2-1/+6
Issue-ID: POLICY-1590 Change-Id: I0bbc6f7310705c20924812efc5be2b0f91cf71a2 Signed-off-by: HOCKLA <ah999m@att.com>
2020-01-20policy/engine jdk11 upgradesHOCKLA4-23/+27
Issue-ID: POLICY-1590 Change-Id: I4da8324a065ac9babe16368e69b76a4cbe9504ef Signed-off-by: HOCKLA <ah999m@att.com>
2019-10-22Remove useless imports and varsPamela Dragosh1-3/+2
Some formatting and javadoc cleanup also. Issue-ID: POLICY-2133 Change-Id: Icb0f76c7e69df87918b4bc5a02a013f9d2bfae89 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-09-17Bump versions in policy/engine masterJim Hahn5-31/+31
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 Dragosh4-30/+30
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 Hahn2-2/+2
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 Hahn2-31/+99
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 Hahn5-31/+31
Change-Id: I77e7483bcecbc19d9a5a93087fd4c674aa898b52 Issue-ID: POLICY-1965 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-06Update to latest common/models released versionsjhh4-30/+30
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 Dragosh4-4/+4
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-06-27Remove trafficgenerator from dependency.jsonPamela Dragosh1-27/+27
This jar does not exist and breaks brmsgw when generating the amsterdam archetype. Update the dependency.json for local testing. Issue-ID: POLICY-1872 Change-Id: I5851462ea39c56693284854b5cd1d2cb5dd1dcdd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-31Bump engine to version 1.5.0Jim Hahn6-49/+35
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 Dragosh5-33/+33
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 engineliamfallon5-33/+33
Issue-ID: POLICY-1630 Change-Id: Iefcaaf1811535e22904367b8d11346a02f5851c1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-04-14Corrections in dependency.json to match models move.jhh1-3/+3
Change-Id: I71f3832c2304b3a1b8eb41a767b1cf6b28cfbdc2 Issue-ID: POLICY-1611 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-04-05update dependencies from policy/modelsHengye2-55/+56
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 CryptoUtilspa834y2-11/+15
Change-Id: I06718526382b424eab991f39a7dac1b5cf4f1b74 Issue-ID: POLICY-1422 Signed-off-by: pa834y <pa834y@att.com>
2018-11-27Eliminate error messages about BACKUPMONITORENTITYJim Hahn4-3/+36
Change-Id: Ibf4ed1c684c7e29730e2ce4934e267d55b57e02d Issue-ID: POLICY-1290 Signed-off-by: Jim Hahn <jrh3@att.com>
2018-11-26Fix various errors in test logsJim Hahn1-19/+19
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-02Merge "Upgrade xacml 1.0.2"Jorge Hernandez1-1/+1
2018-11-02Upgrade xacml 1.0.2Pamela Dragosh1-1/+1
This version of xacml only has license changes to the java source files. This will clear ONAP license issues. Issue-ID: POLICY-1228 Change-Id: I7496fc54e44a51f89e438adaa1ab70a1c23aa06d Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-10-31Set new master version for Dublinliamfallon5-35/+34
Issue-ID: POLICY-1232 Change-Id: I81e2b700debd4acca52f8ed9bbf8b54d75ceca83 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-25Fix refering to snapshot in policy/engineramverma5-61/+57
Issue-ID: POLICY-1213 Change-Id: I6666585a176b9e981976777018e4b7616e47ffc7 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-10-09Update local dependency jsonPamela Dragosh1-0/+24
For local testing these need to be added. Issue-ID: POLICY-1190 Change-Id: I2827aebe9faf04ff38e0781376b4553d34c88930 Signed-off-by: Pamela Dragosh <pdragosh@research.att.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-09-12Upgrade dmaap clientPamela Dragosh1-1/+0
Upgrading to dmaap 1.1.8 for Casablanca. Hoping they have removed some license issues. Also, policy/parent has the version property definition now because this dependency is shared across multiple repos. Issue-ID: POLICY-1116 Change-Id: I6ffe7b7cf4b46b12b3ec8d534a58f0be40bb97b9 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-08-30Upgrade to policy/parentPamela Dragosh1-4/+0
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-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.0liamfallon5-27/+27
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-SNAPSHOTliamfallon5-27/+27
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.2liamfallon5-27/+27
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 Gatewayliamfallon7-12/+90
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.ikram3-93/+128
Change-Id: I90887aafdd3cc49940bb4ed4b9283ec8a25aa205 Issue-ID: POLICY-773 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-05-01Remove sysout from junit and disable assert.pa834y1-11/+11
Updated BRMS Gateway junit tests to be less strict on hit counts on queries to Nexus. Draft version passed build son now submitting as full submission. Change-Id: Iab81d14be69835faefbb96fb0af17b3f3759575b Issue-ID: POLICY-756 Signed-off-by: pa834y <pa834y@att.com> Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-04-25Remove unit test Java version dependencyliamfallon1-4/+2
In the unit tests for the direct Sona Nexus Rest Interface, one of the unit tests only passed on an Oracle Java specific string. This test is fixed to now work on both Oracle and OpenJDK java Issue-ID: POLICY-700 Change-Id: Idae1aaf612a10ac003f2a91c0b5a80540152ac95 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-04-24Add JUnit for direct Sonar Nexus REST interfaceliamfallon8-84/+690
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 directlyliamfallon11-44/+1029
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-19Add license to policy-engine filesJim Hahn1-0/+20
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>