summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/unifiedComposition/creSubstitutionServiceTemplate/WithOutputParameters/consolidation/out/SubstitutionServiceTemplate.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/unifiedComposition/creSubstitutionServiceTemplate/WithOutputParameters/consolidation/out/SubstitutionServiceTemplate.yaml')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/unifiedComposition/creSubstitutionServiceTemplate/WithOutputParameters/consolidation/out/SubstitutionServiceTemplate.yaml32
1 files changed, 8 insertions, 24 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/unifiedComposition/creSubstitutionServiceTemplate/WithOutputParameters/consolidation/out/SubstitutionServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/unifiedComposition/creSubstitutionServiceTemplate/WithOutputParameters/consolidation/out/SubstitutionServiceTemplate.yaml
index 9ccc191797..6b1c37dd23 100644
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/unifiedComposition/creSubstitutionServiceTemplate/WithOutputParameters/consolidation/out/SubstitutionServiceTemplate.yaml
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/unifiedComposition/creSubstitutionServiceTemplate/WithOutputParameters/consolidation/out/SubstitutionServiceTemplate.yaml
@@ -20,10 +20,8 @@ topology_template:
entry_schema:
type: org.openecomp.datatypes.network.IpRequirements
port_FSB1_Internal_subnetpoolid:
- type: list
+ type: string
required: true
- entry_schema:
- type: string
compute_FSB1_metadata:
type: list
required: true
@@ -35,10 +33,8 @@ topology_template:
entry_schema:
type: org.openecomp.datatypes.network.VlanRequirements
port_FSB2_Internal_order:
- type: list
+ type: integer
required: true
- entry_schema:
- type: integer
port_FSB2_Internal_ip_requirements:
type: list
required: true
@@ -48,33 +44,25 @@ topology_template:
type: string
required: true
port_FSB2_Internal_network_role:
- type: list
+ type: string
required: true
- entry_schema:
- type: string
port_FSB1_Internal_network_role_tag:
- type: list
+ type: string
required: true
- entry_schema:
- type: string
port_FSB1_Internal_vlan_requirements:
type: list
required: true
entry_schema:
type: org.openecomp.datatypes.network.VlanRequirements
port_FSB2_Internal_subnetpoolid:
- type: list
+ type: string
required: true
- entry_schema:
- type: string
port_FSB1_Internal_exCP_naming:
type: org.openecomp.datatypes.Naming
required: true
port_FSB1_Internal_network_role:
- type: list
+ type: string
required: true
- entry_schema:
- type: string
compute_FSB1_availability_zone:
type: list
required: true
@@ -102,10 +90,8 @@ topology_template:
type: org.openecomp.datatypes.Naming
required: true
port_FSB1_Internal_order:
- type: list
+ type: integer
required: true
- entry_schema:
- type: integer
port_FSB2_Internal_network:
type: list
required: true
@@ -120,10 +106,8 @@ topology_template:
entry_schema:
type: string
port_FSB2_Internal_network_role_tag:
- type: list
+ type: string
required: true
- entry_schema:
- type: string
node_templates:
FSB1_FSB1_Internal:
type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
n class="nn">org.junit.Assert.*; public class ForwardingPathDeleteCITest { private Service service; private static final String nodeA = "nodeA"; private static final String nodeB = "nodeB"; private static final String fpName = "fpName"; @Before public void initService() { service = new Service(); ForwardingPathDataDefinition forwardingPath = new ForwardingPathDataDefinition(fpName); String protocol = "protocol"; forwardingPath.setProtocol(protocol); forwardingPath.setDestinationPortNumber("DestinationPortNumber"); ListDataDefinition<ForwardingPathElementDataDefinition> forwardingPathElementListDataDefinition = new ListDataDefinition<>(); forwardingPathElementListDataDefinition.add( new ForwardingPathElementDataDefinition(nodeA, nodeB, "nodeAcpType", "nodeBcpType", "nodeDcpName", "nodeBcpName")); forwardingPathElementListDataDefinition.add( new ForwardingPathElementDataDefinition(nodeB, "nodeC", "nodeBcpType", "nodeCcpType", "nodeDcpName", "nodeBcpName")); forwardingPathElementListDataDefinition.add( new ForwardingPathElementDataDefinition("nodeC", "nodeD", "nodeCcpType", "nodeDcpType", "nodeDcpName", "nodeBcpName")); forwardingPath.setPathElements(forwardingPathElementListDataDefinition); Map<String, ForwardingPathDataDefinition> forwardingPaths = new HashMap<>(); forwardingPaths.put("NEW", forwardingPath); service.setForwardingPaths(forwardingPaths); } @Test public void getListToDelete() { Set<String> forwardingPathNamesToDeleteOnComponenetInstanceDeletion = new ForwardingPathUtils() .findForwardingPathNamesToDeleteOnComponentInstanceDeletion(service, nodeA); assertEquals(1, forwardingPathNamesToDeleteOnComponenetInstanceDeletion.size()); assertTrue(forwardingPathNamesToDeleteOnComponenetInstanceDeletion.contains(fpName)); Set<String> forwardingPathNamesToDeleteOnCIDelete = new ForwardingPathUtils() .findForwardingPathNamesToDeleteOnComponentInstanceDeletion(service, nodeB); assertNotNull(forwardingPathNamesToDeleteOnCIDelete); assertEquals(1, forwardingPathNamesToDeleteOnCIDelete.size()); assertTrue(forwardingPathNamesToDeleteOnComponenetInstanceDeletion.contains(fpName)); forwardingPathNamesToDeleteOnCIDelete = new ForwardingPathUtils() .findForwardingPathNamesToDeleteOnComponentInstanceDeletion(service, "Does not exist"); assertNotNull(forwardingPathNamesToDeleteOnCIDelete); assertEquals(0, forwardingPathNamesToDeleteOnCIDelete.size()); assertFalse(forwardingPathNamesToDeleteOnCIDelete.contains(fpName)); } }