diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in')
4 files changed, 225 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/oneLevel/nestedTwoSameFileOneDiff/in/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/MANIFEST.json new file mode 100644 index 0000000000..1a7abacf3f --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/MANIFEST.json @@ -0,0 +1,22 @@ +{ + "name": "Nested test", + "description": "HOT template to create nested one level multiple compute", + "version": "2013-05-23", + "data": [ + { + "file": "main.yml", + "type": "HEAT", + "isBase": "true" + }, + { + "file": "nested-same-file-1B.yml", + "type": "HEAT", + "isBase": "false" + }, + { + "file": "nested-other-file-1B.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/oneLevel/nestedTwoSameFileOneDiff/in/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/main.yml new file mode 100644 index 0000000000..d4e91509ea --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/main.yml @@ -0,0 +1,38 @@ +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 + same_file_param_1: + type: string + description: network name of jsa log network + same_file_param_2: + type: string + description: network name of jsa log network + same_file_param_3: + type: string + description: network name of jsa log network + diff_file_param_1: + type: string + description: network name of jsa log network + +resources: + test_nested_same_file_1: + type: nested-same-file-1B.yml + properties: + p1: {get_param: same_file_param_1} + p2: {get_param: same_file_param_2} + + test_nested_same_file_2: + type: nested-same-file-1B.yml + properties: + p2: {get_param: same_file_param_3} + + test_nested_diff_file: + type: nested-other-file-1B.yml + properties: + p1: {get_param: diff_file_param_1} diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/nested-other-file-1B.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/nested-other-file-1B.yml new file mode 100644 index 0000000000..4990282318 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/nested-other-file-1B.yml @@ -0,0 +1,82 @@ +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_names: + type: comma_delimited_list + description: PD server names + pd_server_image: + type: string + description: PD Image server + ps_server_names: + type: comma_delimited_list + description: Ps server names + ps_server_image: + type: string + description: Ps Image server + availability_zone_0: + type: string + label: availabilityzone name + description: availabilityzone name + pd_server_flavor: + type: string + description: Flavor for PD server + ps_server_flavor: + type: string + description: Flavor for PS server + pd_server_ips: + type: string + ps_server_ips: + type: string + net: + type: string +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 + + server_pd: + type: OS::Nova::Server + properties: + name: { get_param: [pd_server_names, 0]} + image: { get_param: pd_server_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: pd_server_flavor } + networks: + - port: { get_resource: pd_server_port } + + server_ps: + type: OS::Nova::Server + properties: + name: { get_param: [ps_server_names, 1]} + image: { get_param: ps_server_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: ps_server_flavor } + networks: + - port: { get_resource: ps_server_port } + +outputs: + nested_same_file_attr_1: + description: nested_same_file_attr_1 + value: { get_resource: server_pd }
\ 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/oneLevel/nestedTwoSameFileOneDiff/in/nested-same-file-1B.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/nested-same-file-1B.yml new file mode 100644 index 0000000000..50b03d7a63 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedTwoSameFileOneDiff/in/nested-same-file-1B.yml @@ -0,0 +1,83 @@ +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 + sm_server_names: + type: comma_delimited_list + description: SM server names + sm_server_image: + type: string + description: SM Image server + oam_server_names: + type: comma_delimited_list + description: OAM server names + oam_server_image: + type: string + description: OAM Image server + availability_zone_0: + type: string + label: availabilityzone name + description: availabilityzone name + sm_server_flavor: + type: string + description: Flavor for SM server + oam_server_flavor: + type: string + description: Flavor for OAM server + sm_server_ips: + type: string + oam_server_ips: + type: string + net: + type: string +resources: + + sm_server_port: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [sm_server_ips, 0]}}] + replacement_policy: AUTO + + oam_server_port: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [oam_server_ips, 0]}}] + replacement_policy: AUTO + + server_sm: + type: OS::Nova::Server + properties: + name: { get_param: [sm_server_names, 0]} + image: { get_param: sm_server_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: sm_server_flavor } + networks: + - port: { get_resource: sm_server_port } + + server_oam: + type: OS::Nova::Server + properties: + name: { get_param: [oam_server_names, 1]} + image: { get_param: oam_server_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: oam_server_flavor } + networks: + - port: { get_resource: oam_server_port } + +outputs: + nested_diff_file_attr_1: + description: nested_diff_file_attr_1_value + value: { get_resource: server_sm } + |