aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java
diff options
context:
space:
mode:
authortalio <tali.orenbach@amdocs.com>2017-09-14 10:54:21 +0300
committertalio <tali.orenbach@amdocs.com>2017-09-14 10:54:21 +0300
commit9c94d11d63d9016af74dcf3a2fd72d50955eace2 (patch)
tree5f56c433dabf17e5bca92a4f95711853f7b871a5 /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java
parentde8841c36349510e1b4c773753afad0eb8061f8c (diff)
Removing service templates without node templates
Bugfix for cases where we have substitution service templates without node templates Issue - ID : SDC-330 Change-Id: Ia9f33ce90fe0dbcc8ca2596ca63da704a48c7e67 Signed-off-by: talio <tali.orenbach@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/single/TranslateHeatNestedSingle.java24
1 files changed, 21 insertions, 3 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/single/TranslateHeatNestedSingle.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/single/TranslateHeatNestedSingle.java
index f81da11bc9..38df156efc 100644
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/single/TranslateHeatNestedSingle.java
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/single/TranslateHeatNestedSingle.java
@@ -20,21 +20,39 @@
package org.openecomp.sdc.translator.impl.heattotosca.nested.single;
+import org.junit.Before;
import org.junit.Test;
import org.openecomp.sdc.translator.services.heattotosca.buildconsolidationdata.ConsolidationDataTestUtil;
import org.openecomp.sdc.translator.services.heattotosca.buildconsolidationdata.TestConstants;
import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseResourceTranslationTest;
+import java.io.IOException;
+
public class TranslateHeatNestedSingle extends BaseResourceTranslationTest {
- {
- inputFilesPath = "/mock/heat/nested/single/inputs";
- outputFilesPath = "/mock/heat/nested/single/expectedoutputfiles";
+ @Override
+ @Before
+ public void setUp() throws IOException {
+ // do not delete this function. it prevents the superclass setup from running
}
+
@Test
public void testTranslate() throws Exception {
+ inputFilesPath = "/mock/heat/nested/single/inputs";
+ outputFilesPath = "/mock/heat/nested/single/expectedoutputfiles";
+
+ initTranslatorAndTranslate();
testTranslation();
validateNestedTemplateConsolidationData(TestConstants.TEST_SINGLE_NESTED_RESOURCE);
}
+
+ @Test
+ public void testTranslateNestedWithoutNodeTemplates() throws IOException {
+ inputFilesPath = "/mock/heat/nested/nestedwithoutNodeTemplates/inputs";
+ outputFilesPath = "/mock/heat/nested/nestedwithoutNodeTemplates/expectedoutputfiles";
+
+ initTranslatorAndTranslate();
+ testTranslation();
+ }
}