diff options
author | siddharth0905 <siddharth.singh4@amdocs.com> | 2018-04-09 21:40:24 +0530 |
---|---|---|
committer | Oren Kleks <orenkle@amdocs.com> | 2018-04-10 06:36:06 +0000 |
commit | f691a83954e8fe1148d2a4386cba509bddfa95d5 (patch) | |
tree | fcb53723319a55b4fbc82a8b94d2dc31000c66f0 /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp | |
parent | 02ab6515cd2a2f38aa548d9c64753067a0b1daed (diff) |
Evaluate subinterface_indicator property
Corrected the condition to mark subinterface_indicator true/false
Change-Id: I3f21924defbc89a5fcd9a89ffc1ea0d28eec8c36
Issue-ID: SDC-1183
Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp')
1 files changed, 12 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/fulltest/UnifiedCompositionSubInterfaceFullTest.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/fulltest/UnifiedCompositionSubInterfaceFullTest.java index 41eb0732b1..7914f34ade 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/fulltest/UnifiedCompositionSubInterfaceFullTest.java +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/impl/fulltest/UnifiedCompositionSubInterfaceFullTest.java @@ -133,6 +133,18 @@ public class UnifiedCompositionSubInterfaceFullTest extends BaseFullTranslationT testTranslationWithInit(PATTERN_1A_BASE_DIRECTORY + "notBoundToParentPort"); } + @Test + public void testIfSubInfNotPresentPortPropShouldBeFalse() throws IOException { + /* + * Nested Heat file with one compute, two port and one subinterface resource group with + * 1. Port connected with compute + * 2. Sub-interface connected to only on Port + * 3. Need to verify if sub interface resource is not bind with Port then + * subinterface_indicator property under port value should be false + */ + testTranslationWithInit(PATTERN_1A_BASE_DIRECTORY + "twoPortOnlyOneConnectedWithSubInf"); + } + //Pattern 1B test @Test public void testDiffComputeSubInterface() throws IOException { |