43199903e662518d691c4ce74ec3cb01b2660709
[sdc.git] /
1 package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
5
6 import java.io.IOException;
7
8 public class UnifiedCompositionSingleSubstitutionFullTest extends BaseFullTranslationTest {
9
10   private static final String BASE_DIRECTORY = "/mock/services/heattotosca/fulltest/singleSubstitution/";
11
12   @Test
13   public void testComputeWithTwoDifferentPortTypes() throws IOException {
14     testTranslationWithInit(BASE_DIRECTORY + "computeWithDiffPortType");
15   }
16
17   @Test
18   public void testComputeWithTwoSamePortTypes() throws IOException {
19     testTranslationWithInit(BASE_DIRECTORY + "computewithtwosameporttypes");
20   }
21
22   @Test
23   public void testComputeWithTwoSamePortTypes2() throws IOException {
24     testTranslationWithInit(BASE_DIRECTORY + "computewithtwosameporttypes2");
25   }
26
27   @Test
28   public void testComputeWithTwoSamePortTypes3() throws IOException {
29     testTranslationWithInit(BASE_DIRECTORY + "computewithtwosameporttypes3");
30   }
31
32   @Test
33   public void testComputeWithTwoSamePortTypes4() throws IOException {
34     testTranslationWithInit(BASE_DIRECTORY + "computewithtwosameporttypes4");
35   }
36
37   @Test
38   public void testComputeWithTwoDifferentPortTypesAndNested() throws IOException {
39     testTranslationWithInit(BASE_DIRECTORY + "computewithtwodiffporttypesandnested");
40   }
41
42   @Test
43   public void testComputeWithTwoDifferentPortAndServerGroup() throws IOException {
44     testTranslationWithInit(BASE_DIRECTORY + "computeWithDiffPortTypeAndServerGroup");
45   }
46
47   @Test
48   public void testComputeWithTwoPortsDiffTypeAndNodeConnectedIn() throws IOException {
49     testTranslationWithInit(BASE_DIRECTORY + "computeWithDiffPortTypeNodeConnectedIn");
50   }
51
52   @Test
53   public void testComputeWithTwoPortsSameTypeAndNodeConnectedIn() throws IOException {
54     testTranslationWithInit(BASE_DIRECTORY + "computeWithSamePortTypeNodeConnectedIn");
55   }
56
57   @Test
58   public void testComputeWithTwoPortsDiffTypeAndNodeConnectedOut() throws IOException {
59     testTranslationWithInit(BASE_DIRECTORY + "computeWithDiffPortTypeNodeConnectedOut");
60   }
61
62   @Test
63   public void testComputeWithTwoPortsSameTypeAndNodeConnectedOut() throws IOException {
64     testTranslationWithInit(BASE_DIRECTORY + "computeWithSamePortTypeNodeConnectedOut");
65   }
66
67   @Test
68   public void testComputeWithTwoDifferentPortTypesAndOutParamGetAttIn() throws IOException {
69     testTranslationWithInit(BASE_DIRECTORY + "diffPortTypeAndOutParamGetAttrIn");
70   }
71
72   @Test
73   public void testComputeWithTwoSamePortTypesAndOutParamGetAttIn() throws IOException {
74     testTranslationWithInit(BASE_DIRECTORY + "samePortTypeAndOutParamGetAttrIn");
75   }
76
77 //  @Test
78 //  public void testGeneralVf() throws IOException {
79 //    inputFilesPath =
80 //        "/mock/services/heattotosca/fulltest/singleSubstitution/generalVf/in";
81 //    outputFilesPath =
82 //        "/mock/services/heattotosca/fulltest/singleSubstitution/generalVf/out";
83 //
84 //    testTranslationWithInit();
85 //  }
86
87   @Test
88   public void testTwoSetsOfSingle() throws IOException {
89     testTranslationWithInit(BASE_DIRECTORY + "twoSetsOfSingle");
90   }
91
92   @Test
93   public void testTwoSetsOfSingleWithGetAttrBetweenThem() throws IOException {
94     testTranslationWithInit(BASE_DIRECTORY + "twoComputesWithGetAttrBetweenThem");
95   }
96
97   @Test
98   public void testOneComputeTwoDiffPortsAndGetAttrIn() throws IOException {
99     testTranslationWithInit(BASE_DIRECTORY + "oneComputeDiffPortTypesAndGetAttIn");
100   }
101
102   @Test
103   public void testOneComputeTwoSimilarPortsAndGetAttrIn() throws IOException {
104     testTranslationWithInit(BASE_DIRECTORY + "oneComputeSamePortsAndGetAttrIn");
105   }
106
107   @Test
108   public void testOneComputeTwoDiffPortsAndGetAttrOut() throws IOException {
109     testTranslationWithInit(BASE_DIRECTORY + "oneComputeDiffPortTypesAndGetAttOut");
110   }
111
112   @Test
113   public void testOneComputeTwoSimilarPortsAndGetAttrOut() throws IOException {
114     testTranslationWithInit(BASE_DIRECTORY + "oneComputeSamePortTypesAndGetAttOut");
115   }
116
117   @Test
118   public void testThreeNovaSameTypeNoConsolidation() throws IOException {
119     testTranslationWithInit(BASE_DIRECTORY + "threeSameComputesNoConsolidation");
120   }
121
122   @Test
123   public void testThreeNovaDiffTypeWithPorts() throws IOException {
124     testTranslationWithInit(BASE_DIRECTORY + "threeDiffComputesWithPorts");
125   }
126
127   @Test
128   public void testThreeNovaDiffTypeWithAllConnectivities() throws IOException {
129     testTranslationWithInit(BASE_DIRECTORY + "threeDiffComputesWithAllConnectivities");
130   }
131
132   @Test
133   public void testThreeNovaSameTypeWithGetAttrOutFromPort() throws IOException {
134     testTranslationWithInit(BASE_DIRECTORY + "threeNovaSameTypeWithGetAttrFromPort");
135   }
136
137   @Test
138   public void testInputOutputParameterTypes() throws IOException {
139     testTranslationWithInit(BASE_DIRECTORY + "inputOutputParamType");
140   }
141 }