5d73a300e835e8f02f0a010bf404e2ac71b4f93b
[sdc.git] /
1 /*
2  * Copyright © 2016-2017 European Support Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation;
18
19 import org.junit.AfterClass;
20 import org.junit.Before;
21 import org.junit.BeforeClass;
22 import org.junit.Test;
23 import org.openecomp.sdc.common.togglz.ToggleableFeature;
24 import org.togglz.testing.TestFeatureManager;
25 import org.togglz.testing.TestFeatureManagerProvider;
26
27 import java.io.IOException;
28
29 public class ContrailV2VlanToInterfaceResourceConnectionTest extends BaseResourceTranslationTest {
30
31   @Override
32   @Before
33   public void setUp() throws IOException {
34     // do not delete this function. it prevents the superclass setup from running
35   }
36
37   @Test
38   public void testTranslateVlanToInterfaceNestedConnection() throws Exception {
39     inputFilesPath =
40         "/mock/services/heattotosca/subInterfaceToInterfaceConnection/nested/inputfiles";
41     outputFilesPath =
42         "/mock/services/heattotosca/subInterfaceToInterfaceConnection/nested/expectedoutputfiles";
43     initTranslatorAndTranslate();
44     testTranslation();
45   }
46
47   @Test
48   public void testTranslateVlanToNetMultiNestedConnection() throws Exception {
49     inputFilesPath =
50         "/mock/services/heattotosca/subInterfaceToInterfaceConnection/nestedMultiLevels/inputfiles";
51     outputFilesPath =
52         "/mock/services/heattotosca/subInterfaceToInterfaceConnection/nestedMultiLevels" +
53             "/expectedoutputfiles";
54     initTranslatorAndTranslate();
55     testTranslation();
56   }
57
58 }