aboutsummaryrefslogtreecommitdiffstats
path: root/jtosca/src/test
diff options
context:
space:
mode:
authorPavel Aharoni <pa0916@att.com>2017-06-11 14:33:57 +0300
committerPavel Aharoni <pa0916@att.com>2017-06-11 14:33:57 +0300
commit04387deeab820e75c6d37d2ddd5b514cb7bcfd9e (patch)
tree2f4dfacba74ec390c4371c62dc96af2b1d5f19ef /jtosca/src/test
parentfff70fce14ebe7dec3a4d52b7b90cee4414d0562 (diff)
[SDC-32] separate Tosca Parser from DC
Change-Id: I7e7f31ff2bd92fec22031f75b7051d129a21d01b Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'jtosca/src/test')
-rw-r--r--jtosca/src/test/java/org.openecomp.sdc.toscaparser/JToscaMetadataParse.java26
-rw-r--r--jtosca/src/test/resources/csars/csar_hello_world.csarbin936 -> 0 bytes
-rw-r--r--jtosca/src/test/resources/csars/service-ServiceFdnt-csar.csarbin40171 -> 0 bytes
3 files changed, 0 insertions, 26 deletions
diff --git a/jtosca/src/test/java/org.openecomp.sdc.toscaparser/JToscaMetadataParse.java b/jtosca/src/test/java/org.openecomp.sdc.toscaparser/JToscaMetadataParse.java
deleted file mode 100644
index 584a0fd..0000000
--- a/jtosca/src/test/java/org.openecomp.sdc.toscaparser/JToscaMetadataParse.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.openecomp.sdc.toscaparser;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-
-import java.io.File;
-import java.util.LinkedHashMap;
-
-import org.junit.Test;
-import org.openecomp.sdc.toscaparser.api.ToscaTemplate;
-import org.openecomp.sdc.toscaparser.api.common.JToscaException;
-
-public class JToscaMetadataParse {
-
- @Test
- public void testMetadataParsedCorrectly() throws JToscaException {
- String fileStr = JToscaMetadataParse.class.getClassLoader().getResource("csars/csar_hello_world.csar").getFile();
- File file = new File(fileStr);
- ToscaTemplate toscaTemplate = new ToscaTemplate(file.getAbsolutePath(), null, true, null);
- LinkedHashMap<String, Object> metadataProperties = toscaTemplate.getMetaProperties("TOSCA.meta");
- assertNotNull(metadataProperties);
- Object entryDefinition = metadataProperties.get("Entry-Definitions");
- assertNotNull(entryDefinition);
- assertEquals("tosca_helloworld.yaml", entryDefinition);
- }
-}
diff --git a/jtosca/src/test/resources/csars/csar_hello_world.csar b/jtosca/src/test/resources/csars/csar_hello_world.csar
deleted file mode 100644
index 43ffbbc..0000000
--- a/jtosca/src/test/resources/csars/csar_hello_world.csar
+++ /dev/null
Binary files differ
diff --git a/jtosca/src/test/resources/csars/service-ServiceFdnt-csar.csar b/jtosca/src/test/resources/csars/service-ServiceFdnt-csar.csar
deleted file mode 100644
index 983dc9b..0000000
--- a/jtosca/src/test/resources/csars/service-ServiceFdnt-csar.csar
+++ /dev/null
Binary files differ