1 package org.openecomp.sdc.translator.services.heattotosca.impl;
3 import org.junit.Before;
6 import java.io.IOException;
8 public class ResourceTranslationCinderVolumeAttachmentImplTest extends BaseResourceTranslationTest {
12 public void setUp() throws IOException {
13 // do not delete this function. it prevents the superclass setup from running
17 public void testTranslateAllResourcesInOneFile() throws Exception {
18 inputFilesPath = "/mock/services/heattotosca/vol_att/volume_and_attach_one_file/inputfiles";
20 "/mock/services/heattotosca/vol_att/volume_and_attach_one_file/expectedoutputfiles";
21 initTranslatorAndTranslate();
26 public void testVolFileIsNestedInMainHeatFile() throws Exception {
28 "/mock/services/heattotosca/vol_att/volume_file_nested_in_main_file_in_manifest/inputfiles";
30 "/mock/services/heattotosca/vol_att/volume_file_nested_in_main_file_in_manifest/expectedoutputfiles";
31 initTranslatorAndTranslate();
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();
44 public void testVolFileIsParallelToMainHeatFile() throws Exception {
46 "/mock/services/heattotosca/vol_att/volume_file_parallel_to_main_file/inputfiles";
48 "/mock/services/heattotosca/vol_att/volume_file_parallel_to_main_file/expectedoutputfiles";
49 initTranslatorAndTranslate();