From b8e2faf476202b6ffe61bc3a9a37df1304881d40 Mon Sep 17 00:00:00 2001 From: Avi Ziv Date: Tue, 18 Jul 2017 19:45:38 +0300 Subject: [SDC] Onboarding 1710 rebase. Change-Id: If3b6b81d221fde13908f1e8160db6f7d9433c535 Signed-off-by: Avi Ziv --- .../nestedAllPatternsConnectivity/in/MANIFEST.json | 28 ++++ .../nestedAllPatternsConnectivity/in/main.yml | 47 ++++++ .../in/nested-no-compute.yml | 67 ++++++++ .../in/nested-pattern-4.yml | 66 ++++++++ .../nestedAllPatternsConnectivity/in/nested1.yml | 186 +++++++++++++++++++++ 5 files changed, 394 insertions(+) create mode 100644 openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/MANIFEST.json create mode 100644 openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/main.yml create mode 100644 openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/nested-no-compute.yml create mode 100644 openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/nested-pattern-4.yml create mode 100644 openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/nested1.yml (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in') diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/MANIFEST.json new file mode 100644 index 0000000000..7e4cb83eb2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/MANIFEST.json @@ -0,0 +1,28 @@ +{ + "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": "nested1.yml", + "type": "HEAT", + "isBase": "false" + }, + { + "file": "nested-no-compute.yml", + "type": "HEAT", + "isBase": "false" + }, + { + "file": "nested-pattern-4.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/nestedAllPatternsConnectivity/in/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/main.yml new file mode 100644 index 0000000000..806280afd4 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/main.yml @@ -0,0 +1,47 @@ +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 + +resources: + test_nested_all_patterns: + type: nested1.yml + #depends_on: + # - test_nested_no_compute + # - test_nested_pattern_4 + properties: + p1: {get_attr: [test_nested_pattern_4, pattern4_attr_1]} + p2: {get_attr: [test_nested_no_compute, no_compute_attr_1]} + + test_nested_pattern_4: + type: nested-pattern-4.yml + depends_on: + - test_nested_all_patterns + #- test_nested_no_compute + properties: + #p1: {get_attr: [test_nested_pattern_4, all_pattern_attr_1]} + p2: {get_attr: [test_nested_no_compute, no_compute_attr_1]} + + test_nested_no_compute: + type: nested-no-compute.yml + depends_on: + - test_nested_all_patterns + - test_nested_pattern_4 + properties: + p1: {get_attr: [test_nested_pattern_4, pattern4_attr_1]} + #p2: {get_attr: [test_nested_no_compute, all_pattern_attr_1]} + + dependsOn_network: + type: OS::Neutron::Net + depends_on: + - test_nested_all_patterns + - test_nested_no_compute + - test_nested_pattern_4 + properties: + name: + 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/oneLevel/nestedAllPatternsConnectivity/in/nested-no-compute.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/nested-no-compute.yml new file mode 100644 index 0000000000..5e0627f053 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/nested-no-compute.yml @@ -0,0 +1,67 @@ +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 + cmaui_names: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + cmaui_image: + type: string + description: Image for CMAUI server + availability_zone_0: + type: string + label: availabilityzone name + description: availabilityzone name + cmaui_flavor: + type: string + description: Flavor for CMAUI server + cmaui_oam_ips: + type: string + packet_internal_network_name: + type: string + packet_external_network_name: + type: string + net: + type: string + +resources: + cmaui_port_1: + type: OS::Neutron::Port + properties: + network: {get_resource: packet_internal_network} + fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}] + replacement_policy: AUTO + + cmaui_port_2: + type: OS::Neutron::Port + properties: + network: {get_resource: packet_external_network} + fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}] + replacement_policy: AUTO + + packet_internal_network: + type: OS::Neutron::Net + properties: + name: + get_param: packet_internal_network_name + + packet_external_network: + type: OS::Neutron::Net + properties: + name: + get_param: packet_external_network_name + +outputs: + no_compute_attr_1: + description: no_compute_attr_1 + value: { get_resource: packet_external_network } \ 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/nestedAllPatternsConnectivity/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/oneLevel/nestedAllPatternsConnectivity/in/nested-pattern-4.yml new file mode 100644 index 0000000000..bbaa6a2636 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/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_names: + type: comma_delimited_list + description: PD server names + availability_zone_0: + type: string + label: availabilityzone name + description: availabilityzone name + pd_server_flavor: + type: string + description: Flavor for PD server + pd_server_image: + type: string + description: Flavor for PD server + ps_server_flavor: + type: string + description: Flavor for PS server + pd_server_ips: + type: string + net: + type: string +resources: + + pd_server_port_1: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [pd_server_ips, 0]}}] + replacement_policy: AUTO + + pd_server_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [pd_server_ips, 1]}}] + 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_1 } + - port: { get_resource: pd_server_port_2 } + +outputs: + pattern4_attr_1: + description: pattern4_attr_1_value + value: { get_resource: server_pd } + diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/nested1.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/nested1.yml new file mode 100644 index 0000000000..625831f052 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/oneLevel/nestedAllPatternsConnectivity/in/nested1.yml @@ -0,0 +1,186 @@ +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 + cmaui_1c1_names: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + cmaui_1c1_image: + type: string + description: Image for CMAUI server + availability_zone_0: + type: string + label: availabilityzone name + description: availabilityzone name + cmaui_1c1_flavor: + type: string + description: Flavor for CMAUI server + oam_server_1c2_names: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + oam_server_1c2_image: + type: string + description: Image for CMAUI server + oam_server_1c2_flavor: + type: string + description: Flavor for CMAUI server + cmaui_oam_ips: + type: string + packet_internal_network_name: + type: string + packet_external_network_name: + type: string + net: + type: string + pd_server_1b_names: + type: comma_delimited_list + description: PD server names + pd_server_1b_image: + type: string + description: PD Image server + ps_server_1b_names: + type: comma_delimited_list + description: Ps server names + ps_server_1b_image: + type: string + description: Ps Image server + pd_server_1b_flavor: + type: string + description: Flavor for PD server + ps_server_1b_flavor: + type: string + description: Flavor for PS server + pd_server_1b_ips: + type: string + ps_server_1b_ips: + type: string + +resources: + pd_server_1b_port: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [pd_server_1b_ips, 0]}}] + replacement_policy: AUTO + + ps_server_1b_port: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [ps_server_1b_ips, 0]}}] + replacement_policy: AUTO + + server_1b_pd: + type: OS::Nova::Server + properties: + name: { get_param: [pd_server_1b_names, 0]} + image: { get_param: pd_server_1b_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: pd_server_1b_flavor } + networks: + - port: { get_resource: pd_server_1b_port } + + server_1b_ps: + type: OS::Nova::Server + properties: + name: { get_param: [ps_server_1b_names, 1]} + image: { get_param: ps_server_1b_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: ps_server_1b_flavor } + networks: + - port: { get_resource: ps_server_1b_port } + + cmaui_port_1: + type: OS::Neutron::Port + properties: + network: {get_resource: packet_internal_network} + fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}] + replacement_policy: AUTO + + cmaui_port_2: + type: OS::Neutron::Port + properties: + network: {get_resource: packet_internal_network} + fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}] + replacement_policy: AUTO + + server_1c1_cmaui_1: + type: OS::Nova::Server + properties: + name: { get_param: [cmaui_1c1_names, 0]} + image: { get_param: cmaui_1c1_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: cmaui_1c1_flavor } + networks: + - port: { get_resource: cmaui_port_1 } + + server_1c1_cmaui_2: + type: OS::Nova::Server + properties: + name: { get_param: [cmaui_1c1_names, 1]} + image: { get_param: cmaui_1c1_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: cmaui_1c1_flavor } + networks: + - port: { get_resource: cmaui_port_2 } + + oam_port_1: + type: OS::Neutron::Port + properties: + network: {get_resource: packet_internal_network} + fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 1]}}] + replacement_policy: AUTO + + oam_port_2: + type: OS::Neutron::Port + properties: + network: {get_resource: packet_external_network} + fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 1]}}] + replacement_policy: AUTO + + server_1c2_oam_1: + type: OS::Nova::Server + properties: + name: { get_param: [oam_server_1c2_names, 0]} + image: { get_param: oam_server_1c2_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: oam_server_1c2_flavor } + networks: + - port: { get_resource: oam_port_1 } + + server_1c2_oam_2: + type: OS::Nova::Server + properties: + name: { get_param: [oam_server_1c2_names, 1]} + image: { get_param: oam_server_1c2_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: oam_server_1c2_flavor } + networks: + - port: { get_resource: oam_port_2 } + + packet_internal_network: + type: OS::Neutron::Net + properties: + name: + get_param: packet_internal_network_name + + packet_external_network: + type: OS::Neutron::Net + properties: + name: + get_param: packet_external_network_name + +outputs: + all_pattern_attr_1: + description: all_pattern_attr_1 + value: { get_attr: [server_1c2_oam_2, accessIPv4] } \ No newline at end of file -- cgit 1.2.3-korg