[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 / NovaToVolResourceConnectionTest.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 /**
9  * @author avrahamg
10  * @since July 26, 2016
11  */
12 public class NovaToVolResourceConnectionTest extends BaseResourceTranslationTest {
13   @Override
14   @Before
15   public void setUp() throws IOException {
16     // do not delete this function. it prevents the superclass setup from running
17   }
18
19   @Test
20   public void testNovaToVolumeConnectionMultiConnection() throws Exception {
21     inputFilesPath = "/mock/services/heattotosca/novatovolumeconnection/multiconnection/inputfiles";
22     outputFilesPath =
23         "/mock/services/heattotosca/novatovolumeconnection/multiconnection/expectedoutputfiles";
24     initTranslatorAndTranslate();
25     testTranslation();
26   }
27
28   @Test
29   public void testNovaToVolumeConnectionMultiNotCreatedIfVolPorpertyInVolAttacheIsNotAReferenceToVolume()
30       throws Exception {
31     inputFilesPath =
32         "/mock/services/heattotosca/novatovolumeconnection/multinotconnected/inputfiles";
33     outputFilesPath =
34         "/mock/services/heattotosca/novatovolumeconnection/multinotconnected/expectedoutputfiles";
35     initTranslatorAndTranslate();
36     testTranslation();
37   }
38
39   @Test
40   public void testNovaToVolumeConnectionNestedNotCreatedIfVolPorpertyInVolAttacheIsNotAReferenceToVolume()
41       throws Exception {
42     inputFilesPath =
43         "/mock/services/heattotosca/novatovolumeconnection/nestednotconnected/inputfiles";
44     outputFilesPath =
45         "/mock/services/heattotosca/novatovolumeconnection/nestednotconnected/expectedoutputfiles";
46     initTranslatorAndTranslate();
47     testTranslation();
48   }
49
50   @Test
51   public void testTranslateNovaToVolumeNestedConnection() throws Exception {
52     inputFilesPath =
53         "/mock/services/heattotosca/novatovolumeconnection/nestedconnection/inputfiles";
54     outputFilesPath =
55         "/mock/services/heattotosca/novatovolumeconnection/nestedconnection/expectedoutputfiles";
56     initTranslatorAndTranslate();
57     testTranslation();
58   }
59
60   @Test
61   public void testTranslateNovaToVolumeSharedNestedConnection() throws Exception {
62     inputFilesPath =
63         "/mock/services/heattotosca/novatovolumeconnection/sharednestedconnection/inputfiles";
64     outputFilesPath =
65         "/mock/services/heattotosca/novatovolumeconnection/sharednestedconnection/expectedoutputfiles";
66     initTranslatorAndTranslate();
67     testTranslation();
68   }
69
70   @Test
71   public void testTranslateNovaToVolumeSharedNestedNotCreatedIfVolPorpertyInVolAttacheIsNotAReferenceToVolume()
72       throws Exception {
73     inputFilesPath =
74         "/mock/services/heattotosca/novatovolumeconnection/sharednestednotconnected/inputfiles";
75     outputFilesPath =
76         "/mock/services/heattotosca/novatovolumeconnection/sharednestednotconnected/expectedoutputfiles";
77     initTranslatorAndTranslate();
78     testTranslation();
79   }
80
81   @Test
82   public void testTranslateNovaToVolumeInnerNestedConnection() throws Exception {
83     inputFilesPath =
84         "/mock/services/heattotosca/novatovolumeconnection/innernestedconnection/inputfiles";
85     outputFilesPath =
86         "/mock/services/heattotosca/novatovolumeconnection/innernestedconnection/expectedoutputfiles";
87     initTranslatorAndTranslate();
88     testTranslation();
89   }
90
91 }