summaryrefslogtreecommitdiffstats
path: root/ueb-listener/src/main/java/org
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-10-04 16:58:38 -0400
committerDan Timoney <dtimoney@att.com>2017-10-04 17:04:45 -0400
commit70eb2ae5c2f87511a34aeab170b13a7d3bdae66a (patch)
tree0f62b63ff3b8578b6844f757f77cac33d6f0178a /ueb-listener/src/main/java/org
parent0df357bc4d684d13029d702312995659373fc711 (diff)
Test TOSCA table insertion
Add code to create TOSCA tables in test driver to test TOSCA table insertion in ueb-listener TOSCA parser test. Change-Id: Ib8c3fcdb25fbdba39b4700553d8c01b684efa384 Issue-ID: CCSDK-102 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'ueb-listener/src/main/java/org')
-rw-r--r--ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java6
-rw-r--r--ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java2
-rw-r--r--ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebConfiguration.java3
3 files changed, 8 insertions, 3 deletions
diff --git a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java
index 3605465d..671d47a9 100644
--- a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java
+++ b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java
@@ -8,9 +8,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -104,6 +104,8 @@ public class SdncArtifactMap {
LOG.error("Caught exception reading artifact map", e);
return;
}
+ } else {
+ LOG.info("Artifact map {} does not exist or is not readable", fileName);
}
}
diff --git a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java
index 2cc08e1a..67e042b5 100644
--- a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java
+++ b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java
@@ -561,7 +561,7 @@ public class SdncUebCallback implements INotificationCallback {
insertToscaData(serviceModel.getSql(model_yaml));
} catch (IOException e) {
LOG.error("Could not insert Tosca YAML data into the SERVICE_MODEL table ", e);
- return;
+ // return;
}
// Ingest Network (VL) Data - 1707
diff --git a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebConfiguration.java b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebConfiguration.java
index b49a6607..75cb9c97 100644
--- a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebConfiguration.java
+++ b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebConfiguration.java
@@ -177,7 +177,10 @@ public class SdncUebConfiguration implements IConfiguration{
String artifactMapFile = props.getProperty("org.onap.ccsdk.sli.northbound.uebclient.artifact-map");
if (artifactMapFile != null) {
+ LOG.info("Loading artifactMapFile {}", artifactMapFile);
artifactMap.load(artifactMapFile);
+ } else {
+ LOG.warn("artifact-map is unset");
}
}