summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-08-29Change AlertSeverity to Severity in policy/engineJim Hahn8-551/+551
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-23Portal SDK upgrade to 2.6.0 in policy engineMichael Mokry2-2/+2
- Modified poms to upgrade epsdk dependency from 2.4.0 to 2.6.0-SNAPSHOT - Work in progress, still needs to be tested in the lab Change-Id: I5c7df08ed84ef12824d4fdc2ef6f578d6dce7488 Issue-ID: POLICY-1539 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-08-23Fix license on updated engine filesJim Hahn5-12/+11
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-23Merge "Remove powermock to increase coverage"Pamela Dragosh5-49/+141
2019-08-22update keystorejhh1-0/+0
Issue-ID: POLICY-1988 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Icb0b5af7aa63516f82917245083834cacd8caed4 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-08-22Remove powermock to increase coverageJim Hahn5-49/+141
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-22Upgrade elastic search to 6.8.2Pamela Dragosh1-1/+1
Clearing security issues - there are no workarounds. Issue-ID: POLICY-2005 Change-Id: I4deb0c1a42c507e1af6d99f24f4f973ab40217a1 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-08-13Updated policy/engine GUI springframeworkMichael Mokry2-2/+2
- Modified springframework dependencies version in poms to 4.3.24.RELEASE in ONAP-SDK-APP and POLICY-SDK-APP Change-Id: I149ed2454e7a899b929f179bf46b80190b3bc80c Issue-ID: POLICY-1539 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-08-13Merge "Fix issue for policies not loading on GUI push tab"Jorge Hernandez1-1/+9
2019-08-12Fix issue for policies not loading on GUI push tabMichael Mokry1-1/+9
- found the problem to be with a line of code to add all the scopes from the role to a Set of scopes. when the scopes attribute in the role object is null it logs an exception and fails to load policies. I added a new method to check the value of the roles.getScopes() for null and only attempt to add the scope to the set if it is not null - I created a separate method to do this in order to avoid an increase in technical debt as it would have added to the complexity if I kept it in the same method. - PATCH 4: Added scopes to the method arguments in order to avoid overwriting scopes that are added in prevous interations of the loop. - PATCH 5: removed redundant scopes assignment per Jorge's review. Change-Id: Ifcc8775d3db8ecc722ee6806310a58ecb4e15856 Issue-ID: POLICY-1981 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-08-08Review maven dependency for snakeyamlBruno Sakoto3-3/+1
Remove explicit version for snakeyaml maven dependency and inherit it from integration parent artifact. Upgrade snakeyaml to latest 1.24 version. Issue-ID: POLICY-1603 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I93978f963dc37260e0fc4d153c92c7da8db0005d
2019-08-07Bump version of policy/engineJim Hahn27-56/+56
Change-Id: I77e7483bcecbc19d9a5a93087fd4c674aa898b52 Issue-ID: POLICY-1965 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-06Add release 1.5.1 filejhh1-0/+4
Issue-ID: POLICY-1953 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ief5e6342b4f24cf594b3bc6456be8a526c214bb8
2019-08-06Update to latest common/models released versionsjhh7-35/+35
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-31Expand AAF_NS to onap.org.osaaf.aafjhh2-12/+12
Change-Id: I19f284842976ca5e27e5baaa3f21a229ef18ec04 Issue-ID: POLICY-1959 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-07-26Add lombok.config to policy/engineJim Hahn1-0/+2
This prevents sonar from checking lombok annotations for code coverage. Change-Id: Ia0164c0dd1adf746ef5fbac156fc44e17c424ed3 Issue-ID: POLICY-1938 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-22Javascript now required for code coveragePamela Dragosh1-3/+1
For El Alto, it is now required to pull coverage of Javascript code. Issue-ID: POLICY-1928 Change-Id: If1c0c2ba795b7a8f5faf69ab32ffbb953c411f78 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-07-08Fix policy/engine due to sonar changes in commonJim Hahn11-99/+100
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-07-01Bump engine 1.5.1-SNAPSHOTPamela Dragosh26-79/+60
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-07-01Merge "Adding logging to JUnit"1.5.0Jim Hahn2-3/+65
2019-07-01Fix centos build issueJim Hahn1-0/+16
Seeing this when trying to build in centos: 10:04:12 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.459 s - in org.onap.policy.pap.ia.DbAuditCompareEntriesTest 10:04:12 [INFO] 10:04:12 [INFO] Results: 10:04:12 [INFO] 10:04:12 [ERROR] Failures: 10:04:12 [ERROR] XACMLPAPTest.testDummy:907 10:04:12 [ERROR] Errors: 10:04:12 [ERROR] XACMLPAPTest.getDictionary:886 ยป NullPointer ... Modified the junit test(s) to create the JPA entities needed by integrity audit, which is what was causing the above issues. Change-Id: I405798a1946d377770529a99210a1cc57390667f Issue-ID: POLICY-1737 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-06-28Adding logging to JUnitPamela Dragosh2-3/+65
Turning on logging. Issue-ID: POLICY-1876 Change-Id: I82b04609a07f5d33c88c3e0068959de1e628cb38 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-28Remove docker scriptsPamela Dragosh3-338/+0
These are no longer needed as we are now doing the docker maven plugin due to global-jjb changes. Issue-ID: POLICY-1737 Change-Id: I98e8f2a16a66cfe210ddcdf0c50cb55bdebfd687 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-27Remove trafficgenerator from dependency.jsonPamela Dragosh2-35/+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-06-24Upgrade to released common & modelsPamela Dragosh1-2/+2
Released common 1.5.0 and models 2.1.0 Issue-ID: POLICY-1737 Change-Id: Iecbf38e57a71907f320e3c8da55a6921ca371c44 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-20Merge "Upgrade to release 3.0.0 parent"Jim Hahn1-1/+1
2019-06-20Upgrade to release 3.0.0 parentPamela Dragosh1-1/+1
Policy/parent is released Issue-ID: POLICY-1737 Change-Id: I58d8a74f85a6bbc7499614093e7f0d73c54f95ed Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-19Improved tests performanceKrysiak Adam3-113/+144
* used mock instead of waiting till dmaap client fails * creating in memory DB only once Issue-ID: POLICY-1671 Change-Id: Ia1b6ce7ddad1bce0d17c2dbf14f3d82dd237673b Signed-off-by: Krysiak Adam <adam.krysiak@nokia.com>
2019-06-18Fix compile issue with guardPamela Dragosh1-39/+32
Due to sonar changes in policy/models for guard. Issue-ID: POLICY-1791 Change-Id: I2cdbe6d0e4ee8bad05b9d3bb1a83e82d4851973c Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-17Use io.fabric8:docker-maven-plugin to build and push docker imagesRashmi Pujar3-128/+184
Issue-ID: POLICY-969 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: Ic4fcec72d494df0a6e067aa353be49936136518c
2019-06-06Remove nexus staging pluginpdragosh1-10/+0
Unused Issue-ID: POLICY-1737 Change-Id: I3e287ecbca9707d04f566295ebc5d0d430980d81 Signed-off-by: pdragosh <pdragosh@research.att.com>
2019-06-05Fix header and remove linkPamela Dragosh2-2/+1
Missing and remove outdated installation instructions. Issue-ID: POLICY-1676 Change-Id: I8b27752bc05039d43a2fbbf22e7388d55469b5a7 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-03Reference policy/parent for latest docPamela Dragosh2-2/+6
Point to new documentation. Issue-ID: POLICY-1676 Change-Id: I1a3e9a7f1147885c8de72a725c8637a86cd5eb7c Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> (cherry picked from commit 6b6cb44dd9f60df943c31188ec68a25852c0200b)
2019-05-31Bump engine to version 1.5.0Jim Hahn26-78/+63
Fixed license date. Change-Id: I711fb4e91afdb3813bc04b16265f584d80ac8e5d Issue-ID: POLICY-1747 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-29Remove release notesPamela Dragosh1-539/+0
Now being stored in the policy/parent repo. Issue-ID: POLICY-1769 Change-Id: Ib6ffc9c94150ef73734afededce37a94463479de Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-28Merge "Document fixed OJSI-184 vulnerability"Pamela Dragosh1-0/+1
2019-05-28Merge "Document fixed OJSI-118 vulnerability"Pamela Dragosh1-0/+1
2019-05-28Merge "Document fixed OJSI-157 vulnerability"Pamela Dragosh1-0/+1
2019-05-28Merge "Document fixed OJSI-117 vulnerability"Pamela Dragosh1-0/+2
2019-05-28Merge "Improve security release notes"Pamela Dragosh1-52/+56
2019-05-28Merge "Updates to Dublin release notes"Pamela Dragosh1-0/+1
2019-05-27Document fixed OJSI-184 vulnerabilityKrzysztof Opasiak1-0/+1
Issue-ID: OJSI-184 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I5537c217414f6fa1d0b6659360c53f9cef18097a
2019-05-27Document fixed OJSI-118 vulnerabilityKrzysztof Opasiak1-0/+1
Issue-ID: OJSI-118 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I0e8953a7a94bf4c28cc85aa239c2b88d96df18a6
2019-05-27Document fixed OJSI-157 vulnerabilityKrzysztof Opasiak1-0/+1
Issue-ID: OJSI-157 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I5ea4c15ad2a91b11619998c61088abc352321c7d
2019-05-27Document fixed OJSI-117 vulnerabilityKrzysztof Opasiak1-0/+2
Issue-ID: OJSI-117 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: Ieda7ccc170a50de63bcbfce311f83002acb4a0cf
2019-05-27Improve security release notesKrzysztof Opasiak1-52/+56
In order to provide users with more details of project's state in terms of security let's divide the security release notes into three sections: - Fixed Security Issues Contains a list of security fixes merged during this release (especially those reported via OJSI tickets). - Known Security Issues Contains a list of vulnerabilities detected in project during release which have not been fixed yet and thus should be mitigated by the user. - Known Vulnerabilities in Used Modules Contains information about NexusIQ scan results Issue-ID: SECCOM-238 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I9134ae41c40db83fa3b4870341a8880e2bdcbdda
2019-05-24Updates to Dublin release notesSaryu Shah1-0/+1
Updates to Dublin release notes ------------------------------------------------------------- Change-Id: I085735427ef641799f02576703767dcdcf558af1 Issue-ID: POLICY-1769 Signed-off-by: Saryu Shah <ss3917@att.com>
2019-05-23Bump to 1.4.2-SNAPSHOTPamela Dragosh25-53/+53
Released 1.4.1 Issue-ID: POLICY-1700 Change-Id: Ied6d06664155ff6e44ede90f1c081ec5bd2ef679 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-22Update INFO.yaml to add Jim and Ram4.0.0-ONAP1.4.1liamfallon1-1/+17
Issue-ID: POLICY-1775 Change-Id: I8d2171a23a47428228b52215cfffc71cef49ccb6 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-05-21Merge "Fix to resolve unpushing(delete) policies issue"Jorge Hernandez1-3/+9