aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config/appc-config-params/provider
diff options
context:
space:
mode:
authorBalaji, Ramya (rb111y) <rb111y@att.com>2018-05-25 17:21:11 -0400
committerPatrick Brady <pb071s@att.com>2018-05-25 21:38:39 +0000
commit2f76aaa31d09cd691636650e13f36ecdb17e1df4 (patch)
tree6ec470ad542e37ae5a2a4b5eb1794b18e1c6705c /appc-config/appc-config-params/provider
parent8d5b540008bd2a1d6ed4187cc67aad3fb598e6a0 (diff)
Corrected config params validations
Issue-ID: APPC-932 Change-Id: Ie4166c7e5079c67d112d6e17b5dcd1f0ceaefacc Signed-off-by: Balaji, Ramya (rb111y) <rb111y@att.com>
Diffstat (limited to 'appc-config/appc-config-params/provider')
-rw-r--r--appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java19
1 files changed, 15 insertions, 4 deletions
diff --git a/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java b/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java
index a9707b6a2..9b5e5485b 100644
--- a/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java
+++ b/appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java
@@ -111,7 +111,8 @@ public class PropertyDefinitionNode implements SvcLogicJavaPlugin {
}
if (StringUtils.isBlank(requestParamJson)) {
- throw new MissingParameterException(STR_JSON_DATA_MISSING);
+ //throw new MissingParameterException(STR_JSON_DATA_MISSING);
+ log.info("processExternalSystemParamKeys:: "+ STR_JSON_DATA_MISSING);
}
if (StringUtils.isBlank(systemName)) {
@@ -152,7 +153,10 @@ public class PropertyDefinitionNode implements SvcLogicJavaPlugin {
String mergeJsonData = inParams.get(ParamsHandlerConstant.INPUT_PARAM_MERGE__JSON_DATA);
if (StringUtils.isBlank(requestParamJson)) {
- throw new MissingParameterException(STR_JSON_DATA_MISSING);
+ //throw new MissingParameterException(STR_JSON_DATA_MISSING);
+ Map <String,String> tempMap=new HashMap<String, String> ();
+ requestParamJson = tempMap.toString();
+ log.info("mergeJsonData()::"+STR_JSON_DATA_MISSING);
}
if (StringUtils.isBlank(mergeJsonData)) {
@@ -230,7 +234,10 @@ public class PropertyDefinitionNode implements SvcLogicJavaPlugin {
}
if (StringUtils.isBlank(requestParamJson)) {
- throw new MissingParameterException("Request Param is Missing ..");
+ //throw new MissingParameterException("Request Param is Missing ..");
+ log.info("getSystemRequestParamInfoFromPD() ::: requestParamJson is blank!!!");
+ HashMap paramMap = new HashMap <String, String> ();
+ requestParamJson = paramMap.toString();
}
ObjectMapper mapper = new ObjectMapper();
@@ -324,7 +331,11 @@ public class PropertyDefinitionNode implements SvcLogicJavaPlugin {
}
if (StringUtils.isBlank(configParams)) {
- throw new MissingParameterException("Request Param (configParams) is Missing ..");
+ //throw new MissingParameterException("Request Param (configParams) is Missing ..");
+ Map <String,String> tempMap=new HashMap<String, String> ();
+ configParams = tempMap.toString();
+ log.info("validateParams():: Request Param (configParams) is Missing ..");
+
}
PropertyDefinition propertyDefinition = parsePDContent(pdContent);
ObjectMapper mapper = new ObjectMapper();