diff options
Diffstat (limited to 'sdc-distribution-ci')
-rw-r--r-- | sdc-distribution-ci/pom.xml | 2 | ||||
-rw-r--r-- | sdc-distribution-ci/src/main/java/org/openecomp/test/CsarToscaTester.java | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/sdc-distribution-ci/pom.xml b/sdc-distribution-ci/pom.xml index 0c53c74..c7b544c 100644 --- a/sdc-distribution-ci/pom.xml +++ b/sdc-distribution-ci/pom.xml @@ -6,7 +6,7 @@ <parent> <groupId>org.openecomp.sdc.sdc-distribution-client</groupId> <artifactId>sdc-main-distribution-client</artifactId> - <version>1.1.8-SNAPSHOT</version> + <version>1.1.9-SNAPSHOT</version> </parent> <artifactId>sdc-distribution-ci</artifactId> 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"));
+ }
+}
|