summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in
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/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/MANIFEST.json42
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/main.yml176
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested-pattern-4-same-type.yml66
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested-pattern-4.yml66
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1-no-compute.yml29
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml162
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested2.yml180
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested3.yml34
8 files changed, 755 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/MANIFEST.json
new file mode 100644
index 0000000000..aaea329b69
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/MANIFEST.json
@@ -0,0 +1,42 @@
+{
+ "name": "Port to Network multi nested test",
+ "description": "HOT template to create multi nested of 4 levels",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ },
+ {
+ "file": "nested1-no-compute.yml",
+ "type": "HEAT",
+ "isBase": "false"
+ },
+ {
+ "file": "nested-pattern-4.yml",
+ "type": "HEAT",
+ "isBase": "false"
+ },
+ {
+ "file": "nested-pattern-4-same-type.yml",
+ "type": "HEAT",
+ "isBase": "false"
+ },
+ {
+ "file": "nested1.yml",
+ "type": "HEAT",
+ "isBase": "false"
+ },
+ {
+ "file": "nested2.yml",
+ "type": "HEAT",
+ "isBase": "false"
+ },
+ {
+ "file": "nested3.yml",
+ "type": "HEAT",
+ "isBase": "false"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/main.yml
new file mode 100644
index 0000000000..e138b3d4cd
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/main.yml
@@ -0,0 +1,176 @@
+heat_template_version: 2013-05-23
+
+description: >
+ Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
+
+parameters:
+ jsa_name:
+ type: string
+ description: network name of jsa log network
+ security_group_name:
+ type: string
+ description: security_group_name
+ jsa_net_name:
+ type: string
+ description: network name of jsa network
+ contrail_net_name:
+ type: string
+ description: network name of contrail v2 network
+ pd_server_main_1b_names:
+ type: comma_delimited_list
+ description: PD server names
+ pd_server_main_1b_image:
+ type: string
+ description: PD Image server
+ ps_server_main_1b_names:
+ type: comma_delimited_list
+ description: Ps server names
+ ps_server_main_1b_image:
+ type: string
+ description: Ps Image server
+ availability_zone_0:
+ type: string
+ label: availabilityzone name
+ description: availabilityzone name
+ pd_server_main_1b_flavor:
+ type: string
+ description: Flavor for PD server
+ ps_server_main_1b_flavor:
+ type: string
+ description: Flavor for PS server
+ pd_server_main_1b_ips:
+ type: string
+ ps_server_main_1b_ips:
+ type: string
+ cmaui_1c1_main_names:
+ type: comma_delimited_list
+ description: CMAUI1, CMAUI2 server names
+ cmaui_1c1_main_image:
+ type: string
+ description: Image for CMAUI server
+ cmaui_oam_ips:
+ type: string
+ cmaui_1c1_main_flavor:
+ type: string
+ description: Flavor for CMAUI server
+
+resources:
+ test_nested1Level:
+ type: nested1.yml
+ depends_on:
+ - test_nested_no_compute
+ properties:
+ name: { get_param: security_group_name}
+
+ test_nested1Level_duplicate_same_file:
+ type: nested1.yml
+ depends_on:
+ - test_nested1Level
+ properties:
+ name: { get_param: security_group_name}
+
+ test_nested_no_compute:
+ type: nested1-no-compute.yml
+ depends_on:
+ - server_main_pd_1b
+ properties:
+ name: { get_param: jsa_net_name}
+
+ ########### PATTERN 1B ##################
+
+ pd_server_main_1b_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: jsa_name }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_main_1b_ips, 0]}}]
+ replacement_policy: AUTO
+
+ ps_server_main_1b_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: jsa_name }
+ fixed_ips: [{"ip_address": {get_param: [ps_server_main_1b_ips, 0]}}]
+ replacement_policy: AUTO
+
+ server_main_pd_1b:
+ type: OS::Nova::Server
+ depends_on:
+ - test_nested1Level
+ properties:
+ name: { get_param: [pd_server_main_1b_names, 0]}
+ image: { get_param: pd_server_main_1b_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: pd_server_main_1b_flavor }
+ networks:
+ - port: { get_resource: pd_server_main_1b_port }
+
+ server_main_ps_1b:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ - test_nested_no_compute
+ properties:
+ name: { get_param: [ps_server_main_1b_names, 1]}
+ image: { get_param: ps_server_main_1b_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: ps_server_main_1b_flavor }
+ networks:
+ - port: { get_resource: ps_server_main_1b_port }
+
+ ########### PATTERN 1C1 #################
+
+ cmaui_port_1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: contrail_net_name}
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ replacement_policy: AUTO
+
+ cmaui_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: contrail_net_name}
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ replacement_policy: AUTO
+
+ server_main_1c1_cmaui_1:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ - server_main_ps_1b
+ - test_nested_no_compute
+ properties:
+ name: { get_param: [cmaui_1c1_main_names, 0]}
+ image: { get_param: cmaui_1c1_main_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_1c1_main_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_1 }
+
+ server_main_1c1_cmaui_2:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ - server_main_ps_1b
+ - test_nested_no_compute
+ properties:
+ name: { get_param: [cmaui_1c1_main_names, 1]}
+ image: { get_param: cmaui_1c1_main_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_1c1_main_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_2 }
+
+ ########### PATTERN 4 #################
+
+ test_nested_pattern_4_main_0:
+ type: nested-pattern-4.yml
+ depends_on:
+ - server_main_1c1_cmaui_1
+ - server_main_1c1_cmaui_2
+ - server_main_pd_1b
+ - server_main_ps_1b
+ - test_nested1Level
+ - test_nested_no_compute
+ properties:
+ p1: { get_param: jsa_name} \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested-pattern-4-same-type.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested-pattern-4-same-type.yml
new file mode 100644
index 0000000000..a90a5ca88e
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested-pattern-4-same-type.yml
@@ -0,0 +1,66 @@
+heat_template_version: 2013-05-23
+
+description: nested1
+
+parameters:
+ p1:
+ type: string
+ description: UID of OAM network
+ p2:
+ type: string
+ description: UID of OAM network
+ security_group_name:
+ type: comma_delimited_list
+ description: CMAUI1, CMAUI2 server names
+ pd_server_pattern4_names:
+ type: comma_delimited_list
+ description: PD server names
+ availability_zone_0:
+ type: string
+ label: availabilityzone name
+ description: availabilityzone name
+ pd_server_pattern4_flavor:
+ type: string
+ description: Flavor for PD server
+ pd_server_pattern4_image:
+ type: string
+ description: Flavor for PD server
+ ps_server_flavor:
+ type: string
+ description: Flavor for PS server
+ pd_server_pattern4_ips:
+ type: string
+ net:
+ type: string
+resources:
+
+ pd_server_pattern4_port_1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_pattern4_ips, 0]}}]
+ replacement_policy: AUTO
+
+ pd_server_pattern4_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_pattern4_ips, 1]}}]
+ replacement_policy: AUTO
+
+ server_pd_pattern4:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [pd_server_pattern4_names, 0]}
+ image: { get_param: pd_server_pattern4_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: pd_server_pattern4_flavor }
+ networks:
+ - port: { get_resource: pd_server_pattern4_port_1 }
+ - port: { get_resource: pd_server_pattern4_port_2 }
+
+outputs:
+ pattern4_attr_1:
+ description: pattern4_attr_1_value
+ value: { get_resource: server_pd_pattern4 }
+
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested-pattern-4.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested-pattern-4.yml
new file mode 100644
index 0000000000..a90a5ca88e
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested-pattern-4.yml
@@ -0,0 +1,66 @@
+heat_template_version: 2013-05-23
+
+description: nested1
+
+parameters:
+ p1:
+ type: string
+ description: UID of OAM network
+ p2:
+ type: string
+ description: UID of OAM network
+ security_group_name:
+ type: comma_delimited_list
+ description: CMAUI1, CMAUI2 server names
+ pd_server_pattern4_names:
+ type: comma_delimited_list
+ description: PD server names
+ availability_zone_0:
+ type: string
+ label: availabilityzone name
+ description: availabilityzone name
+ pd_server_pattern4_flavor:
+ type: string
+ description: Flavor for PD server
+ pd_server_pattern4_image:
+ type: string
+ description: Flavor for PD server
+ ps_server_flavor:
+ type: string
+ description: Flavor for PS server
+ pd_server_pattern4_ips:
+ type: string
+ net:
+ type: string
+resources:
+
+ pd_server_pattern4_port_1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_pattern4_ips, 0]}}]
+ replacement_policy: AUTO
+
+ pd_server_pattern4_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_pattern4_ips, 1]}}]
+ replacement_policy: AUTO
+
+ server_pd_pattern4:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [pd_server_pattern4_names, 0]}
+ image: { get_param: pd_server_pattern4_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: pd_server_pattern4_flavor }
+ networks:
+ - port: { get_resource: pd_server_pattern4_port_1 }
+ - port: { get_resource: pd_server_pattern4_port_2 }
+
+outputs:
+ pattern4_attr_1:
+ description: pattern4_attr_1_value
+ value: { get_resource: server_pd_pattern4 }
+
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1-no-compute.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1-no-compute.yml
new file mode 100644
index 0000000000..19e3cde33f
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1-no-compute.yml
@@ -0,0 +1,29 @@
+heat_template_version: 2013-05-23
+
+description: nested1-no-compute
+
+parameters:
+ pd_server_ips:
+ type: string
+ ps_server_ips:
+ type: string
+ net:
+ type: string
+ name:
+ type: string
+ description: nested parameter
+
+resources:
+ pd_server_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_ips, 0]}}]
+ replacement_policy: AUTO
+
+ ps_server_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [ps_server_ips, 0]}}]
+ replacement_policy: AUTO
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml
new file mode 100644
index 0000000000..9b397c6fd7
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml
@@ -0,0 +1,162 @@
+heat_template_version: 2013-05-23
+
+description: >
+ Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
+
+parameters:
+ name:
+ type: string
+ description: nested parameter
+ jsa_name:
+ type: string
+ description: network name of jsa log network
+ security_group_name:
+ type: string
+ description: security_group_name
+ jsa_net_name:
+ type: string
+ description: network name of jsa network
+ contrail_net_name:
+ type: string
+ description: network name of contrail v2 network
+ pd_server_main_1b_names:
+ type: comma_delimited_list
+ description: PD server names
+ pd_server_main_1b_image:
+ type: string
+ description: PD Image server
+ ps_server_main_1b_names:
+ type: comma_delimited_list
+ description: Ps server names
+ ps_server_main_1b_image:
+ type: string
+ description: Ps Image server
+ availability_zone_0:
+ type: string
+ label: availabilityzone name
+ description: availabilityzone name
+ pd_server_main_1b_flavor:
+ type: string
+ description: Flavor for PD server
+ ps_server_main_1b_flavor:
+ type: string
+ description: Flavor for PS server
+ pd_server_main_1b_ips:
+ type: string
+ ps_server_main_1b_ips:
+ type: string
+ cmaui_1c1_main_names:
+ type: comma_delimited_list
+ description: CMAUI1, CMAUI2 server names
+ cmaui_1c1_main_image:
+ type: string
+ description: Image for CMAUI server
+ cmaui_oam_ips:
+ type: string
+ cmaui_1c1_main_flavor:
+ type: string
+ description: Flavor for CMAUI server
+
+resources:
+ test_nested2Level:
+ type: nested2.yml
+ depends_on:
+ - test_nested_pattern_4_main_1
+ properties:
+ name: { get_param: security_group_name}
+
+ ########### PATTERN 1B (same type as main) ##################
+
+ pd_server_main_1b_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: jsa_name }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_main_1b_ips, 0]}}]
+ replacement_policy: AUTO
+
+ ps_server_main_1b_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: jsa_name }
+ fixed_ips: [{"ip_address": {get_param: [ps_server_main_1b_ips, 0]}}]
+ replacement_policy: AUTO
+
+ server_main_pd_1b:
+ type: OS::Nova::Server
+ depends_on:
+ - test_nested2Level
+ properties:
+ name: { get_param: [pd_server_main_1b_names, 0]}
+ image: { get_param: pd_server_main_1b_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: pd_server_main_1b_flavor }
+ networks:
+ - port: { get_resource: pd_server_main_1b_port }
+
+ server_main_ps_1b:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ properties:
+ name: { get_param: [ps_server_main_1b_names, 1]}
+ image: { get_param: ps_server_main_1b_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: ps_server_main_1b_flavor }
+ networks:
+ - port: { get_resource: ps_server_main_1b_port }
+
+ ########### PATTERN 1C1 (same type as main) #################
+
+ cmaui_port_1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: contrail_net_name}
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ replacement_policy: AUTO
+
+ cmaui_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: contrail_net_name}
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ replacement_policy: AUTO
+
+ server_main_1c1_cmaui_1:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ - server_main_ps_1b
+ - test_nested2Level
+ properties:
+ name: { get_param: [cmaui_1c1_main_names, 0]}
+ image: { get_param: cmaui_1c1_main_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_1c1_main_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_1 }
+
+ server_main_1c1_cmaui_2:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ - server_main_ps_1b
+ - test_nested2Level
+ properties:
+ name: { get_param: [cmaui_1c1_main_names, 1]}
+ image: { get_param: cmaui_1c1_main_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_1c1_main_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_2 }
+
+ ########### PATTERN 4 (same type as main) #################
+
+ test_nested_pattern_4_main_1:
+ type: nested-pattern-4.yml
+ depends_on:
+ - server_main_1c1_cmaui_1
+ - server_main_1c1_cmaui_2
+ - server_main_pd_1b
+ - server_main_ps_1b
+ properties:
+ p1: { get_param: jsa_name} \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested2.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested2.yml
new file mode 100644
index 0000000000..930b165ed3
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested2.yml
@@ -0,0 +1,180 @@
+heat_template_version: 2013-05-23
+
+description: >
+ Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
+
+parameters:
+ name:
+ type: string
+ description: nested parameter
+ jsa_name:
+ type: string
+ description: network name of jsa log network
+ security_group_name:
+ type: string
+ description: security_group_name
+ jsa_net_name:
+ type: string
+ description: network name of jsa network
+ contrail_net_name:
+ type: string
+ description: network name of contrail v2 network
+ pd_server_nested2_1b_names:
+ type: comma_delimited_list
+ description: PD server names
+ pd_server_nested2_1b_image:
+ type: string
+ description: PD Image server
+ ps_server_nested2_1b_names:
+ type: comma_delimited_list
+ description: Ps server names
+ ps_server_nested2_1b_image:
+ type: string
+ description: Ps Image server
+ availability_zone_0:
+ type: string
+ label: availabilityzone name
+ description: availabilityzone name
+ pd_server_nested2_1b_flavor:
+ type: string
+ description: Flavor for PD server
+ ps_server_nested2_1b_flavor:
+ type: string
+ description: Flavor for PS server
+ pd_server_nested2_1b_ips:
+ type: string
+ ps_server_nested2_1b_ips:
+ type: string
+ cmaui_1c1_nested2_names:
+ type: comma_delimited_list
+ description: CMAUI1, CMAUI2 server names
+ cmaui_1c1_nested2_image:
+ type: string
+ description: Image for CMAUI server
+ cmaui_oam_ips:
+ type: string
+ cmaui_1c1_nested2_flavor:
+ type: string
+ description: Flavor for CMAUI server
+
+resources:
+ test_nested3Level:
+ type: nested3.yml
+ depends_on:
+ - test_nested_pattern_4_nested2
+ - server_nested2_ps_1b
+ properties:
+ name: { get_param: security_group_name}
+
+ test_resourceGroup:
+ type: OS::Heat::ResourceGroup
+ properties:
+ count: 9
+ resource_def:
+ type: nested3.yml
+ properties:
+ p1: { get_param: name}
+ indx: "%index%"
+
+ ########### PATTERN 1B ##################
+
+ pd_server_nested2_1b_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: jsa_name }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_nested2_1b_ips, 0]}}]
+ replacement_policy: AUTO
+
+ ps_server_nested2_1b_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: jsa_name }
+ fixed_ips: [{"ip_address": {get_param: [ps_server_nested2_1b_ips, 0]}}]
+ replacement_policy: AUTO
+
+ server_nested2_pd_1b:
+ type: OS::Nova::Server
+ depends_on:
+ - test_nested3Level
+ - test_nested_pattern_4_nested2
+ properties:
+ name: { get_param: [pd_server_nested2_1b_names, 0]}
+ image: { get_param: pd_server_nested2_1b_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: pd_server_nested2_1b_flavor }
+ networks:
+ - port: { get_resource: pd_server_nested2_1b_port }
+
+ server_nested2_ps_1b:
+ type: OS::Nova::Server
+ depends_on:
+ - server_nested2_1c1_cmaui_1
+ - server_nested2_1c1_cmaui_2
+ - test_nested_pattern_4_nested2
+ properties:
+ name: { get_param: [ps_server_nested2_1b_names, 1]}
+ image: { get_param: ps_server_nested2_1b_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: ps_server_nested2_1b_flavor }
+ networks:
+ - port: { get_resource: ps_server_nested2_1b_port }
+
+ ########### PATTERN 1C1 #################
+
+ cmaui_port_1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: contrail_net_name}
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ replacement_policy: AUTO
+
+ cmaui_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: contrail_net_name}
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ replacement_policy: AUTO
+
+ server_nested2_1c1_cmaui_1:
+ type: OS::Nova::Server
+ depends_on:
+ - server_nested2_pd_1b
+ - server_nested2_ps_1b
+ - test_nested_pattern_4_nested2
+ - test_nested3Level
+ properties:
+ name: { get_param: [cmaui_1c1_nested2_names, 0]}
+ image: { get_param: cmaui_1c1_nested2_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_1c1_nested2_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_1 }
+
+ server_nested2_1c1_cmaui_2:
+ type: OS::Nova::Server
+ depends_on:
+ - server_nested2_pd_1b
+ - server_nested2_ps_1b
+ - test_nested_pattern_4_nested2
+ - test_nested3Level
+ properties:
+ name: { get_param: [cmaui_1c1_nested2_names, 1]}
+ image: { get_param: cmaui_1c1_nested2_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_1c1_nested2_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_2 }
+
+ ########### PATTERN 4 #################
+
+ test_nested_pattern_4_same_type_diff_file:
+ type: nested-pattern-4-same-type.yml
+ properties:
+ p1: { get_param: jsa_name}
+
+ test_nested_pattern_4_nested2:
+ type: nested-pattern-4.yml
+ depends_on:
+ - test_resourceGroup
+ properties:
+ p1: { get_param: jsa_name} \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested3.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested3.yml
new file mode 100644
index 0000000000..1d4f9d1055
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested3.yml
@@ -0,0 +1,34 @@
+heat_template_version: 2013-05-23
+
+description: >
+ Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
+
+parameters:
+ security_group_name:
+ type: string
+ description: security_group_name
+ name:
+ type: string
+ description: nested parameter
+ p1:
+ type: string
+ description: nested parameter
+ indx:
+ type: string
+ description: nested parameter
+resources:
+ jsa_security_group1:
+ type: OS::Neutron::SecurityGroup
+ properties:
+ description: ems security group
+ name: {get_param: security_group_name}
+ rules: [
+ {"direction": ingress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"}
+ ]
+
+ jsa_security_group2:
+ type: OS::Neutron::SecurityGroup
+ properties:
+ description: ems security group
+ name: {get_param: security_group_name}
+ rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}]