blob: 7036e235880da46087bb67b83ae4a2c1f1c69eb9 (
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
|
package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
import org.junit.Before;
import org.junit.Test;
import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
import java.io.IOException;
public class UnifiedCompositionCatalogInstanceFullTest extends BaseFullTranslationTest {
@Override
@Before
public void setUp() throws IOException {
// do not delete this function. it prevents the superclass setup from running
}
@Test
public void testThreeNovaSameTypeDiffGetAttrFromSameEntitiesTypes() throws IOException {
inputFilesPath =
"/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypeGetAttrBetweenThem/in";
outputFilesPath =
"/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypeGetAttrBetweenThem/out";
testTranslationWithUnifiedCondition();
}
@Test
public void testThreeNovaSameTypePortsConnectedToDiffNetworks() throws IOException {
inputFilesPath =
"/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypePortsConnectedToDiffNetworks/in";
outputFilesPath =
"/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypePortsConnectedToDiffNetworks/out";
testTranslationWithUnifiedCondition();
}
@Test
public void testThreeNovaSameTypeDiffImageName() throws IOException {
inputFilesPath =
"/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypeDiffImageName/in";
outputFilesPath =
"/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypeDiffImageName/out";
testTranslationWithUnifiedCondition();
}
@Test
public void testTwoNovaWithDiffProperties() throws IOException {
inputFilesPath =
"/mock/services/heattotosca/fulltest/catalogInstances/twoNovaWithDiffProperties/in";
outputFilesPath =
"/mock/services/heattotosca/fulltest/catalogInstances/twoNovaWithDiffProperties/out";
testTranslationWithUnifiedCondition();
}
private void testTranslationWithUnifiedCondition() throws IOException {
initTranslatorAndTranslate();
testTranslation();
}
}
|