b6d0fb8ce964b998a30428c32ffd9f6cfeb3c35a
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / java / org / openecomp / sdc / translator / services / heattotosca / impl / fulltest / UnifiedCompositionCatalogInstanceFullTest.java
1 package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
2
3 import org.junit.Before;
4 import org.junit.Test;
5 import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
6
7 import java.io.IOException;
8
9 public class UnifiedCompositionCatalogInstanceFullTest extends BaseFullTranslationTest {
10
11   @Override
12   @Before
13   public void setUp() throws IOException {
14     // do not delete this function. it prevents the superclass setup from running
15   }
16
17   @Test
18   public void testThreeNovaSameTypeDiffGetAttrFromSameEntitiesTypes() throws IOException {
19     inputFilesPath =
20         "/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypeGetAttrBetweenThem/in";
21     outputFilesPath =
22         "/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypeGetAttrBetweenThem/out";
23
24     testTranslationWithUnifiedCondition();
25   }
26
27   @Test
28   public void testThreeNovaSameTypePortsConnectedToDiffNetworks() throws IOException {
29     inputFilesPath =
30         "/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypePortsConnectedToDiffNetworks/in";
31     outputFilesPath =
32         "/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypePortsConnectedToDiffNetworks/out";
33
34     testTranslationWithUnifiedCondition();
35   }
36
37   @Test
38   public void testThreeNovaSameTypeDiffImageName() throws IOException {
39     inputFilesPath =
40         "/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypeDiffImageName/in";
41     outputFilesPath =
42         "/mock/services/heattotosca/fulltest/catalogInstances/threeComputesSameTypeDiffImageName/out";
43
44     testTranslationWithUnifiedCondition();
45   }
46
47
48
49   private void testTranslationWithUnifiedCondition() throws IOException {
50       initTranslatorAndTranslate();
51       testTranslation();
52   }
53 }