diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in')
4 files changed, 586 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/MANIFEST.json new file mode 100644 index 0000000000..655e7f89dc --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/MANIFEST.json @@ -0,0 +1,19 @@ +{ + "name": "hot-mog", + "description": "HOT template to create hot mog server", + "version": "2013-05-23", + "data": [ + { + "file": "hot-mog-0108-bs1271.yml", + "type": "HEAT" + }, + { + "file": "nested-pcm_v0.1.yaml", + "type": "HEAT" + }, + { + "file": "nested-no_vfc_v0.1.yaml", + "type": "HEAT" + } + ] +} diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/hot-mog-0108-bs1271.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/hot-mog-0108-bs1271.yml new file mode 100644 index 0000000000..64c7ca7584 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/hot-mog-0108-bs1271.yml @@ -0,0 +1,334 @@ +heat_template_version: 2013-05-23 + +description: heat template that creates MOG stack + +parameters: + pd_server_names: + type: comma_delimited_list + label: PD server names + description: name of the PD instance + pd_image_name: + type: string + label: image name + description: PD image name + pd_flavor_name: + type: string + label: PD flavor name + description: flavor name of PD instance + availabilityzone_name: + type: string + label: availabilityzone name + description: availabilityzone name + a_single_1a_names: + type: string + oam_net_name: + type: string + ppds_net_name: + type: string + b_single_1b_names: + type: string + 1c1_scalling_instance_names: + type: string + myIPs: + type: string + 1c2_catalog_instance_names: + type: string + pcm_server_names: + type: string + pcm_image_name: + type: string + pcm_flavor_name: + type: string + net_name: + type: string + security_group_name: + type: string +resources: + 1a_single_1A: + type: OS::Nova::Server + properties: + name: {get_param: [a_single_1a_names, 0]} + image: {get_param: pd_image_name} + flavor: {get_param: pd_flavor_name} + availability_zone: {get_param: availabilityzone_name} + networks: + - port: {get_resource: 1a_t1_port_0} + - port: {get_resource: 1a_t2_port_0} + user_data_format: RAW + scheduler_hints: { group: { get_resource: BE_Affinity } } + + 1a_t1_port_0: + type: OS::Neutron::Port + properties: + network: {get_resource: a_single_1a_network} + 1a_t2_port_0: + type: OS::Neutron::Port + properties: + network: {get_param: ppds_net_name} + + a_single_1a_network: + type: OS::Neutron::Net + properties: + name: + get_param: net_name + + + 1b01_single_1B: + type: OS::Nova::Server + properties: + name: {get_param: [b_single_1b_names, 0]} + image: {get_param: pd_image_name} + flavor: {get_param: pd_flavor_name} + availability_zone: {get_param: availabilityzone_name} + networks: + - port: {get_resource: 1b_t1_port_0} + - port: {get_resource: 1b_t2_port_0} + user_data_format: RAW + scheduler_hints: { group: { get_resource: BE_Affinity } } + + 1b_t1_port_0: + type: OS::Neutron::Port + properties: + network: {get_attr: [1b01_single_1B, accessIPv6]} + + 1b_t2_port_0: + type: OS::Neutron::Port + properties: + network: {get_resource: b_single_1b_network} + + b_single_1b_network: + type: OS::Neutron::Net + properties: + name: + get_param: net_name + + 1b02_single_1B: + type: OS::Nova::Server + properties: + name: {get_param: [b_single_1b_names, 1]} + image: {get_param: pd_image_name} + flavor: {get_param: pd_flavor_name} + availability_zone: {get_param: availabilityzone_name} + networks: + - port: {get_resource: 1b_t1_port_1} + - port: {get_resource: 1b_t2_port_1} + user_data_format: RAW + scheduler_hints: { group: { get_resource: BE_Affinity } } + + 1b_t1_port_1: + type: OS::Neutron::Port + properties: + network: {get_param: oam_net_name} + + 1b_t2_port_1: + type: OS::Neutron::Port + properties: + network: {get_resource: b_single_1b_network} + + 1c101_scalling_instance_1C1: + type: OS::Nova::Server + properties: + name: {get_param: [1c1_scalling_instance_names, 1]} + image: {get_param: pd_image_name} + flavor: {get_param: pd_flavor_name} + availability_zone: {get_param: availabilityzone_name} + networks: + - port: {get_resource: 1c1_t1_port_0} + - port: {get_resource: 1c1_t2_port_0} + user_data_format: RAW1 + scheduler_hints: { group: { get_resource: BE_Affinity } } + + 1c1_t1_port_0: + type: OS::Neutron::Port + properties: + network: {get_resource: 1c1_scalling_instance_network} + fixed_ips: [{"ip_address": {get_param: [myIPs, 1]}}] + name: 1c1_t1_port_0 + 1c1_t2_port_0: + type: OS::Neutron::Port + properties: + network: {get_param: ppds_net_name} + fixed_ips: [{"ip_address": {get_param: [myIPs, 2]}}] + name: 1c1_t2_port_0 + + 1c1_scalling_instance_network: + type: OS::Neutron::Net + properties: + name: + get_param: net_name + + 1c102_scalling_instance_1C1: + type: OS::Nova::Server + properties: + name: {get_param: [1c1_scalling_instance_names, 2]} + image: {get_param: pd_image_name} + flavor: {get_param: pd_flavor_name} + availability_zone: {get_param: availabilityzone_name} + networks: + - port: {get_resource: 1c1_t1_port_1} + - port: {get_resource: 1c1_t2_port_1} + user_data_format: RAW2 + scheduler_hints: { group: { get_resource: BE_Affinity } } + + 1c1_t1_port_1: + type: OS::Neutron::Port + properties: + network: {get_resource: 1c1_scalling_instance_network} + fixed_ips: [{"ip_address": {get_param: [myIPs, 3]}}] + name: 1c1_t1_port_1 + + 1c1_t2_port_1: + type: OS::Neutron::Port + properties: + network: {get_param: ppds_net_name} + fixed_ips: [{"ip_address": {get_param: [myIPs, 4]}}] + name: 1c1_t2_port_1 + + 1c201_catalog_instance_1C2: + type: OS::Nova::Server + properties: + name: {get_param: [1c2_catalog_instance_names, 1]} + image: {get_param: pd_image_name} + flavor: {get_param: pd_flavor_name} + availability_zone: {get_param: availabilityzone_name} + networks: + - port: {get_resource: 1c2_t1_port_0} + - port: {get_resource: 1c2_t2_port_0} + user_data_format: RAW1 + scheduler_hints: { group: { get_resource: BE_Affinity } } + + 1c2_t1_port_0: + type: OS::Neutron::Port + properties: + network: {get_param: oam_net_name} + 1c2_t2_port_0: + type: OS::Neutron::Port + properties: + network: {get_resource: 1c2_catalog_instance_network} + + 1c2_catalog_instance_network: + type: OS::Neutron::Net + properties: + name: + get_param: net_name + + 1c202_scalling_instance_1C2: + type: OS::Nova::Server + properties: + name: {get_param: [1c2_catalog_instance_names, 2]} + image: {get_param: pd_image_name} + flavor: {get_param: pd_flavor_name} + availability_zone: {get_param: availabilityzone_name} + networks: + - port: {get_resource: 1c2_t1_port_1} + - port: {get_resource: 1c2_t2_port_1} + user_data_format: {get_attr: [1c201_catalog_instance_1C2, instance_name]} + scheduler_hints: { group: { get_resource: BE_Affinity } } + + 1c2_t1_port_1: + type: OS::Neutron::Port + properties: + network: {get_param: oam_net_name} + 1c2_t2_port_1: + type: OS::Neutron::Port + properties: + network: {get_resource: 1c2_catalog_instance_network} + + 4p_nested: + type: nested-pcm_v0.1.yaml + properties: + pcm_server_name: { get_param: [pcm_server_names, 0] } + pcm_image_name: { get_param: pcm_image_name } + pcm_flavor_name: { get_param: pcm_flavor_name } + cps_net_name: { get_resource: nested_network} + security_group_name: { get_resource: jsa_security_group} + server_group: { get_resource: BE_Affinity } + + nested_network: + type: OS::Neutron::Net + properties: + name: + get_param: net_name + + nestedNoUnified: + type: nested-no_vfc_v0.1.yaml + properties: + pcm_server_name: { get_param: [pcm_server_names, 0] } + pcm_image_name: { get_param: pcm_image_name } + pcm_flavor_name: { get_param: pcm_flavor_name } + cps_net_name: { get_resource: nested_network} + security_group_name: { get_resource: jsa_security_group} + server_group: { get_resource: BE_Affinity } + + jsa_security_group: + 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}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": "::/0"}, + {"direction": egress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": "::/0"}, + {"direction": egress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": "::/0"}, + {"direction": ingress, "ethertype": IPv6, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": "::/0"}, + {"direction": ingress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"} + ] + + dependsOn_network: + type: OS::Neutron::Net + depends_on: + - nestedNoUnified + - 4p_nested + - 1c2_t1_port_1 + - 1c2_t1_port_0 + - 1c201_catalog_instance_1C2 + - 1c202_scalling_instance_1C2 + - 1c101_scalling_instance_1C1 + - 1c102_scalling_instance_1C1 + - 1c1_t2_port_0 + - 1c1_t2_port_1 + - 1b01_single_1B + - 1b02_single_1B + - 1b_t1_port_0 + - 1b_t1_port_1 + - 1a_single_1A + - 1a_t1_port_0 + properties: + name: + get_param: net_name + + nodeGetAttIn_network: + type: OS::Neutron::Net + properties: + name: { get_attr: [nestedNoUnified, portId, {get_attr: [4p_nested, server_pcm_id]}]} + dhcp_agent_ids: { get_attr: [1c2_t1_port_1, tenant_id, {get_attr: [1c2_t1_port_0, tenant_id, {get_attr: [1c201_catalog_instance_1C2, instance_name, {get_attr: [1c202_scalling_instance_1C2,instance_name]}]}]}]} + tenant_id: { get_attr:[1c101_scalling_instance_1C1, instance_name, {get_attr:[1c102_scalling_instance_1C1, instance_name, {get_attr:[1c1_t2_port_0, tenant_id, {get_attr:[1c1_t2_port_1, tenant_id]}]}]}]} + value_specs: {get_attr:[1b01_single_1B, instance_name, get_attr:[1b02_single_1B,instance_name, {get_attr:[1b_t1_port_0, tenant_id, {get_attr:[1b_t1_port_1, tenant_id]}]}]] } + qos_policy: {get_attr:[1a_single_1A, instance_name]} + admin_state_up: {get_attr:[1a_t1_port_0, tenant_id]} + + BE_Affinity: + type: OS::Nova::ServerGroup + properties: + policies: ["affinity"] + name: def + +outputs: + out1: + value: { get_attr: [nestedNoUnified, portId, {get_attr: [4p_nested, server_pcm_id]}]} + out2: + value: { get_attr: [1c2_t1_port_1, tenant_id, {get_attr: [1c2_t1_port_0, tenant_id, {get_attr: [1c201_catalog_instance_1C2, instance_name, {get_attr: [1c202_scalling_instance_1C2,instance_name]}]}]}]} + out3: + value: { get_attr:[1c101_scalling_instance_1C1, instance_name, {get_attr:[1c102_scalling_instance_1C1, instance_name, {get_attr:[1c1_t2_port_0, tenant_id, {get_attr:[1c1_t2_port_1, tenant_id]}]}]}]} + out4: + value: {get_attr:[1b01_single_1B, instance_name, get_attr:[1b02_single_1B,instance_name, {get_attr:[1b_t1_port_0, tenant_id, {get_attr:[1b_t1_port_1, tenant_id]}]}]] } + out5: + value: {get_attr:[1a_single_1A, instance_name]} + out6: + value: {get_attr:[1a_t1_port_0, tenant_id]} + diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/nested-no_vfc_v0.1.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/nested-no_vfc_v0.1.yaml new file mode 100644 index 0000000000..2548875c75 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/nested-no_vfc_v0.1.yaml @@ -0,0 +1,135 @@ +heat_template_version: 2013-05-23 + +description: heat template that creates PCRF Cluman stack + +parameters: + pcm_server_name: + type: string + label: PCRF CM server name + description: PCRF CM server name + pcm_image_name: + type: string + label: image name + description: PCRF CM image name + pcm_flavor_name: + type: string + label: PCRF CM flavor name + description: flavor name of PCRF CM instance + availabilityzone_name: + type: string + label: availabilityzone name + description: availabilityzone name + cps_net_name: + type: string + label: CPS network name + description: CPS network name + cps_net_ip: + type: string + label: CPS network ip + description: CPS network ip + cps_net_mask: + type: string + label: CPS network mask + description: CPS network mask + oam_net_name: + type: string + label: OAM network name + description: OAM network name + oam_net_ip: + type: string + label: OAM network ip + description: OAM network ip + oam_net_gw: + type: string + label: CPS network gateway + description: CPS network gateway + oam_net_mask: + type: string + label: CPS network mask + description: CPS network mask + pcm_vol: + type: string + label: CPS Cluman Cinder Volume + description: CPS Cluman Cinder Volume + security_group_name: + type: string + label: security group name + description: the name of security group + pcma_server_name: + type: string + pcma_image_name: + type: string + pcma_flavor_name: + type: string + server_group: + type: string + +resources: + server_pcma1: + type: OS::Nova::Server + properties: + config_drive: "True" + name: { get_param: pcma_server_name } + image: { get_param: pcma_image_name } + flavor: { get_param: pcma_flavor_name } + availability_zone: { get_param: availabilityzone_name } + networks: + - port: { get_resource: pcm_port_0} + - port: { get_resource: pcm_port_1} + block_device_mapping: + - device_name: vdb + volume_id: { get_param: pcm_vol} + user_data_format: RAW + + server_pcma2: + type: OS::Nova::Server + properties: + config_drive: "True" + name: { get_param: pcma_server_name } + image: { get_param: pcma_image_name } + flavor: { get_param: pcma_flavor_name } + availability_zone: { get_param: availabilityzone_name } + networks: + - port: { get_resource: pcm_port_2} + - port: { get_resource: pcm_port_3} + block_device_mapping: + - device_name: vdb + volume_id: { get_param: pcm_vol} + user_data_format: RAW + scheduler_hints: { group: { get_param: server_group } } + + pcm_port_0: + type: OS::Neutron::Port + properties: + network: { get_param: cps_net_name } + fixed_ips: + - ip_address: { get_param: cps_net_ip } + security_groups: [{ get_param: security_group_name }] + + pcm_port_1: + type: OS::Neutron::Port + properties: + network: { get_param: oam_net_name } + fixed_ips: + - ip_address: { get_param: oam_net_ip } + security_groups: [{ get_param: security_group_name }] + + pcm_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: cps_net_name } + fixed_ips: + - ip_address: { get_param: cps_net_ip } + security_groups: [{ get_param: security_group_name }] + + pcm_port_3: + type: OS::Neutron::Port + properties: + network: { get_param: oam_net_name } + fixed_ips: + - ip_address: { get_param: oam_net_ip } + security_groups: [{ get_param: security_group_name }] + +outputs: + portId: + value: { get_resource: pcm_port_3 }
\ 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/mixPatterns/oneAppearancePerPattern/in/nested-pcm_v0.1.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/nested-pcm_v0.1.yaml new file mode 100644 index 0000000000..b2695460d0 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/oneAppearancePerPattern/in/nested-pcm_v0.1.yaml @@ -0,0 +1,98 @@ +heat_template_version: 2013-05-23 + +description: heat template that creates PCRF Cluman stack + +parameters: + pcm_server_name: + type: string + label: PCRF CM server name + description: PCRF CM server name + pcm_image_name: + type: string + label: image name + description: PCRF CM image name + pcm_flavor_name: + type: string + label: PCRF CM flavor name + description: flavor name of PCRF CM instance + availabilityzone_name: + type: string + label: availabilityzone name + description: availabilityzone name + cps_net_name: + type: string + label: CPS network name + description: CPS network name + cps_net_ip: + type: string + label: CPS network ip + description: CPS network ip + cps_net_mask: + type: string + label: CPS network mask + description: CPS network mask + oam_net_name: + type: string + label: OAM network name + description: OAM network name + oam_net_ip: + type: string + label: OAM network ip + description: OAM network ip + oam_net_gw: + type: string + label: CPS network gateway + description: CPS network gateway + oam_net_mask: + type: string + label: CPS network mask + description: CPS network mask + pcm_vol: + type: string + label: CPS Cluman Cinder Volume + description: CPS Cluman Cinder Volume + security_group_name: + type: string + label: security group name + description: the name of security group + server_group: + type: string + +resources: + server_pcm: + type: OS::Nova::Server + properties: + config_drive: "True" + name: { get_param: pcm_server_name } + image: { get_param: pcm_image_name } + flavor: { get_param: pcm_flavor_name } + availability_zone: { get_param: availabilityzone_name } + networks: + - port: { get_resource: pcm_port_0} + - port: { get_resource: pcm_port_1} + block_device_mapping: + - device_name: vdb + volume_id: { get_param: pcm_vol} + user_data_format: RAW + scheduler_hints: { group: { get_param: server_group } } + + pcm_port_0: + type: OS::Neutron::Port + properties: + network: { get_param: cps_net_name } + fixed_ips: + - ip_address: { get_param: cps_net_ip } + security_groups: [{ get_param: security_group_name }] + + pcm_port_1: + type: OS::Neutron::Port + properties: + network: { get_param: oam_net_name } + fixed_ips: + - ip_address: { get_param: oam_net_ip } + security_groups: [{ get_param: security_group_name }] + +outputs: + server_pcm_id: + description: the pcm nova service id + value: { get_resource: server_pcm }
\ No newline at end of file |