summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/multi/Translate_Heat_Nested_Multi.java17
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/nestedvolumelocal/NestedVolumelocal.java17
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/nestedvolumeseperatefile/NestedVolumeSeperateFile.java17
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/recursive/TranslateHeatNestedRecursiveTest.java43
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/reusenestedfrommultibase/Translate_Heat_Nested_From_Multi_Base.java18
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/separatevol/NestedAndSeparateVolTranslationTest.java22
-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.java17
7 files changed, 151 insertions, 0 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/multi/Translate_Heat_Nested_Multi.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/multi/Translate_Heat_Nested_Multi.java
new file mode 100644
index 0000000000..4be63258ae
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/multi/Translate_Heat_Nested_Multi.java
@@ -0,0 +1,17 @@
+package org.openecomp.sdc.translator.impl.heattotosca.nested.multi;
+
+import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest;
+import org.junit.Test;
+
+public class Translate_Heat_Nested_Multi extends BaseResourceTranslationTest {
+
+ {
+ inputFilesPath = "/mock/heat/nested/multi/inputs";
+ outputFilesPath = "/mock/heat/nested/multi/expectedoutputfiles";
+ }
+
+ @Test
+ public void testTranslate() throws Exception {
+ testTranslation();
+ }
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/nestedvolumelocal/NestedVolumelocal.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/nestedvolumelocal/NestedVolumelocal.java
new file mode 100644
index 0000000000..4f2f3af33a
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/nestedvolumelocal/NestedVolumelocal.java
@@ -0,0 +1,17 @@
+package org.openecomp.sdc.translator.impl.heattotosca.nested.nestedvolumelocal;
+
+import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest;
+import org.junit.Test;
+
+public class NestedVolumelocal extends BaseResourceTranslationTest {
+
+ {
+ inputFilesPath = "/mock/heat/nested/nestedvolumelocal/inputs";
+ outputFilesPath = "/mock/heat/nested/nestedvolumelocal/expectedoutputfiles";
+ }
+
+ @Test
+ public void testTranslate() throws Exception {
+ testTranslation();
+ }
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/nestedvolumeseperatefile/NestedVolumeSeperateFile.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/nestedvolumeseperatefile/NestedVolumeSeperateFile.java
new file mode 100644
index 0000000000..02a8fb6ce4
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/nestedvolumeseperatefile/NestedVolumeSeperateFile.java
@@ -0,0 +1,17 @@
+package org.openecomp.sdc.translator.impl.heattotosca.nested.nestedvolumeseperatefile;
+
+import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest;
+import org.junit.Test;
+
+public class NestedVolumeSeperateFile extends BaseResourceTranslationTest {
+
+ {
+ inputFilesPath = "/mock/heat/nested/nestedvolumeseperatefile/inputs";
+ outputFilesPath = "/mock/heat/nested/nestedvolumeseperatefile/expectedoutputfiles";
+ }
+
+ @Test
+ public void testTranslate() throws Exception {
+ testTranslation();
+ }
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/recursive/TranslateHeatNestedRecursiveTest.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/recursive/TranslateHeatNestedRecursiveTest.java
new file mode 100644
index 0000000000..792f4f4bf5
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/recursive/TranslateHeatNestedRecursiveTest.java
@@ -0,0 +1,43 @@
+package org.openecomp.sdc.translator.impl.heattotosca.nested.recursive;
+
+import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.io.IOException;
+
+public class TranslateHeatNestedRecursiveTest extends BaseResourceTranslationTest {
+
+
+ @Override
+ @Before
+ public void setUp() throws IOException {
+ // do not delete this function. it prevents the superclass setup from running
+ }
+
+ @Test
+ public void testTranslateRecursive() throws Exception {
+ inputFilesPath = "/mock/heat/nested/recursive/inputs";
+ outputFilesPath = "/mock/heat/nested/recursive/expectedoutputfiles";
+ initTranslatorAndTranslate();
+ testTranslation();
+ }
+
+ @Test
+ public void testTranslateExposedReq2Level() throws Exception {
+ inputFilesPath = "/mock/heat/nested/nested2levels/inputs";
+ outputFilesPath = "/mock/heat/nested/nested2levels/expectedoutputfiles";
+ initTranslatorAndTranslate();
+ testTranslation();
+ }
+
+ @Test
+ public void testTranslateExposedReq3Level() throws Exception {
+ inputFilesPath = "/mock/heat/nested/nested3levels/inputs";
+ outputFilesPath = "/mock/heat/nested/nested3levels/expectedoutputfiles";
+ initTranslatorAndTranslate();
+ testTranslation();
+ }
+
+
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/reusenestedfrommultibase/Translate_Heat_Nested_From_Multi_Base.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/reusenestedfrommultibase/Translate_Heat_Nested_From_Multi_Base.java
new file mode 100644
index 0000000000..005bcd0db0
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/reusenestedfrommultibase/Translate_Heat_Nested_From_Multi_Base.java
@@ -0,0 +1,18 @@
+package org.openecomp.sdc.translator.impl.heattotosca.nested.reusenestedfrommultibase;
+
+import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest;
+import org.junit.Test;
+
+public class Translate_Heat_Nested_From_Multi_Base extends BaseResourceTranslationTest {
+
+ {
+ inputFilesPath = "/mock/heat/nested/reusenestedfrommultibase/inputs";
+ outputFilesPath = "/mock/heat/nested/reusenestedfrommultibase/expectedoutputfiles";
+ }
+
+ @Test
+ public void testTranslate() throws Exception {
+ testTranslation();
+ }
+
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/separatevol/NestedAndSeparateVolTranslationTest.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/separatevol/NestedAndSeparateVolTranslationTest.java
new file mode 100644
index 0000000000..4269705923
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/impl/heattotosca/nested/separatevol/NestedAndSeparateVolTranslationTest.java
@@ -0,0 +1,22 @@
+package org.openecomp.sdc.translator.impl.heattotosca.nested.separatevol;
+
+import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.io.IOException;
+
+public class NestedAndSeparateVolTranslationTest extends BaseResourceTranslationTest {
+
+ @Before
+ public void setUp() throws IOException {
+ inputFilesPath = "/mock/services/heattotosca/hot-nimbus-oam-volumes_v1.0/inputfiles";
+ outputFilesPath = "/mock/services/heattotosca/hot-nimbus-oam-volumes_v1.0/out";
+ super.setUp();
+ }
+
+ @Test
+ public void testTranslate() throws Exception {
+ testTranslation();
+ }
+} \ No newline at end of file
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
new file mode 100644
index 0000000000..1d80551f27
--- /dev/null
+++ 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
@@ -0,0 +1,17 @@
+package org.openecomp.sdc.translator.impl.heattotosca.nested.single;
+
+import org.openecomp.sdc.translator.services.heattotosca.impl.BaseResourceTranslationTest;
+import org.junit.Test;
+
+public class TranslateHeatNestedSingle extends BaseResourceTranslationTest {
+
+ {
+ inputFilesPath = "/mock/heat/nested/single/inputs";
+ outputFilesPath = "/mock/heat/nested/single/expectedoutputfiles";
+ }
+
+ @Test
+ public void testTranslate() throws Exception {
+ testTranslation();
+ }
+}