aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java9
-rw-r--r--src/test/resources/csars/service-Servicetosca9-csar.csarbin0 -> 32297 bytes
2 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java b/src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java
index 1e0dd0a..0c80202 100644
--- a/src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java
+++ b/src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java
@@ -77,6 +77,15 @@ public class ToscaParserErrorHandlingTest extends SdcToscaParserBasicTest {
Throwable captureThrowable = captureThrowable(file.getAbsolutePath());
assertNull(captureThrowable);
}
+
+ @Test
+ public void testVerifyConformanceLevelVersion9(){
+ String csarPath = "csars/service-Servicetosca9-csar.csar";
+ String fileLocationString = ToscaParserErrorHandlingTest.class.getClassLoader().getResource(csarPath).getFile();
+ File file = new File(fileLocationString);
+ Throwable captureThrowable = captureThrowable(file.getAbsolutePath());
+ assertNull(captureThrowable);
+ }
@Test
public void testFileNotFound(){
diff --git a/src/test/resources/csars/service-Servicetosca9-csar.csar b/src/test/resources/csars/service-Servicetosca9-csar.csar
new file mode 100644
index 0000000..0627cfc
--- /dev/null
+++ b/src/test/resources/csars/service-Servicetosca9-csar.csar
Binary files differ