From d7a69ea29e4ea46231cec1d16788d9451793a2a7 Mon Sep 17 00:00:00 2001 From: ramverma Date: Mon, 27 Aug 2018 17:31:03 +0100 Subject: Removing plugin dependency from distribution main * 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 --- .../expectedValidationResults/InvalidRestServerParameters.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 main/src/test/resources/expectedValidationResults/InvalidRestServerParameters.txt (limited to 'main/src/test/resources/expectedValidationResults/InvalidRestServerParameters.txt') diff --git a/main/src/test/resources/expectedValidationResults/InvalidRestServerParameters.txt b/main/src/test/resources/expectedValidationResults/InvalidRestServerParameters.txt new file mode 100644 index 00000000..ceb195ae --- /dev/null +++ b/main/src/test/resources/expectedValidationResults/InvalidRestServerParameters.txt @@ -0,0 +1,7 @@ +validation error(s) on parameters from "parameters/DistributionConfigParameters_InvalidRestServerParameters.json" +parameter group "SDCDistributionGroup" type "org.onap.policy.distribution.main.parameters.DistributionParameterGroup" INVALID, parameter group has status INVALID + parameter group "null" type "org.onap.policy.distribution.main.parameters.RestServerParameters" INVALID, parameter group has status INVALID + field "host" type "java.lang.String" value "" INVALID, must be a non-blank string containing hostname/ipaddress of the distribution rest server + field "port" type "int" value "-1" INVALID, must be a positive integer containing port of the distribution rest server + field "userName" type "java.lang.String" value "" INVALID, must be a non-blank string containing userName for distribution rest server credentials + field "password" type "java.lang.String" value "" INVALID, must be a non-blank string containing password for distribution rest server credentials -- cgit 1.2.3-korg