diff options
author | ramverma <ram.krishna.verma@ericsson.com> | 2018-08-08 23:17:37 +0100 |
---|---|---|
committer | ramverma <ram.krishna.verma@ericsson.com> | 2018-08-09 21:51:51 +0100 |
commit | 550d0d986713f4da7b37b8f2b16264884c05b9ab (patch) | |
tree | 20efa2af8b1d11f13fca43fdd6d67834b4a03816 /main/src/test/resources/parameters/DistributionConfigParameters_InvalidReceptionHandlerClass.json | |
parent | f85f63f52d38ca962fc0e68eae184dd7018dc47b (diff) |
Adding configuration parameters for distribution
* 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>
Diffstat (limited to 'main/src/test/resources/parameters/DistributionConfigParameters_InvalidReceptionHandlerClass.json')
-rw-r--r-- | main/src/test/resources/parameters/DistributionConfigParameters_InvalidReceptionHandlerClass.json | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/src/test/resources/parameters/DistributionConfigParameters_InvalidReceptionHandlerClass.json b/main/src/test/resources/parameters/DistributionConfigParameters_InvalidReceptionHandlerClass.json new file mode 100644 index 00000000..7be2a1a6 --- /dev/null +++ b/main/src/test/resources/parameters/DistributionConfigParameters_InvalidReceptionHandlerClass.json @@ -0,0 +1,23 @@ +{ + "name":"SDCDistributionGroup", + "receptionHandlerParameters":{ + "SDCReceptionHandler":{ + "receptionHandlerType":"SDC", + "receptionHandlerClassName":"org.onap.policy.distribution.reception.handling.sdc.InvalidSdcReceptionHandler", + "pluginHandlerParameters":{ + "policyDecoders":{ + "TOSCADecoder":{ + "decoderType":"TOSCA", + "decoderClassName":"org.onap.policy.distribution.reception.decoding.pdpx.PolicyDecoderToscaPdpx" + } + }, + "policyForwarders":{ + "PAPEngineForwarder":{ + "forwarderType":"PAPEngine", + "forwarderClassName":"org.onap.policy.distribution.forwarding.pap.engine.XacmlPapServletPolicyForwarder" + } + } + } + } + } +}
\ No newline at end of file |