2af3f85c5d5c41577e50f3b9e9f4aa1ec6881808
[sdc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation;
22
23 import org.junit.AfterClass;
24 import org.junit.Before;
25 import org.junit.BeforeClass;
26 import org.junit.Ignore;
27 import org.junit.Test;
28 import org.openecomp.sdc.common.togglz.ToggleableFeature;
29 import org.togglz.testing.TestFeatureManagerProvider;
30
31 import java.io.IOException;
32
33 public class ResourceTranslationContrailV2VlanSubInterfaceImplTest extends
34     BaseResourceTranslationTest {
35     @Override
36     @Before
37     public void setUp() throws IOException {
38         // do not delete this function. it prevents the superclass setup from running
39     }
40
41     @Test
42     public void testTranslateVlanSubInterfaceWithGetResource() throws Exception {
43         inputFilesPath = "/mock/services/heattotosca/contrailv2Vlan/oneInterface/inputfiles";
44         outputFilesPath = "/mock/services/heattotosca/contrailv2Vlan/oneInterface/expectedoutputfiles";
45         initTranslatorAndTranslate();
46         testTranslation();
47     }
48
49     @Test
50     public void testTranslateVlanSubInterfaceWithListOfInterfaceAndNetworks() throws Exception {
51         inputFilesPath = "/mock/services/heattotosca/contrailv2Vlan/listInterface/inputfiles";
52         outputFilesPath =
53             "/mock/services/heattotosca/contrailv2Vlan/listInterface/expectedoutputfiles";
54         initTranslatorAndTranslate();
55         testTranslation();
56     }
57 }