aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/test/resources/parameters/DistributionConfigParameters_InvalidPolicyDecoderClass.json
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@ericsson.com>2018-08-08 23:17:37 +0100
committerramverma <ram.krishna.verma@ericsson.com>2018-08-09 21:51:51 +0100
commit550d0d986713f4da7b37b8f2b16264884c05b9ab (patch)
tree20efa2af8b1d11f13fca43fdd6d67834b4a03816 /main/src/test/resources/parameters/DistributionConfigParameters_InvalidPolicyDecoderClass.json
parentf85f63f52d38ca962fc0e68eae184dd7018dc47b (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_InvalidPolicyDecoderClass.json')
-rw-r--r--main/src/test/resources/parameters/DistributionConfigParameters_InvalidPolicyDecoderClass.json31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/src/test/resources/parameters/DistributionConfigParameters_InvalidPolicyDecoderClass.json b/main/src/test/resources/parameters/DistributionConfigParameters_InvalidPolicyDecoderClass.json
new file mode 100644
index 00000000..eeafc25a
--- /dev/null
+++ b/main/src/test/resources/parameters/DistributionConfigParameters_InvalidPolicyDecoderClass.json
@@ -0,0 +1,31 @@
+{
+ "name":"SDCDistributionGroup",
+ "receptionHandlerParameters":{
+ "SDCReceptionHandler":{
+ "receptionHandlerType":"SDC",
+ "receptionHandlerClassName":"org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandler",
+ "pluginHandlerParameters":{
+ "policyDecoders":{
+ "TOSCADecoder":{
+ "decoderType":"TOSCA",
+ "decoderClassName":"org.onap.policy.distribution.reception.decoding.pdpx.PolicyDecoderToscaPdpx"
+ },
+ "APEXDecoder":{
+ "decoderType":"APEX",
+ "decoderClassName":"org.onap.policy.distribution.reception.decoding.pdpx.PolicyDecoderApexPdpa"
+ },
+ "DROOLSDecoder":{
+ "decoderType":"DROOLS",
+ "decoderClassName":"org.onap.policy.distribution.reception.decoding.pdpx.PolicyDecoderDroolsPdpd"
+ }
+ },
+ "policyForwarders":{
+ "PAPEngineForwarder":{
+ "forwarderType":"PAPEngine",
+ "forwarderClassName":"org.onap.policy.distribution.forwarding.pap.engine.XacmlPapServletPolicyForwarder"
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file