diff options
author | Tufman, Shay (st198j) <st198j@intl.att.com> | 2018-07-08 15:28:17 +0300 |
---|---|---|
committer | Tufman, Shay (st198j) <st198j@intl.att.com> | 2018-07-08 15:28:17 +0300 |
commit | 470b614cd002e78155944b653ac1e2f974521079 (patch) | |
tree | 35a407d2298689e7101c37243f372818269e6f73 | |
parent | 273cc6b1a3be92fbb712f7655d9e6cb9ed66b59a (diff) |
Add Unit test for Con level 9
Change-Id: I62e843afcc5cdb53357705e2cf4515eee7175994
Issue-ID: SDC-1479
Signed-off-by: Tufman, Shay (st198j) <st198j@intl.att.com>
-rw-r--r-- | src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java | 9 | ||||
-rw-r--r-- | src/test/resources/csars/service-Servicetosca9-csar.csar | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..0627cfc --- /dev/null +++ b/src/test/resources/csars/service-Servicetosca9-csar.csar |