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();
46 //todo - remove the ignore once we will support VMI as sub port
49 public void testTranslateVlanToNetNestedConnection() throws Exception {
50 inputFilesPath = "/mock/services/heattotosca/VlanToNetConnection/nested/inputfiles";
52 "/mock/services/heattotosca/VlanToNetConnection/nested/expectedoutputfiles";
53 initTranslatorAndTranslate();
58 public void testTranslateVMIToNetMultiNestedConnection() throws Exception {
60 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nestedMultiLevels/inputfiles";
62 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nestedMultiLevels/expectedoutputfiles";
63 initTranslatorAndTranslate();
67 //todo - remove the ignore once we will support VMI as sub port
70 public void testTranslateVlanToNetMultiNestedConnection() throws Exception {
72 "/mock/services/heattotosca/VlanToNetConnection/nestedMultiLevels/inputfiles";
74 "/mock/services/heattotosca/VlanToNetConnection/nestedMultiLevels/expectedoutputfiles";
75 initTranslatorAndTranslate();
80 public void testTranslateVMIToSharedNetNestedConnection() throws Exception {
81 inputFilesPath = "/mock/services/heattotosca/VMInterfaceToNettworkConnection/shared/inputfiles";
83 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/shared/expectedoutputfiles";
84 initTranslatorAndTranslate();
88 //todo - remove the ignore once we will support VMI as sub port
91 public void testTranslateVlanToSharedNetNestedConnection() throws Exception {
92 inputFilesPath = "/mock/services/heattotosca/VlanToNetConnection/shared/inputfiles";
94 "/mock/services/heattotosca/VlanToNetConnection/shared/expectedoutputfiles";
95 initTranslatorAndTranslate();
100 public void testTranslateVMIToNetSharedMultiNestedConnection() throws Exception {
102 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/sharedNestedMultiLevels/inputfiles";
104 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/sharedNestedMultiLevels/expectedoutputfiles";
105 initTranslatorAndTranslate();
110 public void testTranslateVMIToNetSharedAddOnConnection() throws Exception {
111 inputFilesPath = "/mock/services/heattotosca/VMInterfaceToNettworkConnection/sharedAddOn/inputfiles";
113 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/sharedAddOn/expectedoutputfiles";
114 initTranslatorAndTranslate();
118 //todo - remove the ignore once we will support VMI as sub port
121 public void testTranslateVlanToNetSharedAddOnConnection() throws Exception {
122 inputFilesPath = "/mock/services/heattotosca/VlanToNetConnection/sharedAddOn/inputfiles";
124 "/mock/services/heattotosca/VlanToNetConnection/sharedAddOn/expectedoutputfiles";
125 initTranslatorAndTranslate();
130 public void testTranslateVMIToNetArrayParameterConnection() throws Exception {
131 inputFilesPath = "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nestedArrayParam/inputfiles";
133 "/mock/services/heattotosca/VMInterfaceToNettworkConnection/nestedArrayParam/expectedoutputfiles";
134 initTranslatorAndTranslate();