aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-08-29Parameter Service Interface Changesliamfallon8-145/+163
Changes to distribution due to changes to parameter services, mainly addition of setName() to parameter service interface and correct handling of empty parameters Change-Id: I9523da6461874241d220f0feac61419ef6ebbb9d Issue-ID: POLICY-1035 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-08-28Removing plugin dependency from distribution mainramverma29-623/+363
* Removing plugin dependency from main. Ideally main should not be dependent on plugins. * Creating dummy handler, decoder, forwarder classes for test cases in main. * Combined few json test files. * Added more test cases. Change-Id: Id75e21d5d403febd9ac2b059661e17663d638dc2 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-24Fix sonar and checkstyle issues in distributionramverma37-608/+733
* Fixing all check style issues. * Fixing all sonar issues. * Adding maven check style plugin to fail at warning level. Change-Id: I791b8feef39a3a0c3e1e250efea7b6e78208bf07 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-22Merge "Adding health check endpoint to distribution"Pamela Dragosh33-56/+1016
2018-08-23Fix sonar code coverage issueliboNet1-69/+138
* Remove unused import * Fix more than 1 statements on one line * Divide validate into three parts to Fix >10 cyclomatic Complexity Change-Id: I9c89c4854de31fa02a9052055662f4b74d12fe10 Issue-ID: POLICY-956 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-08-22Adding health check endpoint to distributionramverma33-56/+1016
* Adding health check REST endpoint to distribution service. * Adding isAlive field to DistributionActivator to fetch the health status. * Adding parameter group for rest server parameters. * Adding DistributionRestController for hosting all the rest endpoints in distribution service. * Adding DistributionRestServer to manage lifecycle of distribution rest server. * Adding ParameterValidationUtils utility class for common validations. Plan is to move this class to policy-common for wider use later. * Adding test cases for all new code added. * Refering common classes from policy/common Change-Id: I246d57133ed1f0c3548bcdee173d7b64fb368abc Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-22integrate PSSDConfiguration to distributionliboNet29-38/+875
* Integrate the PSSDConfiguration to distribution config parameter. * Moved related PSSDConfigurationParameterGroup classes from "handling" to "parameters" to avoid specified sdc dependency. * Modify all the test case since the distribution config parameter has been changed, update CommonTestData to wrap it. * Add neccessnary SDC handling exceptions which to be used for SDC handler integration. * update the PSSDCOnfiguraitonParameterGroup to add UUID to the setName function to generate unique name for each instance. * use builder to create PSSDConfigurationParametersGroup instead of using many parameters Change-Id: I3c78bc2a51ebc84761bc9458096d6ffa18070b47 Issue-ID: POLICY-956 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-08-16Adding termination code changes for distributionramverma18-153/+345
* Code changes for terminating the handlers started by distribution activator. * More test cases to increase coverage. * Fixes for checkstyle issues. * Fixes for sonar issues. Change-Id: I3299317c83fa643ac1d0ba1105ac1a932c0a83f6 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-15Fix sonar code coverage issue in distributionramverma1-5/+88
The jacoco plugin settings in oparent is for creating coverage report for each sub-module sepeartely. That leads to coverage missing in the report if the test cases & actual classes are in different sub-module. Overiding the setting in distribution to create a consolidated report of all sub-modules in one report. Change-Id: Idf4acd07dbb3694d7bff3c1d94a31a322d7027c5 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-15Adding code for bootstrapping policy distributionramverma24-226/+511
* Code changes for initializing handlers & related plugins from configuration parameter JSON file. * Using common parameter service for refering parameters at multiple places. * Moved related parameters classes from "main" to "reception" to avoid maven cyclic dependency errors. * Added test cases for new code chnages. The test coverage is around 95%. * Changed logging from slf4j to common-logging. Change-Id: Ifb77cfaa6e6472d43295a7c41a49ddd657c0e2c2 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-13Merge "Initial moduel structure for SDC handling"Pamela Dragosh6-0/+478
2018-08-14Initial moduel structure for SDC handlingliboNet6-0/+478
This submission defines the initial module structure for this handling and add the IConfiguration implementation and test code, use the json format as the configuration. rename the class name to sensible one with PSSD prefix. remove static variable to make it possible for more than one subscription to SDC. improve the validate func to validate each mandatory parameters and check the int parameter's value Change-Id: I3106ad9d4535b1251eae064e803805b92378f6f1 Issue-ID: POLICY-956 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-08-09Adding configuration parameters for distributionramverma30-188/+1854
* Adding main configuration parameters to distribution component. The intention is to define a top level parameter group that should be capable of handling all the parameters needed for the framework. * Added validation to check the actuall class by loading it from classpath. * Added Test Cases for configuration parameter. The coverage of the package is 95.3 %. Change-Id: I87c4c34d9df2c9b5a0ab75bef2bbe0d25e38747b Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-02Create interfaces for Policy Distributionmmis25-0/+1096
Created interfaces and some skeletal implementations. Implememtations to be further developed in subsequent stories Change-Id: If55be78e34c8783451cb9aa755a563bc0850e569 Issue-ID: POLICY-1029 Signed-off-by: mmis <michael.morris@ericsson.com>
2018-07-31Add start and parameter handlingliamfallon36-463/+1065
Add startup code, command line parsing, service start, and parameter handling for the policy distribution service. Issue-ID: POLICY-922 Change-Id: Ie664aba6541304cf9b635541e9688c681b24952d Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-07-20Initial module structure for Policy Distributionliamfallon17-0/+594
This submission defines the initial module strucutre for the distribution component in the ONAP Policy Framework. The structure is documented here: https://wiki.onap.org/display/DW/Policy+Platform+-+SDC+Service+Distribution+Software+Architecture Change-Id: I0adbffbcd598250cb9a0b8ce07806e564bf83a85 Issue-ID: POLICY-922 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-06-27Remove warning for versionPamela Dragosh1-1/+0
Eclipse generates a warning that the version is duplicated. Issue-ID: POLICY-871 Change-Id: Icab683ec575c564e019bd3042ade17fe6ece2b2e Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-05-30Fixing artifactId for consistencyPamela Dragosh1-1/+1
Issue-ID: POLICY-871 Change-Id: Ic30f82072d4ba8a9d2d08fcd113cf143cc8d4ef8 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-05-26Setup policy/repository pom.xmlPamela Dragosh2-0/+63
Point to policy/parent and correct version. Issue-ID: POLICY-871 Change-Id: Ie57a55b3856a9232ed8b83c059bfdc01fd4c9d79 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-05-01Initialize repoPamela Dragosh4-0/+34
Add .gitreview, .gitignore, README and License Change-Id: I0cdbcd9191cbe399d0274d1a04c5f6ef4211567c Issue-ID: POLICY-771 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-04-30Add INFO.yaml fileJessica Wagantall1-0/+37
Add INFO.yaml to list: - Project description - Properties - PTL information - Meeting information - Committer information Change-Id: Iff828fcae59cc7b1b170c3a7700df4ce911de406 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2018-05-01Initial empty repositoryJessica Wagantall0-0/+0