summaryrefslogtreecommitdiffstats
path: root/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test
diff options
context:
space:
mode:
authorkooper <sergey.sachkov@est.tech>2019-03-05 13:31:45 +0000
committerOren Kleks <orenkle@amdocs.com>2019-03-07 11:35:50 +0000
commit90c460aa3c23c9a12885894b4664f7c742c8d29f (patch)
treeed5f4515307f1ed398e9ed7640e4a6d2e305db8b /openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test
parent732404b1c26892989885cf9e1f7d2c3506b035b9 (diff)
Parse Tosca.meta file
Change-Id: I50521fb62999322c99b39024097ab5729f3c1580 Issue-ID: SDC-2151 Signed-off-by: kooper <sergey.sachkov@est.tech>
Diffstat (limited to 'openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test')
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/upload/csar/MetadataParsingTest.java31
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/vspmanager.csar/metadata/Invalidtosca.meta3
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/vspmanager.csar/metadata/Validtosca.meta4
3 files changed, 0 insertions, 38 deletions
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/upload/csar/MetadataParsingTest.java b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/upload/csar/MetadataParsingTest.java
deleted file mode 100644
index b17c8a17cd..0000000000
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/upload/csar/MetadataParsingTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.openecomp.sdc.vendorsoftwareproduct.upload.csar;
-
-
-import static org.testng.Assert.assertEquals;
-
-import java.io.IOException;
-import java.io.InputStream;
-import org.openecomp.sdc.vendorsoftwareproduct.impl.orchestration.csar.OnboardingToscaMetadata;
-import org.testng.annotations.Test;
-
-public class MetadataParsingTest {
-
- @Test
- public void testNoEntryDefinitions() throws IOException {
- try (InputStream is = getClass()
- .getResourceAsStream("/vspmanager.csar/metadata/Invalidtosca.meta")) {
- OnboardingToscaMetadata onboardingToscaMetadata = new OnboardingToscaMetadata(is);
- assertEquals(onboardingToscaMetadata.getEntryDefinitionsPath(), null);
- }
- }
-
- @Test
- public void testValidMetadataFile() throws IOException {
- try (InputStream is = getClass()
- .getResourceAsStream("/vspmanager.csar/metadata/Validtosca.meta")) {
- OnboardingToscaMetadata onboardingToscaMetadata = new OnboardingToscaMetadata(is);
- assertEquals(onboardingToscaMetadata.getEntryDefinitionsPath(), "Definitions/MainServiceTemplate.yaml");
- }
-
- }
-}
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/vspmanager.csar/metadata/Invalidtosca.meta b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/vspmanager.csar/metadata/Invalidtosca.meta
deleted file mode 100644
index e9f08025dc..0000000000
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/vspmanager.csar/metadata/Invalidtosca.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-TOSCA-Meta-File-Version: 1.0
-CSAR-Version: 1.1
-Created-By: Feng yuanxing
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/vspmanager.csar/metadata/Validtosca.meta b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/vspmanager.csar/metadata/Validtosca.meta
deleted file mode 100644
index 1f3980547c..0000000000
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/resources/vspmanager.csar/metadata/Validtosca.meta
+++ /dev/null
@@ -1,4 +0,0 @@
-TOSCA-Meta-File-Version: 1.0
-CSAR-Version: 1.1
-Created-By: Feng yuanxing
-Entry-Definitions: Definitions/MainServiceTemplate.yaml