aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-distribution-ci/src
diff options
context:
space:
mode:
authorPavel Aharoni <pa0916@att.com>2017-05-04 20:04:08 +0300
committerPavel Aharoni <pa0916@att.com>2017-05-04 20:04:08 +0300
commitf09c2646860e66de2d91bccd61217ce22abfe75d (patch)
treef181ac6c71ddf9a480ffeb38efa0b4517df19b2b /sdc-distribution-ci/src
parent04e7fa443307328986942c66fbcb01693c8f9ccb (diff)
[SDC-15] allotted resource CSAR fixes
Change-Id: I31dcd0a6b697357fed0e7f8c431b5317339b3c74 Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'sdc-distribution-ci/src')
-rw-r--r--sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java b/sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java
new file mode 100644
index 0000000..4dae5eb
--- /dev/null
+++ b/sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java
@@ -0,0 +1,18 @@
+package org.openecomp.test;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+
+import org.openecomp.sdc.tosca.parser.impl.SdcToscaParserFactory;
+import org.openecomp.sdc.toscaparser.api.common.ExceptionCollector;
+
+public class CsarToscaTester {
+ public static void main(String[] args) throws Exception {
+ ClassLoader loader = CsarToscaTester.class.getClassLoader();
+ System.out.println("CsarToscaParser - path to CSAR is "+Arrays.toString(args));
+ SdcToscaParserFactory factory = SdcToscaParserFactory.getInstance();
+ factory.getSdcCsarHelper(args[0]);
+ ArrayList<String> exceptionReport = ExceptionCollector.getExceptionReport();
+ System.out.println("Errors during CSAR parsing are: "+(exceptionReport != null ? exceptionReport.toString() : "none"));
+ }
+}