2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation;
23 import org.junit.Before;
24 import org.junit.Ignore;
25 import org.junit.Test;
27 import java.io.IOException;
30 public class ContrailV2VmInterfaceToNetResourceConnectionTest extends BaseResourceTranslationTest {
33 public void setUp() throws IOException {
34 // do not delete this function. it prevents the superclass setup from running
38 public void testTranslateVMIToNetNestedConnection() throws Exception {
39 inputFilesPath = "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nested/inputfiles";
41 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nested/expectedoutputfiles";
42 initTranslatorAndTranslate();
47 public void testTranslateVlanToNetNestedConnection() throws Exception {
48 inputFilesPath = "/mock/services/heattotosca/VlanToNetConnection/nested/inputfiles";
50 "/mock/services/heattotosca/VlanToNetConnection/nested/expectedoutputfiles";
51 initTranslatorAndTranslate();
56 public void testTranslateVMIToNetMultiNestedConnection() throws Exception {
58 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nestedMultiLevels/inputfiles";
60 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nestedMultiLevels/expectedoutputfiles";
61 initTranslatorAndTranslate();
66 public void testTranslateVlanToNetMultiNestedConnection() throws Exception {
68 "/mock/services/heattotosca/VlanToNetConnection/nestedMultiLevels/inputfiles";
70 "/mock/services/heattotosca/VlanToNetConnection/nestedMultiLevels/expectedoutputfiles";
71 initTranslatorAndTranslate();
76 public void testTranslateVMIToSharedNetNestedConnection() throws Exception {
77 inputFilesPath = "/mock/services/heattotosca/VMInterfaceToNettworkConnection/shared/inputfiles";
79 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/shared/expectedoutputfiles";
80 initTranslatorAndTranslate();
85 public void testTranslateVlanToSharedNetNestedConnection() throws Exception {
86 inputFilesPath = "/mock/services/heattotosca/VlanToNetConnection/shared/inputfiles";
88 "/mock/services/heattotosca/VlanToNetConnection/shared/expectedoutputfiles";
89 initTranslatorAndTranslate();
94 public void testTranslateVMIToNetSharedMultiNestedConnection() throws Exception {
96 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/sharedNestedMultiLevels/inputfiles";
98 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/sharedNestedMultiLevels/expectedoutputfiles";
99 initTranslatorAndTranslate();
104 public void testTranslateVMIToNetSharedAddOnConnection() throws Exception {
105 inputFilesPath = "/mock/services/heattotosca/VMInterfaceToNettworkConnection/sharedAddOn/inputfiles";
107 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/sharedAddOn/expectedoutputfiles";
108 initTranslatorAndTranslate();
113 public void testTranslateVlanToNetSharedAddOnConnection() throws Exception {
114 inputFilesPath = "/mock/services/heattotosca/VlanToNetConnection/sharedAddOn/inputfiles";
116 "/mock/services/heattotosca/VlanToNetConnection/sharedAddOn/expectedoutputfiles";
117 initTranslatorAndTranslate();
122 public void testTranslateVMIToNetArrayParameterConnection() throws Exception {
123 inputFilesPath = "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nestedArrayParam/inputfiles";
125 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nestedArrayParam/expectedoutputfiles";
126 initTranslatorAndTranslate();