blob: 54c06dd0d0b080070ef64461fa9a3e57eb41d20b (
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
|
package org.openecomp.sdc.translator.services.heattotosca.impl;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
public class ResourceTranslationCinderVolumeAttachmentImplTest extends BaseResourceTranslationTest {
@Override
@Before
public void setUp() throws IOException {
// do not delete this function. it prevents the superclass setup from running
}
@Test
public void testTranslateAllResourcesInOneFile() throws Exception {
inputFilesPath = "/mock/services/heattotosca/vol_att/volume_and_attach_one_file/inputfiles";
outputFilesPath =
"/mock/services/heattotosca/vol_att/volume_and_attach_one_file/expectedoutputfiles";
initTranslatorAndTranslate();
testTranslation();
}
@Test
public void testVolFileIsNestedInMainHeatFile() throws Exception {
inputFilesPath =
"/mock/services/heattotosca/vol_att/volume_file_nested_in_main_file_in_manifest/inputfiles";
outputFilesPath =
"/mock/services/heattotosca/vol_att/volume_file_nested_in_main_file_in_manifest/expectedoutputfiles";
initTranslatorAndTranslate();
testTranslation();
}
@Test
public void testVolFileAsDataOfNested() throws Exception {
inputFilesPath = "/mock/services/heattotosca/vol_att/nested_with_inner_vol/inputfiles";
outputFilesPath = "/mock/services/heattotosca/vol_att/nested_with_inner_vol/out";
initTranslatorAndTranslate();
testTranslation();
}
@Test
public void testVolFileIsParallelToMainHeatFile() throws Exception {
inputFilesPath =
"/mock/services/heattotosca/vol_att/volume_file_parallel_to_main_file/inputfiles";
outputFilesPath =
"/mock/services/heattotosca/vol_att/volume_file_parallel_to_main_file/expectedoutputfiles";
initTranslatorAndTranslate();
testTranslation();
}
}
|