[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / java / org / openecomp / sdc / translator / services / heattotosca / impl / ResourceTranslationCinderVolumeAttachmentImplTest.java
1 package org.openecomp.sdc.translator.services.heattotosca.impl;
2
3 import org.junit.Before;
4 import org.junit.Test;
5
6 import java.io.IOException;
7
8 public class ResourceTranslationCinderVolumeAttachmentImplTest extends BaseResourceTranslationTest {
9
10   @Override
11   @Before
12   public void setUp() throws IOException {
13     // do not delete this function. it prevents the superclass setup from running
14   }
15
16   @Test
17   public void testTranslateAllResourcesInOneFile() throws Exception {
18     inputFilesPath = "/mock/services/heattotosca/vol_att/volume_and_attach_one_file/inputfiles";
19     outputFilesPath =
20         "/mock/services/heattotosca/vol_att/volume_and_attach_one_file/expectedoutputfiles";
21     initTranslatorAndTranslate();
22     testTranslation();
23   }
24
25   @Test
26   public void testVolFileIsNestedInMainHeatFile() throws Exception {
27     inputFilesPath =
28         "/mock/services/heattotosca/vol_att/volume_file_nested_in_main_file_in_manifest/inputfiles";
29     outputFilesPath =
30         "/mock/services/heattotosca/vol_att/volume_file_nested_in_main_file_in_manifest/expectedoutputfiles";
31     initTranslatorAndTranslate();
32     testTranslation();
33   }
34
35   @Test
36   public void testVolFileAsDataOfNested() throws Exception {
37     inputFilesPath = "/mock/services/heattotosca/vol_att/nested_with_inner_vol/inputfiles";
38     outputFilesPath = "/mock/services/heattotosca/vol_att/nested_with_inner_vol/out";
39     initTranslatorAndTranslate();
40     testTranslation();
41   }
42
43   @Test
44   public void testVolFileIsParallelToMainHeatFile() throws Exception {
45     inputFilesPath =
46         "/mock/services/heattotosca/vol_att/volume_file_parallel_to_main_file/inputfiles";
47     outputFilesPath =
48         "/mock/services/heattotosca/vol_att/volume_file_parallel_to_main_file/expectedoutputfiles";
49     initTranslatorAndTranslate();
50     testTranslation();
51   }
52 }