diff options
author | 2018-05-15 19:55:34 +0530 | |
---|---|---|
committer | 2018-05-16 07:34:14 +0000 | |
commit | 991e8cdeb0f49573d7e849da741251027ea4de6c (patch) | |
tree | 3560f6582485dba3fff40a5792706914041c396f /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp | |
parent | bedf1ad331ac7a19339197fef19c5f7c096e28d3 (diff) |
Nested Dependency issues
Remove nested depends On connectivity
Change-Id: Ic140e88fac74c31200cdd662dcbf6e296183ade3
Issue-ID: SDC-1315
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, 0 insertions, 23 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/buildconsolidationdata/ConsolidationDataTestUtil.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/buildconsolidationdata/ConsolidationDataTestUtil.java index b32e30e615..4381b37912 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/buildconsolidationdata/ConsolidationDataTestUtil.java +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/buildconsolidationdata/ConsolidationDataTestUtil.java @@ -33,9 +33,7 @@ import static org.openecomp.sdc.translator.services.heattotosca.buildconsolidati import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.commons.collections4.CollectionUtils; import org.junit.Assert; -import org.openecomp.sdc.tosca.datatypes.ToscaCapabilityType; import org.openecomp.sdc.tosca.datatypes.ToscaNodeType; -import org.openecomp.sdc.tosca.datatypes.ToscaRelationshipType; import org.onap.sdc.tosca.datatypes.model.GroupDefinition; import org.onap.sdc.tosca.datatypes.model.NodeTemplate; import org.onap.sdc.tosca.datatypes.model.NodeType; @@ -957,27 +955,6 @@ public class ConsolidationDataTestUtil { nestedTemplateConsolidationData) { Assert.assertNull(nestedTemplateConsolidationData.getGroupIds()); Assert.assertNull(nestedTemplateConsolidationData.getNodesConnectedOut()); - //Assert.assertNull(nestedTemplateConsolidationData.getNodesGetAttrOut()); - } - - private static void validateNestedNodesConnectedInDependency(Map<String, - List<RequirementAssignmentData>> nodesConnectedIn, - String nestedNodeTemplateId, - List<String> dependentNodeTemplateIds) { - Assert.assertNotNull(nodesConnectedIn); - for (String dependentNodeTemplateId : dependentNodeTemplateIds) { - List<RequirementAssignmentData> requirementAssignmentData = - nodesConnectedIn.get(dependentNodeTemplateId); - Assert.assertNotNull(requirementAssignmentData); - for (RequirementAssignmentData data : requirementAssignmentData) { - Assert.assertEquals(data.getRequirementId(), ToscaConstants.DEPENDS_ON_REQUIREMENT_ID); - Assert.assertEquals(data.getRequirementAssignment().getCapability(), ToscaCapabilityType - .NATIVE_NODE); - Assert.assertEquals(data.getRequirementAssignment().getNode(), nestedNodeTemplateId); - Assert.assertEquals(data.getRequirementAssignment().getRelationship(), - ToscaRelationshipType.NATIVE_DEPENDS_ON); - } - } } public static void validateNestedNodesConnectedInSecurityRuleToPort(String testName, |