[SDC] Onboarding 1710 rebase.
[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   @Test
48   public void testTwoNovaWithDiffProperties() throws IOException {
49     inputFilesPath =
50         "/mock/services/heattotosca/fulltest/catalogInstances/twoNovaWithDiffProperties/in";
51     outputFilesPath =
52         "/mock/services/heattotosca/fulltest/catalogInstances/twoNovaWithDiffProperties/out";
53
54     testTranslationWithUnifiedCondition();
55   }
56
57
58
59   private void testTranslationWithUnifiedCondition() throws IOException {
60       initTranslatorAndTranslate();
61       testTranslation();
62   }
63 }