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