Add Unit test for Con level 9 95/55995/1
authorTufman, Shay (st198j) <st198j@intl.att.com>
Sun, 8 Jul 2018 12:28:17 +0000 (15:28 +0300)
committerTufman, Shay (st198j) <st198j@intl.att.com>
Sun, 8 Jul 2018 12:28:17 +0000 (15:28 +0300)
Change-Id: I62e843afcc5cdb53357705e2cf4515eee7175994
Issue-ID: SDC-1479
Signed-off-by: Tufman, Shay (st198j) <st198j@intl.att.com>
src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java
src/test/resources/csars/service-Servicetosca9-csar.csar [new file with mode: 0644]

index 1e0dd0a..0c80202 100644 (file)
@@ -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 (file)
index 0000000..0627cfc
Binary files /dev/null and b/src/test/resources/csars/service-Servicetosca9-csar.csar differ