1 package org.openecomp.sdc.translator.services.heattotosca.impl.fulltest;
4 import org.openecomp.sdc.translator.services.heattotosca.impl.resourcetranslation.BaseFullTranslationTest;
6 import java.io.IOException;
8 public class UnifiedCompositionSingleSubstitutionFullTest extends BaseFullTranslationTest {
10 private static final String BASE_DIRECTORY = "/mock/services/heattotosca/fulltest/singleSubstitution/";
13 public void testComputeWithTwoDifferentPortTypes() throws IOException {
14 testTranslationWithInit(BASE_DIRECTORY + "computeWithDiffPortType");
18 public void testComputeWithTwoSamePortTypes() throws IOException {
19 testTranslationWithInit(BASE_DIRECTORY + "computewithtwosameporttypes");
23 public void testComputeWithTwoSamePortTypes2() throws IOException {
24 testTranslationWithInit(BASE_DIRECTORY + "computewithtwosameporttypes2");
28 public void testComputeWithTwoSamePortTypes3() throws IOException {
29 testTranslationWithInit(BASE_DIRECTORY + "computewithtwosameporttypes3");
33 public void testComputeWithTwoSamePortTypes4() throws IOException {
34 testTranslationWithInit(BASE_DIRECTORY + "computewithtwosameporttypes4");
38 public void testComputeWithTwoDifferentPortTypesAndNested() throws IOException {
39 testTranslationWithInit(BASE_DIRECTORY + "computewithtwodiffporttypesandnested");
43 public void testComputeWithTwoDifferentPortAndServerGroup() throws IOException {
44 testTranslationWithInit(BASE_DIRECTORY + "computeWithDiffPortTypeAndServerGroup");
48 public void testComputeWithTwoPortsDiffTypeAndNodeConnectedIn() throws IOException {
49 testTranslationWithInit(BASE_DIRECTORY + "computeWithDiffPortTypeNodeConnectedIn");
53 public void testComputeWithTwoPortsSameTypeAndNodeConnectedIn() throws IOException {
54 testTranslationWithInit(BASE_DIRECTORY + "computeWithSamePortTypeNodeConnectedIn");
58 public void testComputeWithTwoPortsDiffTypeAndNodeConnectedOut() throws IOException {
59 testTranslationWithInit(BASE_DIRECTORY + "computeWithDiffPortTypeNodeConnectedOut");
63 public void testComputeWithTwoPortsSameTypeAndNodeConnectedOut() throws IOException {
64 testTranslationWithInit(BASE_DIRECTORY + "computeWithSamePortTypeNodeConnectedOut");
68 public void testComputeWithTwoDifferentPortTypesAndOutParamGetAttIn() throws IOException {
69 testTranslationWithInit(BASE_DIRECTORY + "diffPortTypeAndOutParamGetAttrIn");
73 public void testComputeWithTwoSamePortTypesAndOutParamGetAttIn() throws IOException {
74 testTranslationWithInit(BASE_DIRECTORY + "samePortTypeAndOutParamGetAttrIn");
78 // public void testGeneralVf() throws IOException {
80 // "/mock/services/heattotosca/fulltest/singleSubstitution/generalVf/in";
82 // "/mock/services/heattotosca/fulltest/singleSubstitution/generalVf/out";
84 // testTranslationWithInit();
88 public void testTwoSetsOfSingle() throws IOException {
89 testTranslationWithInit(BASE_DIRECTORY + "twoSetsOfSingle");
93 public void testTwoSetsOfSingleWithGetAttrBetweenThem() throws IOException {
94 testTranslationWithInit(BASE_DIRECTORY + "twoComputesWithGetAttrBetweenThem");
98 public void testOneComputeTwoDiffPortsAndGetAttrIn() throws IOException {
99 testTranslationWithInit(BASE_DIRECTORY + "oneComputeDiffPortTypesAndGetAttIn");
103 public void testOneComputeTwoSimilarPortsAndGetAttrIn() throws IOException {
104 testTranslationWithInit(BASE_DIRECTORY + "oneComputeSamePortsAndGetAttrIn");
108 public void testOneComputeTwoDiffPortsAndGetAttrOut() throws IOException {
109 testTranslationWithInit(BASE_DIRECTORY + "oneComputeDiffPortTypesAndGetAttOut");
113 public void testOneComputeTwoSimilarPortsAndGetAttrOut() throws IOException {
114 testTranslationWithInit(BASE_DIRECTORY + "oneComputeSamePortTypesAndGetAttOut");
118 public void testThreeNovaSameTypeNoConsolidation() throws IOException {
119 testTranslationWithInit(BASE_DIRECTORY + "threeSameComputesNoConsolidation");
123 public void testThreeNovaDiffTypeWithPorts() throws IOException {
124 testTranslationWithInit(BASE_DIRECTORY + "threeDiffComputesWithPorts");
128 public void testThreeNovaDiffTypeWithAllConnectivities() throws IOException {
129 testTranslationWithInit(BASE_DIRECTORY + "threeDiffComputesWithAllConnectivities");
133 public void testThreeNovaSameTypeWithGetAttrOutFromPort() throws IOException {
134 testTranslationWithInit(BASE_DIRECTORY + "threeNovaSameTypeWithGetAttrFromPort");
138 public void testInputOutputParameterTypes() throws IOException {
139 testTranslationWithInit(BASE_DIRECTORY + "inputOutputParamType");