1 package org.openecomp.sdc.translator.services.heattotosca.impl;
3 import org.junit.Before;
6 import java.io.IOException;
10 * @since July 26, 2016
12 public class NovaToVolResourceConnectionTest extends BaseResourceTranslationTest {
15 public void setUp() throws IOException {
16 // do not delete this function. it prevents the superclass setup from running
20 public void testNovaToVolumeConnectionMultiConnection() throws Exception {
21 inputFilesPath = "/mock/services/heattotosca/novatovolumeconnection/multiconnection/inputfiles";
23 "/mock/services/heattotosca/novatovolumeconnection/multiconnection/expectedoutputfiles";
24 initTranslatorAndTranslate();
29 public void testNovaToVolumeConnectionMultiNotCreatedIfVolPorpertyInVolAttacheIsNotAReferenceToVolume()
32 "/mock/services/heattotosca/novatovolumeconnection/multinotconnected/inputfiles";
34 "/mock/services/heattotosca/novatovolumeconnection/multinotconnected/expectedoutputfiles";
35 initTranslatorAndTranslate();
40 public void testNovaToVolumeConnectionNestedNotCreatedIfVolPorpertyInVolAttacheIsNotAReferenceToVolume()
43 "/mock/services/heattotosca/novatovolumeconnection/nestednotconnected/inputfiles";
45 "/mock/services/heattotosca/novatovolumeconnection/nestednotconnected/expectedoutputfiles";
46 initTranslatorAndTranslate();
51 public void testTranslateNovaToVolumeNestedConnection() throws Exception {
53 "/mock/services/heattotosca/novatovolumeconnection/nestedconnection/inputfiles";
55 "/mock/services/heattotosca/novatovolumeconnection/nestedconnection/expectedoutputfiles";
56 initTranslatorAndTranslate();
61 public void testTranslateNovaToVolumeSharedNestedConnection() throws Exception {
63 "/mock/services/heattotosca/novatovolumeconnection/sharednestedconnection/inputfiles";
65 "/mock/services/heattotosca/novatovolumeconnection/sharednestedconnection/expectedoutputfiles";
66 initTranslatorAndTranslate();
71 public void testTranslateNovaToVolumeSharedNestedNotCreatedIfVolPorpertyInVolAttacheIsNotAReferenceToVolume()
74 "/mock/services/heattotosca/novatovolumeconnection/sharednestednotconnected/inputfiles";
76 "/mock/services/heattotosca/novatovolumeconnection/sharednestednotconnected/expectedoutputfiles";
77 initTranslatorAndTranslate();
82 public void testTranslateNovaToVolumeInnerNestedConnection() throws Exception {
84 "/mock/services/heattotosca/novatovolumeconnection/innernestedconnection/inputfiles";
86 "/mock/services/heattotosca/novatovolumeconnection/innernestedconnection/expectedoutputfiles";
87 initTranslatorAndTranslate();