1 package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
3 import org.junit.Before;
5 import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
7 import java.io.IOException;
9 public class UnifiedCompositionSingleSubstitutionFullTest extends BaseFullTranslationTest {
13 public void setUp() throws IOException {
14 // do not delete this function. it prevents the superclass setup from running
18 public void testComputeWithTwoDifferentPortTypes() throws IOException {
20 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithDiffPortType/in";
22 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithDiffPortType/out";
24 testTranslationWithInit();
28 public void testComputeWithTwoSamePortTypes() throws IOException {
30 "/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes/in";
32 "/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes/out";
34 testTranslationWithInit();
38 public void testComputeWithTwoDifferentPortTypesAndNested() throws IOException {
40 "/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwodiffporttypesandnested/in";
42 "/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwodiffporttypesandnested/out";
44 testTranslationWithInit();
48 public void testComputeWithTwoDifferentPortAndServerGroup() throws IOException {
50 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithDiffPortTypeAndServerGroup/in";
52 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithDiffPortTypeAndServerGroup/out";
54 testTranslationWithInit();
58 public void testComputeWithTwoPortsDiffTypeAndNodeConnectedIn() throws IOException {
60 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithDiffPortTypeNodeConnectedIn/in";
62 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithDiffPortTypeNodeConnectedIn/out";
64 testTranslationWithInit();
68 public void testComputeWithTwoPortsSameTypeAndNodeConnectedIn() throws IOException {
70 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithSamePortTypeNodeConnectedIn/in";
72 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithSamePortTypeNodeConnectedIn/out";
74 testTranslationWithInit();
78 public void testComputeWithTwoPortsDiffTypeAndNodeConnectedOut() throws IOException {
80 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithDiffPortTypeNodeConnectedOut/in";
82 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithDiffPortTypeNodeConnectedOut/out";
84 testTranslationWithInit();
88 public void testComputeWithTwoPortsSameTypeAndNodeConnectedOut() throws IOException {
90 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithSamePortTypeNodeConnectedOut/in";
92 "/mock/services/heattotosca/fulltest/singleSubstitution/computeWithSamePortTypeNodeConnectedOut/out";
94 testTranslationWithInit();
98 public void testComputeWithTwoDifferentPortTypesAndOutParamGetAttIn() throws IOException {
100 "/mock/services/heattotosca/fulltest/singleSubstitution/diffPortTypeAndOutParamGetAttrIn/in";
102 "/mock/services/heattotosca/fulltest/singleSubstitution/diffPortTypeAndOutParamGetAttrIn/out";
104 testTranslationWithInit();
108 public void testComputeWithTwoSamePortTypesAndOutParamGetAttIn() throws IOException {
110 "/mock/services/heattotosca/fulltest/singleSubstitution/samePortTypeAndOutParamGetAttrIn/in";
112 "/mock/services/heattotosca/fulltest/singleSubstitution/samePortTypeAndOutParamGetAttrIn/out";
114 testTranslationWithInit();
118 public void testGeneralVf() throws IOException {
120 "/mock/services/heattotosca/fulltest/singleSubstitution/generalVf/in";
122 "/mock/services/heattotosca/fulltest/singleSubstitution/generalVf/out";
124 testTranslationWithInit();
128 public void testTwoSetsOfSingle() throws IOException {
130 "/mock/services/heattotosca/fulltest/singleSubstitution/twoSetsOfSingle/in";
132 "/mock/services/heattotosca/fulltest/singleSubstitution/twoSetsOfSingle/out";
135 testTranslationWithInit();
139 public void testTwoSetsOfSingleWithGetAttrBetweenThem() throws IOException {
141 "/mock/services/heattotosca/fulltest/singleSubstitution/twoComputesWithGetAttrBetweenThem/in";
143 "/mock/services/heattotosca/fulltest/singleSubstitution/twoComputesWithGetAttrBetweenThem/out";
145 testTranslationWithInit();
149 public void testOneComputeTwoDiffPortsAndGetAttrIn() throws IOException {
151 "/mock/services/heattotosca/fulltest/singleSubstitution/oneComputeDiffPortTypesAndGetAttIn/in";
153 "/mock/services/heattotosca/fulltest/singleSubstitution/oneComputeDiffPortTypesAndGetAttIn/out";
155 testTranslationWithInit();
159 public void testOneComputeTwoSimilarPortsAndGetAttrIn() throws IOException {
161 "/mock/services/heattotosca/fulltest/singleSubstitution/oneComputeSamePortsAndGetAttrIn/in";
163 "/mock/services/heattotosca/fulltest/singleSubstitution/oneComputeSamePortsAndGetAttrIn/out";
165 testTranslationWithInit();
169 public void testOneComputeTwoDiffPortsAndGetAttrOut() throws IOException {
171 "/mock/services/heattotosca/fulltest/singleSubstitution/oneComputeDiffPortTypesAndGetAttOut/in";
173 "/mock/services/heattotosca/fulltest/singleSubstitution/oneComputeDiffPortTypesAndGetAttOut/out";
175 testTranslationWithInit();
179 public void testOneComputeTwoSimilarPortsAndGetAttrOut() throws IOException {
181 "/mock/services/heattotosca/fulltest/singleSubstitution/oneComputeSamePortTypesAndGetAttOut/in";
183 "/mock/services/heattotosca/fulltest/singleSubstitution/oneComputeSamePortTypesAndGetAttOut/out";
185 testTranslationWithInit();
189 public void testThreeNovaSameTypeNoConsolidation() throws IOException {
191 "/mock/services/heattotosca/fulltest/singleSubstitution/threeSameComputesNoConsolidation/in";
193 "/mock/services/heattotosca/fulltest/singleSubstitution/threeSameComputesNoConsolidation/out";
195 testTranslationWithInit();
199 public void testThreeNovaDiffTypeWithPorts() throws IOException {
201 "/mock/services/heattotosca/fulltest/singleSubstitution/threeDiffComputesWithPorts/in";
203 "/mock/services/heattotosca/fulltest/singleSubstitution/threeDiffComputesWithPorts/out";
205 testTranslationWithInit();
209 public void testThreeNovaDiffTypeWithAllConnectivities() throws IOException {
211 "/mock/services/heattotosca/fulltest/singleSubstitution/threeDiffComputesWithAllConnectivities/in";
213 "/mock/services/heattotosca/fulltest/singleSubstitution/threeDiffComputesWithAllConnectivities/out";
215 testTranslationWithInit();
219 public void testThreeNovaSameTypeWithGetAttrOutFromPort() throws IOException {
221 "/mock/services/heattotosca/fulltest/singleSubstitution/threeNovaSameTypeWithGetAttrFromPort/in";
223 "/mock/services/heattotosca/fulltest/singleSubstitution/threeNovaSameTypeWithGetAttrFromPort/out";
225 testTranslationWithInit();