summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2018-09-13Address sonar/Checkstyle Issuesliamfallon1-15/+37
Sweep through Apex codebase to fix most ceheckstyle and straightforward sonar issues. Issue-ID: POLICY-1034 Change-Id: I149d9a94ad893affc93573e8de5e3304b6bdde2d Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-13Sonar/Checkstyle in service/pluginsliamfallon86-816/+1574
Sonar and Checkstyle changes in plugins and services, and knock on changes Issue-ID: POLICY-1034 Change-Id: Iff7df74e54fce2c661dcc2fae75ae93d4cacfe5b Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-12Sonar/Checkstyle in model/context/coreliamfallon27-1178/+1178
Checkstyle and sonar changes in the model, contexot and core modules. Issue-ID: POLICY-1034 Change-Id: I2d40bc877f3a548844470fc290fc89d63fa465ae Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-12Fix build failsliamfallon1-1/+1
Apex end to end tests often fail because the tests are not tuned correctly for Jenkins. The JRuby test needs a delay to allow the first test to completely clear dowm The volume of events sent in the Kafka tests is reduced from 100 to 10 The dom4j version is also changed back to 1.6.1 because 1.6 has the same security issues. Issue-ID: POLICY-954 Change-Id: Id38bf9fe526942870181bfd9c0762f0a471c0c02 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-08Address level 4-6 security issuesliamfallon6-87/+95
Remove commons-compress and chage version of dom4j Also fix checkstyle in affected modules Issue-ID: POLICY-1065 Change-Id: Id37e54a54997656674af37dfd924aec5f69e410a Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-07Parameter group fields must have gettersliamfallon9-43/+43
Modifications to apex parameters to include getters that follow naming conventions, and knock on changes. Also checkstyle fixes taken in modifified classes. Issue-ID: POLICY-1095 Change-Id: Iff5ccc7a069a4ec2b2b974ed9f5ed70a88692e00 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-06Fix package of apex examples and documentsliamfallon2-12/+3
The examples are not packaged correctly in the apex build and the client wars are missing The links and location of the documents are corrected. Some POM duplicate dependencies removed. Javadoc warnings removed. Issue-ID: POLICY-867 Change-Id: I555c29191c61c0a9887365d95005dbc584eddf04 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-04Merge "Fix checkstyle issues in apex model basic"Jorge Hernandez25-102/+102
2018-09-04Dependency version changes for securityliamfallon2-4/+4
Versions of Jython and hazelcast changed to more secure versions. Change-Id: Iad918705170846b8813512c4bd8087ba429f6e82 Issue-ID: POLICY-1065 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-04Fix checkstyle issues in apex model basicliamfallon25-102/+102
CHeckstyle issues in apex model basic and knock on changes in other apex modules. Issue-ID: POLICY-1034 Change-Id: I65823f5e2e344526abc74b0812877113acb056ec Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-08-31Use parameter service in apexliamfallon30-344/+664
Switch parameter handling in apex to use the ONAP PF common parameter service Change-Id: Id318d19c726b18b1a69c630fa81ca7d695355e9c Issue-ID: POLICY-954 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-08-20Updating docs for Plugins moduleDinh Danh Le39-56/+892
Change-Id: Ia0837cf2f86c42eea71c3f71e8cd99d684912485 Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com> Issue-ID: POLICY-867
2018-08-08Merge "Adding Apex docs for Plugins module"Pamela Dragosh156-8/+5648
2018-08-05Adding Apex docs for Plugins moduleDinh Danh Le156-8/+5648
Change-Id: Icf68473b472a5896972de5b07b275682a77a1c9f Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com> Issue-ID: POLICY-867
2018-08-03Use common components in apexliamfallon3-3/+7
Common ResourceUtil class replaces specific one in APEX Managed dependency version clashes removed in POMs Dependency versions with security vulnerabilities changed for zookeeper kafka infinispan Change-Id: I3c4b367cb5556b2dc255ab62c84f85738165eb81 Issue-ID: POLICY-954 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-25Adding more examples to apex-pdpramverma2-1/+54
- Adding more examples (DecisionMaker, Periodic & ONAPvCPE) to apex-pdp. - Fixed CORS issue in plugin-event-carrier-restserver module. Added a ContainerResponseFilter to intercept every request/response coming to REST server and add the required headers to support CORS. Change-Id: Ic3e36c683f2a78992ce1417d2c00233b34066f2f Issue-ID: POLICY-861 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-07-18Merge "Fix incorrect naming on context plugins"Jorge Hernandez96-50/+44
2018-07-18Fix incorrect naming on context pluginsliamfallon96-50/+44
This change fixes inconsistent naming on the context plugins in APEX. All plugins should fillow the naming convention of plugin-A.plugin-A.B.plugin.A.B.C and so on. Not following this convention breaks the APEX documentation build. Issue-ID: POLICY-954 Change-Id: I8aad4a28d143427e60017eaa119ee4f7ce9f5b3d Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-16Refactor persistence JPA testingDinh Danh Le9-353/+318
Adding tests for EclipseLink and refactoring Hibernate testcases. As both tests use the same test entities, the two existing test entity classes from org.onap.policy.apex.plugins.persistence.jpa.hibernate are moved to a newly created package org.onap.policy.apex.context.test.entities under context-test-utils. Relevent POM files are changed w.r.t this change. In particular, 1) add version infos as properties in apex-pdp/pom.xml 2) common dependencies related to Junit testing for EclipseLink and Hibernate are moved to their parent plugins-persistence-jpa's POM. Change-Id: I9d9387154cbfdfc69be49960b80e040b6fd35b5a Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com> Issue-ID: POLICY-862
2018-07-10Change JNR and DOM4J license versionsliamfallon2-0/+33
Change the JNR and DOM4J licenses to versions that are approved by the Linux Foundataion. Issue-ID: POLICY-905 Change-Id: I11fb2356bf90db27d16fe57ab70a910dac09459b Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-10Adding executor integration testswaqas.ikram3-12/+12
Change-Id: I292315164fbfb3650f6d21ede6edb264a7fd8ee3 Issue-ID: POLICY-865 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-07-10Merge "Fix apex-pdp logging issue"Pamela Dragosh1-1/+5
2018-07-10Fix apex-pdp logging issueramverma1-1/+5
apex-pdp logging was failing due to multiple slf4j bindings. Excluded the slf4j-log4j12 transitive dependency coming through zookeeper. Change-Id: I8745c349fecc89e4b3a84d8a79b1dc5bb47f89c8 Issue-ID: POLICY-866 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-07-10Change JRuby and Websocket versionliamfallon1-1/+1
Change the versions of JRuby and Java Websockets to versions that are approved by the Linux Foundation. Issue-ID: POLICY-905 Change-Id: I804ab1e9871bb573647035f47e674f472aba5528 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-06Merge "Fix Javadoc errors"Jorge Hernandez5-20/+21
2018-07-06Merge "Refactoring existing integration tests"Jorge Hernandez22-2960/+77
2018-07-06Merge "Set Jersey to LF approved version"Jorge Hernandez3-10/+10
2018-07-06Fix Javadoc errorsliamfallon5-20/+21
Path changes and changes due to mitigation of security violations caused some links in the Javadoc not to work any more. This changes fixes the javadoc. Issue-ID: POLICY-954 Change-Id: Ic9db2627fb1ffad69c8acadc7b975bc40864caaf Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-06Set Jersey to LF approved versionliamfallon3-10/+10
The Linux Foundation have permitted only certain versions of Jersey to be OK to use license wise. This fix configures the APEX PDP to use Jersey version 2.26, a LF approved version. Issue-ID: POLICY-905 Change-Id: I4f4cbf728ffb0cc49331aa61da68805f83880282 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-06Refactoring existing integration testswaqas.ikram22-2960/+77
Change-Id: I1aedd94d5197b8c6513fc701e9df2aab4edec088 Issue-ID: POLICY-865 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-07-04Remove new security vulnerabilityliamfallon1-1/+1
The latest CLM report showed up Hazelcast as a new security vulnerability. This change upgrades Hazelcast to the latest version. Issue-ID: POLICY-905 Change-Id: Ifa79dff9977ae7e547abb5ab29322a8a01c37fd6 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-03Remove JMS dependencies with license problemsliamfallon4-52/+39
The JMS API dependency wa removed by checking for the methods using refection rather than casting the objects. The other JMS dependencies were not needed. Issue-ID: POLICY-905 Change-Id: I9146ede67e97c0e0ccc8a9a8a20f98f1b9e5390d Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-02Resolve JAXB license issue, use Eclipselinkliamfallon2-21/+6
Replaced Glassfish-based JAXB processing with eclipselink based JAXB processing to resolve license issues. Updated version of eclipselink from 2.6.2 to 2.6.5 Supporessed warning about use of Java APIs. Issue-ID: POLICY-905 Change-Id: I68094230b710e971d096decfffdb53b003c5872f Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-02Fix the apex-pdp build issueramverma1-8/+9
Change-Id: I50532314948d16432065dacbadb9d69d8ca49084 Issue-ID: POLICY-865 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-06-30Merge "Adding integration test module"Liam Fallon3-4/+2
2018-06-28Fixing sonar bugs in package ..auth.clieditorDinh Danh Le2-33/+17
Change-Id: Ie0aa788ef9ea4e574c65928787c9be2ef72a6a61 Issue-ID: POLICY-862 Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
2018-06-28Adding integration test modulewaqas.ikram3-4/+2
Change-Id: If94ff28724a31269cf20b32c43fa0790c3b2dac3 Issue-ID: POLICY-865 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-06-26Merge "Upgrade version of Jython to remove vulnerability"Pamela Dragosh4-5/+8
2018-06-26Upgrade version of Jython to remove vulnerabilityliamfallon4-5/+8
Upgrade version of Jython from 2.2.1 to 2.7.1 to fix security vulnerability. Change-Id: I605b02483431b057f0ffa6017a5726ef8e1834d3 Issue-ID: POLICY-905 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-06-26Fix vulnerabilities in dependenciesliamfallon4-2/+20
Exclude commons-beanutils from JMS plugin Upgrade apacne ant version in XML plugin Upgrade Grizzly version in all plugins Issue-ID: POLICY-905 Change-Id: Ifa0d91bdead94be605cf5d51598ce36dd2c7b0fb Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-06-22Merge "Adding Junit for plugins-persistence-jpa-hibernate"Liam Fallon5-2/+630
2018-06-21Merge "Fix JMS plugin vulnerability"Pamela Dragosh1-4/+15
2018-06-21Adding Junit for plugins-persistence-jpa-hibernateDinh Danh Le5-2/+630
Change-Id: Iacfffb1adebabe7c4f0f40d9c76b6bd3d503b283 Issue-ID: POLICY-862 Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
2018-06-21Reduce level of vulnerability on JRuby pluginliamfallon1-3/+17
The JRuby plugin was using an old version of JRuby. The version of JRuby is updated to the latest version, which reduces the security vulnerability level. Some JRuby libraries that are not used in the APEX PDP and that themselves have security vulnerabilities are excluded. Issue-ID: POLICY-905 Change-Id: I1c9d40c505849d8cab2778a4993dec9148504599 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-06-21Fix JMS plugin vulnerabilityliamfallon1-4/+15
THe HornetQ JMS implementation had security vulnerabilities, license issues, and the latest version is 3 years old. The plugin was updated to use the Apache ActiveMQ JMS implementaiton instead. ActiveMQ has a very recent version, has no license issues, and has no recorded security issues. Issue-ID: POLICY-905 Change-Id: I2db80a9e45ee4274f31e8c493c841cd039e78050 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-06-19Merge "Fix security vul'y in Curator Locking Plugin"Pamela Dragosh1-3/+28
2018-06-19Remove plexus utils vul'y from XML event pluginliamfallon1-1/+7
The plexus-utils dependency on JAXB on the XML event plugin has security vulnerabilities. It is excluded as a dependency. Change-Id: I84f3bbea221374e0e245ef427aac3ec1ba64f48f Issue-ID: POLICY-905 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-06-19Fix security vul'y in Curator Locking Pluginliamfallon1-3/+28
Increment the version of the Curator dependencies. Upgrade the version of Zookeeper used by Curator tot he latest version. Remove ancient log4j dependency from Zookeeper. Issue-ID: POLICY-905 Change-Id: I103bd36404d3dc9c33bdd59585f67ba0fde349be Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-06-14Add YAML plugin and cleanup for checkstyleliamfallon48-95/+1897
Bringing in the APEX YAML plugin, allows events with YAML bodies to be consumed by APEX. Also clean up of event protocol interface to make it not specific for JSON. Also some checkstyle changes on classes impacted by event protocol interface change. Change-Id: I7c3867ac508096fd8acad2488e61db87dfa1d6bd Issue-ID: POLICY-862 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-06-12Adding plugin-persistence module to apex-pdpramverma9-0/+537
Change-Id: I68e16b1aad6e7b943439c207816479d151f672fb Issue-ID: POLICY-862 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>