diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr')
26 files changed, 4814 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/expectedoutputfiles/MainServiceTemplate.yaml new file mode 100644 index 0000000000..5d5f46e5fe --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/expectedoutputfiles/MainServiceTemplate.yaml @@ -0,0 +1,349 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: Main +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +node_types: + org.openecomp.resource.vfc.nodes.heat.FSB1: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + Internal2_name: + label: Internal2_name + hidden: false + immutable: false + type: string + description: Internal2_name + FSB1_volume_name: + label: FSB1_volume + hidden: false + immutable: false + type: string + description: FSB1_volume_1 + jsa_cidr: + label: jsa_cidr + hidden: false + immutable: false + type: string + description: jsa_cidr + availabilityzone_name: + label: availabilityzone_name + hidden: false + immutable: false + type: string + description: availabilityzone_name + Internal2_external: + label: Internal2_external + hidden: false + immutable: false + type: string + description: Internal2_external + vipr_atm_name_0: + hidden: false + immutable: false + type: string + description: prop + Internal2_forwarding_mode: + label: Internal2_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal2_forwarding_mode + pcrf_vnf_id: + hidden: false + immutable: false + type: string + description: prop + FSB_1_image: + label: MME_FSB1 + hidden: false + immutable: false + type: string + description: MME_FSB1_15B-CP04-r5a01 + fsb1-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + pcm_server_name: + label: pcm_server_name + hidden: false + immutable: false + type: string + description: pcm_server_name + oam_net_name: + label: oam_net_name + hidden: false + immutable: false + type: string + description: oam_net_name + fsb1-Internal2-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + fsb_zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + oam_net_gw: + hidden: false + immutable: false + type: string + description: prop + VMME_FSB1_boot_volume: + hidden: false + immutable: false + type: string + network_name: + hidden: false + immutable: false + type: string + description: prop + cps_net_ip: + hidden: false + immutable: false + type: string + description: prop + pcrf_psm_server_name: + label: pcrf_psm_server_name + hidden: false + immutable: false + type: string + description: pcrf_psm_server_name + pcm_flavor_name: + label: pcm_flavor_name + hidden: false + immutable: false + type: string + description: pcm_flavor_name + pcrf_cps_net_ip: + hidden: false + immutable: false + type: string + description: prop + fsb2-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + pcrf_cps_net_name: + label: pcrf_cps_net_name + hidden: false + immutable: false + type: string + description: pcrf_cps_net_name + pcm_vol: + hidden: false + immutable: false + type: string + description: prop + Internal1_external: + label: Internal1_external + hidden: false + immutable: false + type: string + description: Internal1_external + Internal1_shared: + label: Internal1_shared + hidden: false + immutable: false + type: string + description: Internal1_shared + fsb1-name: + label: FSB1_name + hidden: false + immutable: false + type: string + description: FSB1_name + pcm_image_name: + label: pcm_image_name + hidden: false + immutable: false + type: string + description: pcm_image_name + pcrf_psm_flavor_name: + label: pcrf_psm_flavor_name + hidden: false + immutable: false + type: string + description: pcrf_psm_flavor_name + pcrf_psm_image_name: + label: pcrf_psm_image_name + hidden: false + immutable: false + type: string + description: pcrf_psm_image_name + snapshot01: + hidden: false + immutable: false + type: string + description: prop + volume_size: + label: volume size + hidden: false + immutable: false + type: float + description: my volume size 320GB + snapshot02: + hidden: false + immutable: false + type: string + description: prop + Internal2_shared: + label: Internal2_shared + hidden: false + immutable: false + type: string + description: Internal2_shared + cps_net_mask: + hidden: false + immutable: false + type: string + description: prop + Internal1_net_name: + label: Internal1_net_name + hidden: false + immutable: false + type: string + description: Internal1_net_name + fsb1-flavor: + label: FSB1_flavor + hidden: false + immutable: false + type: string + description: FSB1_flavor + pcm_vol_01: + hidden: false + immutable: false + type: string + description: prop + volume_type: + label: volume type + hidden: false + immutable: false + type: string + description: volume type Gold + fsb1-zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: string + jsa_net_name: + label: jsa_net_name + hidden: false + immutable: false + type: string + description: jsa_net_name + port_name: + hidden: false + immutable: false + type: string + description: prop + oam_net_id: + label: oam_net_id + hidden: false + immutable: false + type: string + description: oam_net_id + Internal1_forwarding_mode: + label: Internal1_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal1_forwarding_mode + cps_net_name: + label: cps_net_name + hidden: false + immutable: false + type: string + description: cps_net_name + oam_net_ip: + hidden: false + immutable: false + type: string + description: prop + oam_net_mask: + hidden: false + immutable: false + type: string + description: prop + fsb1-oam-ip: + hidden: false + immutable: false + type: string + description: prop + pcrf_security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: string + node_templates: + VMI1: + type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface + properties: + name: + str_replace: + template: VM_NAME_PORT_3 + params: + VM_NAME: + get_input: vipr_atm_name_0 + virtual_network_refs: + - get_input: network_name + virtual_machine_interface_properties: + service_interface_type: left + port_tuple_refs: + - get_input: port_name + FSB1: + type: org.openecomp.resource.vfc.nodes.heat.FSB1 + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + name: + get_attribute: + - VMI1 + - fq_name + - ip + - show + - sub_interface_vlan_tag + - mac + - port_tuple_refs + - virtual_machine_intefrace_mac_addresses + - ip_prefix + - address_mode + - mac_address + - ip_prefix_len + - name + - virtual_machine_interface_properties_service_interface_type + - allowed_address_pair + - virtual_network_refs + - virtual_machine_interface_properties + - virtual_machine_interface_allowed_address_pairs + groups: + ep-jsa_net_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/ep-jsa_net.yaml + description: | + Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD) + members: + - VMI1 + - FSB1
\ 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/getAttr/getAttrOnlyResourceName/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/MANIFEST.json new file mode 100644 index 0000000000..021b40da66 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/MANIFEST.json @@ -0,0 +1,19 @@ +{ + "name": "vEP_JSA_Net", + "description": "Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD)", + "version": "2013-05-23", + "data": [ + { + "file": "ep-jsa_net.yaml", + "type": "HEAT" + }, + { + "file": "nimbus-ethernet", + "type": "OTHER" + }, + { + "file": "nimbus-ethernet-gw", + "type": "OTHER" + } + ] +}
\ 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/getAttr/getAttrOnlyResourceName/inputfiles/ep-jsa_net.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/ep-jsa_net.yaml new file mode 100644 index 0000000000..3f4f796681 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/ep-jsa_net.yaml @@ -0,0 +1,245 @@ +heat_template_version: 2013-05-23 + +description: > + Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD) + +parameters: + security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + pcrf_security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + volume_type: + type: string + label: volume type + description: volume type Gold + + volume_size: + type: number + label: volume size + description: my volume size 320GB + + FSB_1_image: + type: string + label: MME_FSB1 + description: MME_FSB1_15B-CP04-r5a01 + + FSB1_volume_name: + type: string + label: FSB1_volume + description: FSB1_volume_1 + + fsb1-name: + type: string + label: FSB1_name + description: FSB1_name + + fsb1-flavor: + type: string + label: FSB1_flavor + description: FSB1_flavor + + fsb1-zone: + type: string + label: FSB1_zone + description: FSB1_zone + + fsb_zone: + type: string + label: FSB1_zone + description: FSB1_zone + + fsb1-Internal1-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + fsb1-Internal2-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + fsb2-Internal1-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + oam_net_id: + type: string + label: oam_net_id + description: oam_net_id + + jsa_net_name: + type: string + label: jsa_net_name + description: jsa_net_name + + jsa_cidr: + type: string + label: jsa_cidr + description: jsa_cidr + + pcrf_cps_net_name: + type: string + label: pcrf_cps_net_name + description: pcrf_cps_net_name + + pcrf_psm_server_name: + type: string + label: pcrf_psm_server_name + description: pcrf_psm_server_name + + pcrf_psm_image_name: + type: string + label: pcrf_psm_image_name + description: pcrf_psm_image_name + + pcrf_psm_flavor_name: + type: string + label: pcrf_psm_flavor_name + description: pcrf_psm_flavor_name + + availabilityzone_name: + type: string + label: availabilityzone_name + description: availabilityzone_name + + pcm_server_name: + type: string + label: pcm_server_name + description: pcm_server_name + + pcm_image_name: + type: string + label: pcm_image_name + description: pcm_image_name + + pcm_flavor_name: + type: string + label: pcm_flavor_name + description: pcm_flavor_name + + Internal1_net_name: + type: string + label: Internal1_net_name + description: Internal1_net_name + + Internal1_forwarding_mode: + type: string + label: Internal1_forwarding_mode + description: Internal1_forwarding_mode + + Internal1_shared: + type: string + label: Internal1_shared + description: Internal1_shared + + Internal1_external: + type: string + label: Internal1_external + description: Internal1_external + + Internal2_name: + type: string + label: Internal2_name + description: Internal2_name + + Internal2_shared: + type: string + label: Internal2_shared + description: Internal2_shared + + Internal2_external: + type: string + label: Internal2_external + description: Internal2_external + + Internal2_forwarding_mode: + type: string + label: Internal2_forwarding_mode + description: Internal2_forwarding_mode + + cps_net_name: + type: string + label: cps_net_name + description: cps_net_name + + oam_net_name: + type: string + label: oam_net_name + description: oam_net_name + oam_net_gw: + type: string + description: prop + cps_net_ip: + type: string + description: prop + cps_net_mask: + type: string + description: prop + oam_net_ip: + type: string + description: prop + oam_net_mask: + type: string + description: prop + fsb1-oam-ip: + type: string + description: prop + pcrf_cps_net_ip: + type: string + description: prop + pcrf_vnf_id: + type: string + description: prop + pcm_vol: + type: string + description: prop + pcm_vol_01: + type: string + description: prop + snapshot01: + type: string + description: prop + snapshot02: + type: string + description: prop + VMME_FSB1_boot_volume: + type: string + network_name: + type: string + description: prop + port_name: + type: string + description: prop + vipr_atm_name_0: + type: string + description: prop + + +resources: + VMI1: + type: OS::ContrailV2::VirtualMachineInterface + properties: + name: + str_replace: + template: VM_NAME_PORT_3 + params: + VM_NAME: { get_param: vipr_atm_name_0 } + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: 'left' + } + port_tuple_refs: [{ get_param: port_name }] + virtual_network_refs: [{ get_param: network_name }] + + FSB1: + type: OS::Nova::Server + properties: + name: { get_attr: [VMI1] } + block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB1_boot_volume }, delete_on_termination: "false" }] + flavor: { get_param: fsb1-flavor } + availability_zone: { get_param: fsb_zone } + networks: + - network: {get_param: network_name} diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/nimbus-ethernet b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/nimbus-ethernet new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/nimbus-ethernet diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/nimbus-ethernet-gw b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/nimbus-ethernet-gw new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrOnlyResourceName/inputfiles/nimbus-ethernet-gw diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/expectedoutputfiles/MainServiceTemplate.yaml new file mode 100644 index 0000000000..959597787a --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/expectedoutputfiles/MainServiceTemplate.yaml @@ -0,0 +1,350 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: Main +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +node_types: + org.openecomp.resource.vfc.nodes.heat.FSB2: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server + org.openecomp.resource.vfc.nodes.heat.FSB1: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + Internal2_name: + label: Internal2_name + hidden: false + immutable: false + type: string + description: Internal2_name + FSB1_volume_name: + label: FSB1_volume + hidden: false + immutable: false + type: string + description: FSB1_volume_1 + jsa_cidr: + label: jsa_cidr + hidden: false + immutable: false + type: string + description: jsa_cidr + availabilityzone_name: + label: availabilityzone_name + hidden: false + immutable: false + type: string + description: availabilityzone_name + Internal2_external: + label: Internal2_external + hidden: false + immutable: false + type: string + description: Internal2_external + vipr_atm_name_0: + hidden: false + immutable: false + type: string + description: prop + Internal2_forwarding_mode: + label: Internal2_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal2_forwarding_mode + pcrf_vnf_id: + hidden: false + immutable: false + type: string + description: prop + FSB_1_image: + label: MME_FSB1 + hidden: false + immutable: false + type: string + description: MME_FSB1_15B-CP04-r5a01 + fsb1-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + pcm_server_name: + label: pcm_server_name + hidden: false + immutable: false + type: string + description: pcm_server_name + oam_net_name: + label: oam_net_name + hidden: false + immutable: false + type: string + description: oam_net_name + fsb1-Internal2-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + fsb_zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + oam_net_gw: + hidden: false + immutable: false + type: string + description: prop + VMME_FSB1_boot_volume: + hidden: false + immutable: false + type: string + network_name: + hidden: false + immutable: false + type: string + description: prop + cps_net_ip: + hidden: false + immutable: false + type: string + description: prop + pcrf_psm_server_name: + label: pcrf_psm_server_name + hidden: false + immutable: false + type: string + description: pcrf_psm_server_name + pcm_flavor_name: + label: pcm_flavor_name + hidden: false + immutable: false + type: string + description: pcm_flavor_name + pcrf_cps_net_ip: + hidden: false + immutable: false + type: string + description: prop + fsb2-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + pcrf_cps_net_name: + label: pcrf_cps_net_name + hidden: false + immutable: false + type: string + description: pcrf_cps_net_name + pcm_vol: + hidden: false + immutable: false + type: string + description: prop + Internal1_external: + label: Internal1_external + hidden: false + immutable: false + type: string + description: Internal1_external + Internal1_shared: + label: Internal1_shared + hidden: false + immutable: false + type: string + description: Internal1_shared + fsb1-name: + label: FSB1_name + hidden: false + immutable: false + type: string + description: FSB1_name + pcm_image_name: + label: pcm_image_name + hidden: false + immutable: false + type: string + description: pcm_image_name + pcrf_psm_flavor_name: + label: pcrf_psm_flavor_name + hidden: false + immutable: false + type: string + description: pcrf_psm_flavor_name + pcrf_psm_image_name: + label: pcrf_psm_image_name + hidden: false + immutable: false + type: string + description: pcrf_psm_image_name + snapshot01: + hidden: false + immutable: false + type: string + description: prop + volume_size: + label: volume size + hidden: false + immutable: false + type: float + description: my volume size 320GB + snapshot02: + hidden: false + immutable: false + type: string + description: prop + Internal2_shared: + label: Internal2_shared + hidden: false + immutable: false + type: string + description: Internal2_shared + cps_net_mask: + hidden: false + immutable: false + type: string + description: prop + Internal1_net_name: + label: Internal1_net_name + hidden: false + immutable: false + type: string + description: Internal1_net_name + fsb1-flavor: + label: FSB1_flavor + hidden: false + immutable: false + type: string + description: FSB1_flavor + pcm_vol_01: + hidden: false + immutable: false + type: string + description: prop + volume_type: + label: volume type + hidden: false + immutable: false + type: string + description: volume type Gold + fsb1-zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: string + jsa_net_name: + label: jsa_net_name + hidden: false + immutable: false + type: string + description: jsa_net_name + port_name: + hidden: false + immutable: false + type: string + description: prop + oam_net_id: + label: oam_net_id + hidden: false + immutable: false + type: string + description: oam_net_id + Internal1_forwarding_mode: + label: Internal1_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal1_forwarding_mode + cps_net_name: + label: cps_net_name + hidden: false + immutable: false + type: string + description: cps_net_name + oam_net_ip: + hidden: false + immutable: false + type: string + description: prop + oam_net_mask: + hidden: false + immutable: false + type: string + description: prop + fsb1-oam-ip: + hidden: false + immutable: false + type: string + description: prop + pcrf_security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: string + node_templates: + VMI1: + type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface + properties: + name: + str_replace: + template: VM_NAME_PORT_3 + params: + VM_NAME: + get_input: vipr_atm_name_0 + virtual_network_refs: + - get_input: network_name + virtual_machine_interface_properties: + service_interface_type: left + port_tuple_refs: + - get_input: port_name + FSB2: + type: org.openecomp.resource.vfc.nodes.heat.FSB2 + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + name: + get_attribute: + - VMI1 + - virtual_machine_interface_allowed_address_pairs + - allowed_address_pair + - ip + - ip_prefix + FSB1: + type: org.openecomp.resource.vfc.nodes.heat.FSB1 + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + name: + get_attribute: + - VMI1 + - name + groups: + ep-jsa_net_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/ep-jsa_net.yaml + description: | + Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD) + members: + - VMI1 + - FSB2 + - FSB1
\ 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/getAttr/getAttrUC/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/MANIFEST.json new file mode 100644 index 0000000000..021b40da66 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/MANIFEST.json @@ -0,0 +1,19 @@ +{ + "name": "vEP_JSA_Net", + "description": "Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD)", + "version": "2013-05-23", + "data": [ + { + "file": "ep-jsa_net.yaml", + "type": "HEAT" + }, + { + "file": "nimbus-ethernet", + "type": "OTHER" + }, + { + "file": "nimbus-ethernet-gw", + "type": "OTHER" + } + ] +}
\ 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/getAttr/getAttrUC/inputfiles/ep-jsa_net.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/ep-jsa_net.yaml new file mode 100644 index 0000000000..6a050bcce8 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/ep-jsa_net.yaml @@ -0,0 +1,256 @@ +heat_template_version: 2013-05-23 + +description: > + Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD) + +parameters: + security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + pcrf_security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + volume_type: + type: string + label: volume type + description: volume type Gold + + volume_size: + type: number + label: volume size + description: my volume size 320GB + + FSB_1_image: + type: string + label: MME_FSB1 + description: MME_FSB1_15B-CP04-r5a01 + + FSB1_volume_name: + type: string + label: FSB1_volume + description: FSB1_volume_1 + + fsb1-name: + type: string + label: FSB1_name + description: FSB1_name + + fsb1-flavor: + type: string + label: FSB1_flavor + description: FSB1_flavor + + fsb1-zone: + type: string + label: FSB1_zone + description: FSB1_zone + + fsb_zone: + type: string + label: FSB1_zone + description: FSB1_zone + + fsb1-Internal1-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + fsb1-Internal2-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + fsb2-Internal1-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + oam_net_id: + type: string + label: oam_net_id + description: oam_net_id + + jsa_net_name: + type: string + label: jsa_net_name + description: jsa_net_name + + jsa_cidr: + type: string + label: jsa_cidr + description: jsa_cidr + + pcrf_cps_net_name: + type: string + label: pcrf_cps_net_name + description: pcrf_cps_net_name + + pcrf_psm_server_name: + type: string + label: pcrf_psm_server_name + description: pcrf_psm_server_name + + pcrf_psm_image_name: + type: string + label: pcrf_psm_image_name + description: pcrf_psm_image_name + + pcrf_psm_flavor_name: + type: string + label: pcrf_psm_flavor_name + description: pcrf_psm_flavor_name + + availabilityzone_name: + type: string + label: availabilityzone_name + description: availabilityzone_name + + pcm_server_name: + type: string + label: pcm_server_name + description: pcm_server_name + + pcm_image_name: + type: string + label: pcm_image_name + description: pcm_image_name + + pcm_flavor_name: + type: string + label: pcm_flavor_name + description: pcm_flavor_name + + Internal1_net_name: + type: string + label: Internal1_net_name + description: Internal1_net_name + + Internal1_forwarding_mode: + type: string + label: Internal1_forwarding_mode + description: Internal1_forwarding_mode + + Internal1_shared: + type: string + label: Internal1_shared + description: Internal1_shared + + Internal1_external: + type: string + label: Internal1_external + description: Internal1_external + + Internal2_name: + type: string + label: Internal2_name + description: Internal2_name + + Internal2_shared: + type: string + label: Internal2_shared + description: Internal2_shared + + Internal2_external: + type: string + label: Internal2_external + description: Internal2_external + + Internal2_forwarding_mode: + type: string + label: Internal2_forwarding_mode + description: Internal2_forwarding_mode + + cps_net_name: + type: string + label: cps_net_name + description: cps_net_name + + oam_net_name: + type: string + label: oam_net_name + description: oam_net_name + oam_net_gw: + type: string + description: prop + cps_net_ip: + type: string + description: prop + cps_net_mask: + type: string + description: prop + oam_net_ip: + type: string + description: prop + oam_net_mask: + type: string + description: prop + fsb1-oam-ip: + type: string + description: prop + pcrf_cps_net_ip: + type: string + description: prop + pcrf_vnf_id: + type: string + description: prop + pcm_vol: + type: string + description: prop + pcm_vol_01: + type: string + description: prop + snapshot01: + type: string + description: prop + snapshot02: + type: string + description: prop + VMME_FSB1_boot_volume: + type: string + network_name: + type: string + description: prop + port_name: + type: string + description: prop + vipr_atm_name_0: + type: string + description: prop + + +resources: + VMI1: + type: OS::ContrailV2::VirtualMachineInterface + properties: + name: + str_replace: + template: VM_NAME_PORT_3 + params: + VM_NAME: { get_param: vipr_atm_name_0 } + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: 'left' + } + port_tuple_refs: [{ get_param: port_name }] + virtual_network_refs: [{ get_param: network_name }] + + FSB1: + type: OS::Nova::Server + properties: + name: { get_attr: [VMI1, name] } + block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB1_boot_volume }, delete_on_termination: "false" }] + flavor: { get_param: fsb1-flavor } + availability_zone: { get_param: fsb_zone } + networks: + - network: {get_param: network_name} + + FSB2: + type: OS::Nova::Server + properties: + name: { get_attr: [VMI1, virtual_machine_interface_allowed_address_pairs, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip, virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix] } + flavor: { get_param: fsb1-flavor } + availability_zone: { get_param: fsb_zone } + networks: + - network: {get_param: network_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/getAttr/getAttrUC/inputfiles/nimbus-ethernet b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/nimbus-ethernet new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/nimbus-ethernet diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/nimbus-ethernet-gw b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/nimbus-ethernet-gw new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUC/inputfiles/nimbus-ethernet-gw diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/expectedoutputfiles/MainServiceTemplate.yaml new file mode 100644 index 0000000000..c4ac5b14f1 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/expectedoutputfiles/MainServiceTemplate.yaml @@ -0,0 +1,634 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: Main +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +node_types: + org.openecomp.resource.vfc.nodes.heat.FSB2: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server + org.openecomp.resource.vfc.nodes.heat.FSB1: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server + org.openecomp.resource.vfc.nodes.heat.pcm_server: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server + org.openecomp.resource.vfc.nodes.heat.pcrf_psm_server: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + Internal2_name: + label: Internal2_name + hidden: false + immutable: false + type: string + description: Internal2_name + Internal1_shared: + label: Internal1_shared + hidden: false + immutable: false + type: string + description: Internal1_shared + FSB1_volume_name: + label: FSB1_volume + hidden: false + immutable: false + type: string + description: FSB1_volume_1 + jsa_cidr: + label: jsa_cidr + hidden: false + immutable: false + type: string + description: jsa_cidr + availabilityzone_name: + label: availabilityzone_name + hidden: false + immutable: false + type: string + description: availabilityzone_name + fsb1-name: + label: FSB1_name + hidden: false + immutable: false + type: string + description: FSB1_name + pcm_image_name: + label: pcm_image_name + hidden: false + immutable: false + type: string + description: pcm_image_name + Internal2_external: + label: Internal2_external + hidden: false + immutable: false + type: string + description: Internal2_external + Internal2_forwarding_mode: + label: Internal2_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal2_forwarding_mode + pcrf_psm_flavor_name: + label: pcrf_psm_flavor_name + hidden: false + immutable: false + type: string + description: pcrf_psm_flavor_name + pcrf_psm_image_name: + label: pcrf_psm_image_name + hidden: false + immutable: false + type: string + description: pcrf_psm_image_name + pcrf_vnf_id: + hidden: false + immutable: false + type: string + description: prop + FSB_1_image: + label: MME_FSB1 + hidden: false + immutable: false + type: string + description: MME_FSB1_15B-CP04-r5a01 + snapshot01: + hidden: false + immutable: false + type: string + description: prop + volume_size: + label: volume size + hidden: false + immutable: false + type: float + description: my volume size 320GB + snapshot02: + hidden: false + immutable: false + type: string + description: prop + fsb1-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + Internal2_shared: + label: Internal2_shared + hidden: false + immutable: false + type: string + description: Internal2_shared + pcm_server_name: + label: pcm_server_name + hidden: false + immutable: false + type: string + description: pcm_server_name + cps_net_mask: + hidden: false + immutable: false + type: string + description: prop + Internal1_net_name: + label: Internal1_net_name + hidden: false + immutable: false + type: string + description: Internal1_net_name + oam_net_name: + label: oam_net_name + hidden: false + immutable: false + type: string + description: oam_net_name + fsb1-flavor: + label: FSB1_flavor + hidden: false + immutable: false + type: string + description: FSB1_flavor + fsb1-Internal2-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + pcm_vol_01: + hidden: false + immutable: false + type: string + description: prop + volume_type: + label: volume type + hidden: false + immutable: false + type: string + description: volume type Gold + fsb1-zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + fsb_zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + oam_net_gw: + hidden: false + immutable: false + type: string + description: prop + VMME_FSB1_boot_volume: + hidden: false + immutable: false + type: string + network_name: + hidden: false + immutable: false + type: string + description: prop + security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: string + cps_net_ip: + hidden: false + immutable: false + type: string + description: prop + jsa_net_name: + label: jsa_net_name + hidden: false + immutable: false + type: string + description: jsa_net_name + pcrf_psm_server_name: + label: pcrf_psm_server_name + hidden: false + immutable: false + type: string + description: pcrf_psm_server_name + pcm_flavor_name: + label: pcm_flavor_name + hidden: false + immutable: false + type: string + description: pcm_flavor_name + oam_net_id: + label: oam_net_id + hidden: false + immutable: false + type: string + description: oam_net_id + pcrf_cps_net_ip: + hidden: false + immutable: false + type: string + description: prop + fsb2-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + Internal1_forwarding_mode: + label: Internal1_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal1_forwarding_mode + pcrf_cps_net_name: + label: pcrf_cps_net_name + hidden: false + immutable: false + type: string + description: pcrf_cps_net_name + pcm_vol: + hidden: false + immutable: false + type: string + description: prop + cps_net_name: + label: cps_net_name + hidden: false + immutable: false + type: string + description: cps_net_name + oam_net_ip: + hidden: false + immutable: false + type: string + description: prop + oam_net_mask: + hidden: false + immutable: false + type: string + description: prop + fsb1-oam-ip: + hidden: false + immutable: false + type: string + description: prop + pcrf_security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: string + Internal1_external: + label: Internal1_external + hidden: false + immutable: false + type: string + description: Internal1_external + node_templates: + pcm_vol_02: + type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume + properties: + image: + get_input: FSB_1_image + volume_type: + get_input: volume_type + size: '(get_input : volume_size) * 1024' + read_only: true + name: + get_input: FSB1_volume_name + Internal2-net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + properties: + shared: + get_input: Internal2_shared + forwarding_mode: + get_input: Internal2_forwarding_mode + external: + get_input: Internal2_external + network_name: + get_input: Internal2_name + pcm_port_1: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: security_group_name + fixed_ips: + - ip_address: + get_input: oam_net_ip + mac_requirements: + mac_count_required: + is_required: false + network_role_tag: oam + network: + get_input: oam_net_name + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: server_pcm + relationship: tosca.relationships.network.BindsTo + server_VolumeTest_snapshot02: + type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume + properties: + snapshot_id: + get_input: snapshot02 + FSB1_Internal2: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: false + floating_ip_count_required: + is_required: false + mac_requirements: + mac_count_required: + is_required: true + mac_address: + get_input: fsb1-Internal2-mac + network: Internal2-net + requirements: + - link: + capability: tosca.capabilities.network.Linkable + node: Internal2-net + relationship: tosca.relationships.network.LinksTo + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + server_VolumeTest_snapshot01: + type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume + properties: + snapshot_id: + get_input: snapshot01 + FSB1_Internal1: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: false + floating_ip_count_required: + is_required: false + mac_requirements: + mac_count_required: + is_required: true + mac_address: + get_input: fsb1-Internal1-mac + network: Internal1-net + requirements: + - link: + capability: tosca.capabilities.network.Linkable + node: Internal1-net + relationship: tosca.relationships.network.LinksTo + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + FSB1_OAM: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + fixed_ips: + - ip_address: + get_input: fsb1-oam-ip + mac_requirements: + mac_count_required: + is_required: false + network_role_tag: oam + network: + get_input: oam_net_id + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: FSB1 + relationship: tosca.relationships.network.BindsTo + psm01_port_0: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: pcrf_security_group_name + fixed_ips: + - ip_address: + get_input: pcrf_cps_net_ip + mac_requirements: + mac_count_required: + is_required: false + network_role_tag: pcrf_cps + network: + get_input: pcrf_cps_net_name + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: pcrf_server_psm + relationship: tosca.relationships.network.BindsTo + pcm_port_0: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: security_group_name + fixed_ips: + - ip_address: + get_input: cps_net_ip + mac_requirements: + mac_count_required: + is_required: false + network_role_tag: cps + network: + get_input: cps_net_name + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: server_pcm + relationship: tosca.relationships.network.BindsTo + network: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + properties: + network_name: + get_input: Internal1_net_name + server_pcm: + type: org.openecomp.resource.vfc.nodes.heat.pcm_server + properties: + flavor: + get_input: pcm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcm_image_name + config_drive: true + user_data_format: RAW + name: + get_input: pcm_server_name + Internal1-net: + type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork + properties: + shared: + get_input: Internal1_shared + forwarding_mode: + get_input: Internal1_forwarding_mode + external: + get_input: Internal1_external + network_name: + get_input: Internal1_net_name + pcrf_server_psm: + type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm_server + properties: + flavor: + get_input: pcrf_psm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcrf_psm_image_name + metadata: + vnf_id: + get_input: pcrf_vnf_id + config_drive: true + user_data_format: RAW + name: + get_input: pcrf_psm_server_name + server_VolumeTest: + type: org.openecomp.resource.vfc.nodes.heat.pcm_server + properties: + flavor: + get_input: pcm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcm_image_name + config_drive: true + user_data_format: RAW + name: + get_input: pcm_server_name + requirements: + - local_storage: + capability: tosca.capabilities.Attachment + node: pcm_vol_02 + relationship: tosca.relationships.AttachesTo + - local_storage: + capability: tosca.capabilities.Attachment + node: server_VolumeTest_snapshot01 + relationship: server_VolumeTest_4 + - local_storage: + capability: tosca.capabilities.Attachment + node: server_VolumeTest_snapshot02 + relationship: server_VolumeTest_5 + FSB2: + type: org.openecomp.resource.vfc.nodes.heat.FSB2 + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + name: + get_input: fsb1-name + FSB1: + type: org.openecomp.resource.vfc.nodes.heat.FSB1 + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + metadata: + write_files: + - path: /etc/sysconfig/network-scripts/ifcfg-eth0 + permissions: '0644' + content: + str_replace: + template: + get_artifact: + - SELF + - nimbus-ethernet + params: + $dev: eth0 + $netmask: + get_input: cps_net_mask + $ip: + get_input: cps_net_ip + - path: /etc/sysconfig/network-scripts/ifcfg-eth1 + permissions: '0644' + content: + str_replace: + template: + get_artifact: + - SELF + - nimbus-ethernet-gw + params: + $dev: eth1 + $netmask: + get_input: oam_net_mask + $gateway: + get_input: oam_net_gw + $ip: + get_input: oam_net_ip + name: + - UNSUPPORTED_ATTRIBUTE_FSB1_Internal1.unsupportedAttr + artifacts: + nimbus-ethernet-gw: + type: tosca.artifacts.Deployment + file: ../Artifacts/nimbus-ethernet-gw + nimbus-ethernet: + type: tosca.artifacts.Deployment + file: ../Artifacts/nimbus-ethernet + relationship_templates: + server_VolumeTest_4: + type: org.openecomp.relationships.VolumeAttachesTo + properties: + volume_id: server_VolumeTest_snapshot01 + instance_uuid: server_VolumeTest + device: vdb + server_VolumeTest_5: + type: org.openecomp.relationships.VolumeAttachesTo + properties: + volume_id: server_VolumeTest_snapshot02 + instance_uuid: server_VolumeTest + groups: + ep-jsa_net_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/ep-jsa_net.yaml + description: | + Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD) + members: + - pcm_vol_02 + - Internal2-net + - pcm_port_1 + - FSB1_Internal2 + - FSB1_Internal1 + - FSB1_OAM + - psm01_port_0 + - pcm_port_0 + - network + - server_pcm + - Internal1-net + - pcrf_server_psm + - server_VolumeTest + - FSB2 + - FSB1
\ 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/getAttr/getAttrUnsupportedAttr/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/MANIFEST.json new file mode 100644 index 0000000000..021b40da66 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/MANIFEST.json @@ -0,0 +1,19 @@ +{ + "name": "vEP_JSA_Net", + "description": "Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD)", + "version": "2013-05-23", + "data": [ + { + "file": "ep-jsa_net.yaml", + "type": "HEAT" + }, + { + "file": "nimbus-ethernet", + "type": "OTHER" + }, + { + "file": "nimbus-ethernet-gw", + "type": "OTHER" + } + ] +}
\ 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/getAttr/getAttrUnsupportedAttr/inputfiles/ep-jsa_net.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/ep-jsa_net.yaml new file mode 100644 index 0000000000..bb1fd5670c --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/ep-jsa_net.yaml @@ -0,0 +1,411 @@ +heat_template_version: 2013-05-23 + +description: > + Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD) + +parameters: + security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + pcrf_security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + volume_type: + type: string + label: volume type + description: volume type Gold + + volume_size: + type: number + label: volume size + description: my volume size 320GB + + FSB_1_image: + type: string + label: MME_FSB1 + description: MME_FSB1_15B-CP04-r5a01 + + FSB1_volume_name: + type: string + label: FSB1_volume + description: FSB1_volume_1 + + fsb1-name: + type: string + label: FSB1_name + description: FSB1_name + + fsb1-flavor: + type: string + label: FSB1_flavor + description: FSB1_flavor + + fsb1-zone: + type: string + label: FSB1_zone + description: FSB1_zone + + fsb_zone: + type: string + label: FSB1_zone + description: FSB1_zone + + fsb1-Internal1-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + fsb1-Internal2-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + fsb2-Internal1-mac: + type: string + label: FSB1_internal_mac + description: FSB1_internal_mac + + oam_net_id: + type: string + label: oam_net_id + description: oam_net_id + + jsa_net_name: + type: string + label: jsa_net_name + description: jsa_net_name + + jsa_cidr: + type: string + label: jsa_cidr + description: jsa_cidr + + pcrf_cps_net_name: + type: string + label: pcrf_cps_net_name + description: pcrf_cps_net_name + + pcrf_psm_server_name: + type: string + label: pcrf_psm_server_name + description: pcrf_psm_server_name + + pcrf_psm_image_name: + type: string + label: pcrf_psm_image_name + description: pcrf_psm_image_name + + pcrf_psm_flavor_name: + type: string + label: pcrf_psm_flavor_name + description: pcrf_psm_flavor_name + + availabilityzone_name: + type: string + label: availabilityzone_name + description: availabilityzone_name + + pcm_server_name: + type: string + label: pcm_server_name + description: pcm_server_name + + pcm_image_name: + type: string + label: pcm_image_name + description: pcm_image_name + + pcm_flavor_name: + type: string + label: pcm_flavor_name + description: pcm_flavor_name + + Internal1_net_name: + type: string + label: Internal1_net_name + description: Internal1_net_name + + Internal1_forwarding_mode: + type: string + label: Internal1_forwarding_mode + description: Internal1_forwarding_mode + + Internal1_shared: + type: string + label: Internal1_shared + description: Internal1_shared + + Internal1_external: + type: string + label: Internal1_external + description: Internal1_external + + Internal2_name: + type: string + label: Internal2_name + description: Internal2_name + + Internal2_shared: + type: string + label: Internal2_shared + description: Internal2_shared + + Internal2_external: + type: string + label: Internal2_external + description: Internal2_external + + Internal2_forwarding_mode: + type: string + label: Internal2_forwarding_mode + description: Internal2_forwarding_mode + + cps_net_name: + type: string + label: cps_net_name + description: cps_net_name + + oam_net_name: + type: string + label: oam_net_name + description: oam_net_name + oam_net_gw: + type: string + description: prop + cps_net_ip: + type: string + description: prop + cps_net_mask: + type: string + description: prop + oam_net_ip: + type: string + description: prop + oam_net_mask: + type: string + description: prop + fsb1-oam-ip: + type: string + description: prop + pcrf_cps_net_ip: + type: string + description: prop + pcrf_vnf_id: + type: string + description: prop + pcm_vol: + type: string + description: prop + pcm_vol_01: + type: string + description: prop + snapshot01: + type: string + description: prop + snapshot02: + type: string + description: prop + VMME_FSB1_boot_volume: + type: string + network_name: + type: string + description: prop + + +resources: + FSB1: + type: OS::Nova::Server + depends_on: script_init + properties: + name: { get_attr: [FSB1_Internal1, unsupportedAttr] } + block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB1_boot_volume }, delete_on_termination: "false" }] + flavor: { get_param: fsb1-flavor } + availability_zone: { get_param: fsb_zone } + networks: + - port: { get_resource: FSB1_Internal1 } + fixed_ip: 10.0.0.0 + floating_ip: 10.0.0.1 + network: 100_1000_0011 + port_extra_properties: {admin_state_up: true , allowed_address_pairs: 10} + subnet: 10.0.0.2 + - port: { get_resource: FSB1_Internal2 } + - port: { get_resource: FSB1_OAM } + metadata: + write_files: + - path: /etc/sysconfig/network-scripts/ifcfg-eth0 + permissions: "0644" + content: + str_replace: + template: { get_file: "file:///nimbus-ethernet" } + params: + $dev: eth0 + $ip: { get_param: cps_net_ip } + $netmask: { get_param: cps_net_mask } + - path: /etc/sysconfig/network-scripts/ifcfg-eth1 + permissions: "0644" + content: + str_replace: + template: { get_file: "file:///nimbus-ethernet-gw" } + params: + $dev: eth1 + $ip: { get_param: oam_net_ip } + $netmask: { get_param: oam_net_mask } + $gateway: { get_param: oam_net_gw } + + + FSB1_Internal1: + type: OS::Neutron::Port + properties: + network_id: { get_resource: Internal1-net } + mac_address: { get_param: fsb1-Internal1-mac } + + FSB1_Internal2: + type: OS::Neutron::Port + properties: + network_id: { get_resource: Internal2-net } + mac_address: { get_param: fsb1-Internal2-mac } + + FSB1_OAM: + type: OS::Neutron::Port + properties: + network_id: { get_param: oam_net_id } + fixed_ips: + - ip_address: { get_param: fsb1-oam-ip } + + pcrf_server_init: + type: OS::Heat::MultipartMime + properties: + parts: + - config: { get_resource: network} + - config: { get_resource: script_init} + + psm01_port_0: + type: OS::Neutron::Port + properties: + network: { get_param: pcrf_cps_net_name } + fixed_ips: + - ip_address: { get_param: pcrf_cps_net_ip } + security_groups: [{ get_param: pcrf_security_group_name }] + + pcrf_server_psm: + type: OS::Nova::Server + properties: + config_drive: "True" + name: { get_param: pcrf_psm_server_name } + image: { get_param: pcrf_psm_image_name } + flavor: { get_param: pcrf_psm_flavor_name } + availability_zone: { get_param: availabilityzone_name } + networks: + - port: { get_resource: psm01_port_0} + user_data_format: RAW + user_data: + get_resource: pcrf_server_init + metadata: + vnf_id: {get_param: pcrf_vnf_id} + 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 + user_data: + get_resource: server_init + server_VolumeTest: + 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 } + block_device_mapping: + - device_name: vdb + - device_name: vdb + volume_id: { get_param: pcm_vol} + - device_name: vdb + volume_id: { get_param: pcm_vol_01} + - device_name: vdb + volume_id: { get_resource: pcm_vol_02} + - device_name: vdb + snapshot_id: { get_param: snapshot01} + - snapshot_id: { get_param: snapshot02} + user_data_format: RAW + user_data: + get_resource: server_init + server_init: + type: OS::Heat::MultipartMime + properties: + parts: + - config: { get_resource: network} + - config: { get_resource: script_init} + script_init: + type: OS::Heat::MultipartMime + properties: + parts: + - config: { get_resource: network} + + network: + type: OS::Contrail::VirtualNetwork + properties: + name: { get_param: Internal1_net_name } + + pcm_vol_02: + type: OS::Cinder::Volume + properties: + size: {get_param: volume_size} + volume_type: {get_param: volume_type} + name: {get_param: FSB1_volume_name} + image: {get_param: FSB_1_image} + read_only: 1 + + 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 }] + + Internal1-net: + type: OS::Contrail::VirtualNetwork + properties: + name: { get_param: Internal1_net_name } + forwarding_mode: { get_param: Internal1_forwarding_mode } + shared: { get_param: Internal1_shared } + external: { get_param: Internal1_external } +# route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] } + + Internal2-net: + type: OS::Contrail::VirtualNetwork + properties: + name: { get_param: Internal2_name } + forwarding_mode: { get_param: Internal2_forwarding_mode } + shared: { get_param: Internal2_shared } + external: { get_param: Internal2_external } +# route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] } + + FSB2: + type: OS::Nova::Server + properties: + name: { get_param: fsb1-name } + flavor: { get_param: fsb1-flavor } + availability_zone: { get_param: fsb_zone } + networks: + - network: {get_param: network_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/getAttr/getAttrUnsupportedAttr/inputfiles/nimbus-ethernet b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/nimbus-ethernet new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/nimbus-ethernet diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/nimbus-ethernet-gw b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/nimbus-ethernet-gw new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedAttr/inputfiles/nimbus-ethernet-gw diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/GlobalSubstitutionTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/GlobalSubstitutionTypesServiceTemplate.yaml new file mode 100644 index 0000000000..1a5c50d8d2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/GlobalSubstitutionTypesServiceTemplate.yaml @@ -0,0 +1,691 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: GlobalSubstitutionTypes +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +node_types: + org.openecomp.resource.abstract.nodes.heat.nested_db_server: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + vf_module_id: + type: string + description: Unique ID for this VF Module instance + required: true + status: SUPPORTED + security_group_ids: + type: list + description: IDs of the security groups for the server + required: true + status: SUPPORTED + entry_schema: + type: string + vm_role: + type: string + description: VM Role for the db vms + required: true + status: SUPPORTED + db_name: + type: string + description: Hostname of the database servers + required: true + status: SUPPORTED + vnf_id: + type: string + description: Unique ID for this VF instance + required: true + status: SUPPORTED + server_group_id: + type: string + description: ID of the server group + required: true + status: SUPPORTED + availability_zone_0: + type: string + description: Name of the availability zone for this server + required: true + status: SUPPORTED + db_image_name: + type: string + description: Image to be used for the server + required: true + status: SUPPORTED + keypair_id: + type: string + description: Name of the security key for the server + required: true + status: SUPPORTED + db_volume_id_3: + type: string + description: IDs to be used for the database volume + required: true + status: SUPPORTED + db_volume_id_2: + type: string + description: IDs to be used for the database volume + required: true + status: SUPPORTED + deploy_timeout: + type: float + description: Timeout before declaring the stack deployment as failed. + required: true + status: SUPPORTED + constraints: + - in_range: + - 60 + - 3600 + oam_net_name: + type: string + description: Name of the oam network + required: true + status: SUPPORTED + db_oam_ip_0: + type: string + description: OAM IP Address of the database servers + required: true + status: SUPPORTED + db_flavor_name: + type: string + description: Flavor to be used for the server + required: true + status: SUPPORTED + db_volume_id_1: + type: string + description: IDs to be used for the database volume + required: true + status: SUPPORTED + db_volume_id_0: + type: string + description: IDs to be used for the database volume + required: true + status: SUPPORTED + requirements: + - dependency_db_server_0: + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + occurrences: + - 0 + - UNBOUNDED + - local_storage_db_server_0: + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + capabilities: + disk.device.write.bytes.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.requests_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + os_db_server_0: + type: tosca.capabilities.OperatingSystem + occurrences: + - 1 + - UNBOUNDED + disk.write.requests.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.root.size_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.resident_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.iops_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.usage_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.iops_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.capacity_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.allocation_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.requests_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + endpoint_db_server_0: + type: tosca.capabilities.Endpoint.Admin + occurrences: + - 1 + - UNBOUNDED + cpu.delta_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + feature_db_server_0: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + binding_db_server_0: + type: tosca.capabilities.network.Bindable + occurrences: + - 1 + - UNBOUNDED + memory_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.allocation_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.capacity_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + host_db_server_0: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.SoftwareComponent + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.latency_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.usage_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu_util_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + scalable_db_server_0: + type: tosca.capabilities.Scalable + occurrences: + - 1 + - UNBOUNDED + vcpus_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.usage_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.latency_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + instance_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.ephemeral.size_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + org.openecomp.resource.abstract.nodes.heat.nested_app_server: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + vf_module_id: + type: string + description: Unique ID for this VF Module instance + required: true + status: SUPPORTED + app_flavor_name: + type: string + description: Flavor to be used for the server + required: true + status: SUPPORTED + security_group_ids: + type: list + description: IDs of the security groups for the server + required: true + status: SUPPORTED + entry_schema: + type: string + vm_role: + type: string + description: VM Role for the application vms + required: true + status: SUPPORTED + app_name: + type: string + description: Hostnames of the application servers + required: true + status: SUPPORTED + vnf_id: + type: string + description: Unique ID for this VF instance + required: true + status: SUPPORTED + app_oam_ip_0: + type: string + description: OAM IP Addresses of the application servers + required: true + status: SUPPORTED + server_group_id: + type: string + description: ID of the server group + required: true + status: SUPPORTED + availability_zone_0: + type: string + description: Name of the availability zone for this server + required: true + status: SUPPORTED + app_image_name: + type: string + description: Image to be used for the server + required: true + status: SUPPORTED + keypair_id: + type: string + description: Name of the security key for the server + required: true + status: SUPPORTED + deploy_timeout: + type: float + description: Timeout before declaring the stack deployment as failed. + required: true + status: SUPPORTED + constraints: + - in_range: + - 60 + - 3600 + oam_net_name: + type: string + description: Name of the oam network + required: true + status: SUPPORTED + requirements: + - dependency_app_server_0: + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + occurrences: + - 0 + - UNBOUNDED + - local_storage_app_server_0: + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + capabilities: + endpoint_app_server_0: + type: tosca.capabilities.Endpoint.Admin + occurrences: + - 1 + - UNBOUNDED + host_app_server_0: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.SoftwareComponent + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.allocation_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.root.size_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.iops_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.usage_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu.delta_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.capacity_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.ephemeral.size_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.latency_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.requests_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.capacity_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.requests_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + scalable_app_server_0: + type: tosca.capabilities.Scalable + occurrences: + - 1 + - UNBOUNDED + disk.write.requests.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu_util_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + binding_app_server_0: + type: tosca.capabilities.network.Bindable + occurrences: + - 1 + - UNBOUNDED + disk.device.latency_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.resident_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.usage_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + vcpus_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + feature_app_server_0: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + os_app_server_0: + type: tosca.capabilities.OperatingSystem + occurrences: + - 1 + - UNBOUNDED + cpu_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.iops_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + instance_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.usage_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.allocation_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED
\ 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/getAttr/getAttrUnsupportedResource/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/MainServiceTemplate.yaml new file mode 100644 index 0000000000..cbbf48a430 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/MainServiceTemplate.yaml @@ -0,0 +1,453 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: Main +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +- GlobalSubstitutionTypes: + file: GlobalSubstitutionTypesServiceTemplate.yaml +topology_template: + inputs: + vf_module_id: + label: VF Module ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF Module instance + default: base + db_ports: + label: Database Ports + hidden: false + immutable: false + type: list + description: List of ports to apply to the security group for the database VMs + default: + - '27017' + entry_schema: + type: string + app_protocols: + label: Application Protocols + hidden: false + immutable: false + type: list + description: List of protocols associated with the app_ports + default: + - tcp + entry_schema: + type: string + db_volume_size_0: + label: Data Volume Size + hidden: false + immutable: false + type: float + description: Size of the data volume + default: 1 + constraints: + - in_range: + - 1 + - 2000 + app_ports: + label: Application Ports + hidden: false + immutable: false + type: list + description: List of ports to apply to the security group for the application VMs + default: + - '8443' + entry_schema: + type: string + vnf_id: + label: VNF ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF instance + default: pronghorn + availability_zone_0: + label: First Availability Zone + hidden: false + immutable: false + type: string + description: Name of the first availability zone + default: nova + app_public_key: + label: Application Public Key + hidden: false + immutable: false + type: string + description: Public ssh key for the application servers + default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGe+nL1U3mFHrbtmsvNWR+oDdUyyOX5KejZqe/80uwDiPNyOJjHWIVuX812AEdAAH94nQnkYr2dBiSu1FPh+auMuk3FfegchKT7pYetqELY3ryLUPEh67PmKrdlT9cQ/wQZROq672AA6qlZAYIooeLZVSzUhABfsITk0RhfcWZGIcZwv0Tja3nnhNgtqCxoTXs6fzfcCaypgwy3F0S4RewUfcz/9g7f0tze1CmWRUtPkNK2nX2/T2AJzHgy+vItwpalnon1egIszJfj7uxp+VotQlQ2PN8sI0J5zgpBFe/lxqEwtIKeiTJ16JlyDXtin/RCjCCdtvIaVCff3Z031UV jspaeth@Jonathons-MBP + db_image_name: + label: Database Image + hidden: false + immutable: false + type: string + description: Image of the database server + default: pronghorn-ubuntu14 + db_volume_id_3: + label: Data Volume IDs for disk 3 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volumes + default: 454a7b1c-a58f-4bac-bed2-a7afa3836dd4 + db_volume_id_2: + label: Data Volume IDs for disk 2 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volumes + default: 6f4d6f1a-1e88-492b-8020-b5a169381434 + oam_net_name: + label: Database OAM Network + hidden: false + immutable: false + type: string + description: Name of the OAM network for the database servers + default: oam + db_flavor_name: + label: Database Flavor + hidden: false + immutable: false + type: string + description: Flavor of the database server + default: s1.test + db_volume_id_1: + label: Data Volume IDs for disk 1 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volumes + default: 5db48c7a-eb2d-4960-a90c-88a2d0052a71 + common_protocols: + label: Common Protocols + hidden: false + immutable: false + type: list + description: List of protocols associated with the common_ports + default: + - tcp + - udp + - udp + - udp + entry_schema: + type: string + db_volume_id_0: + label: Data Volume IDs for disk 0 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volumes + default: e8abc8da-f477-4e5c-8266-98b43c982fe4 + db_protocols: + label: Database Protocols + hidden: false + immutable: false + type: list + description: List of protocols associated with the db_ports + default: + - tcp + entry_schema: + type: string + app_flavor_name: + label: App Flavor + hidden: false + immutable: false + type: string + description: Flavor to be used for the application server + default: s1.test + app_deploy_timeout: + label: Application Deployment Timeout + hidden: false + immutable: false + type: float + description: Timeout in seconds before declaring the application stack as failed + default: 300 + constraints: + - in_range: + - 60 + - 3600 + common_ports: + label: Common Ports + hidden: false + immutable: false + type: list + description: List of ports to apply to the security group for all VMs + default: + - '22' + - '53' + - '123' + - '161' + entry_schema: + type: string + app_name: + label: Application Hostname + hidden: false + immutable: false + type: string + description: Hostname of the application server + default: pronghorn-app01 + db_name: + label: Database Hostname + hidden: false + immutable: false + type: string + description: Hostname of the database server + default: pronghorn-db01 + app_oam_ip_0: + label: Application OAM IP Address + hidden: false + immutable: false + type: string + description: OAM IP Address of the application server + default: 10.0.0.21 + app_vm_role: + label: App VM Role + hidden: false + immutable: false + type: string + description: Role for the App VM + default: app + app_image_name: + label: App Image + hidden: false + immutable: false + type: string + description: Image to be used for the application server + default: pronghorn-ubuntu14 + db_public_key: + label: Database Public Key + hidden: false + immutable: false + type: string + description: Public ssh key for the database servers + default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGe+nL1U3mFHrbtmsvNWR+oDdUyyOX5KejZqe/80uwDiPNyOJjHWIVuX812AEdAAH94nQnkYr2dBiSu1FPh+auMuk3FfegchKT7pYetqELY3ryLUPEh67PmKrdlT9cQ/wQZROq672AA6qlZAYIooeLZVSzUhABfsITk0RhfcWZGIcZwv0Tja3nnhNgtqCxoTXs6fzfcCaypgwy3F0S4RewUfcz/9g7f0tze1CmWRUtPkNK2nX2/T2AJzHgy+vItwpalnon1egIszJfj7uxp+VotQlQ2PN8sI0J5zgpBFe/lxqEwtIKeiTJ16JlyDXtin/RCjCCdtvIaVCff3Z031UV jspaeth@Jonathons-MBP + db_oam_ip_0: + label: Database OAM IP Addresse + hidden: false + immutable: false + type: string + description: OAM IP Address of the database server + default: 10.0.0.20 + db_vm_role: + label: DB VM Role + hidden: false + immutable: false + type: string + description: Role for the DB VM + default: database + db_deploy_timeout: + label: Database Deployment Timeout + hidden: false + immutable: false + type: float + description: Timeout in seconds before declaring the database stack as failed + default: 300 + constraints: + - in_range: + - 60 + - 3600 + node_templates: + app_security_group: + type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules + properties: + name: app security group + rules: + - protocol: + get_input: + - app_protocols + - 0 + port_range_max: + get_input: + - app_ports + - 0 + port_range_min: + get_input: + - app_ports + - 0 + common_security_group: + type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules + properties: + name: common security group + rules: + - protocol: + get_input: + - common_protocols + - 0 + port_range_max: + get_input: + - common_ports + - 0 + port_range_min: + get_input: + - common_ports + - 0 + - protocol: + get_input: + - common_protocols + - 1 + port_range_max: + get_input: + - common_ports + - 1 + port_range_min: + get_input: + - common_ports + - 1 + - protocol: + get_input: + - common_protocols + - 2 + port_range_max: + get_input: + - common_ports + - 2 + port_range_min: + get_input: + - common_ports + - 2 + - protocol: + get_input: + - common_protocols + - 3 + port_range_max: + get_input: + - common_ports + - 3 + port_range_min: + get_input: + - common_ports + - 3 + db_security_group: + type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules + properties: + name: data security group + rules: + - protocol: + get_input: + - db_protocols + - 0 + port_range_max: + get_input: + - db_ports + - 0 + port_range_min: + get_input: + - db_ports + - 0 + db_servers: + type: org.openecomp.resource.abstract.nodes.heat.nested_db_server + directives: + - substitutable + properties: + vf_module_id: + get_input: vf_module_id + security_group_ids: + - common_security_group + - db_security_group + vm_role: + get_input: db_vm_role + service_template_filter: + substitute_service_template: nested_db_serverServiceTemplate.yaml + count: 1 + mandatory: true + db_name: + get_input: db_name + vnf_id: + get_input: vnf_id + server_group_id: db_server_group_group + availability_zone_0: + get_input: availability_zone_0 + keypair_id: UNSUPPORTED_RESOURCE_db_keypair + db_image_name: + get_input: db_image_name + db_volume_id_3: + get_input: db_volume_id_3 + db_volume_id_2: + get_input: db_volume_id_2 + oam_net_name: + get_input: oam_net_name + db_oam_ip_0: + get_input: db_oam_ip_0 + db_flavor_name: + get_input: db_flavor_name + db_volume_id_1: + get_input: db_volume_id_1 + deploy_timeout: + get_input: db_deploy_timeout + db_volume_id_0: + get_input: db_volume_id_0 + app_servers: + type: org.openecomp.resource.abstract.nodes.heat.nested_app_server + directives: + - substitutable + properties: + vf_module_id: + get_input: vf_module_id + app_flavor_name: + get_input: app_flavor_name + security_group_ids: + - common_security_group + - app_security_group + vm_role: + get_input: app_vm_role + app_name: + get_input: app_name + service_template_filter: + substitute_service_template: nested_app_serverServiceTemplate.yaml + count: 1 + mandatory: true + vnf_id: + get_input: vnf_id + app_oam_ip_0: + get_input: app_oam_ip_0 + server_group_id: app_server_group_group + availability_zone_0: + get_input: availability_zone_0 + keypair_id: UNSUPPORTED_RESOURCE_app_keypair + app_image_name: + get_input: app_image_name + oam_net_name: + get_input: oam_net_name + deploy_timeout: + get_input: app_deploy_timeout + groups: + base_pronghorn_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/base_pronghorn.yaml + description: Pronghorn Openstack Heat Template + members: + - app_security_group + - common_security_group + - db_security_group + - db_servers + - app_servers + db_server_group_group: + type: tosca.groups.Root + members: [ + ] + app_server_group_group: + type: tosca.groups.Root + members: [ + ] + outputs: + db_volume_id_0: + description: IDs of the database volumes + value: + - UNSUPPORTED_ATTRIBUTE_db_volumes_0.refs + policies: + app_server_group_policy: + type: org.openecomp.policies.placement.Antilocate + properties: + name: app server group + container_type: host + targets: + - app_server_group_group + db_server_group_policy: + type: org.openecomp.policies.placement.Antilocate + properties: + name: data server group + container_type: host + targets: + - db_server_group_group
\ 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/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_app_serverServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_app_serverServiceTemplate.yaml new file mode 100644 index 0000000000..b4d79ccc29 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_app_serverServiceTemplate.yaml @@ -0,0 +1,265 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: nested_app_server +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +- GlobalSubstitutionTypes: + file: GlobalSubstitutionTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.heat.app: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + vf_module_id: + label: VF Module ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF Module instance + app_flavor_name: + label: Flavor + hidden: false + immutable: false + type: string + description: Flavor to be used for the server + security_group_ids: + label: Security Group IDs + hidden: false + immutable: false + type: list + description: IDs of the security groups for the server + entry_schema: + type: string + vm_role: + label: App VM Role + hidden: false + immutable: false + type: string + description: VM Role for the application vms + app_name: + label: Application Hostnames + hidden: false + immutable: false + type: string + description: Hostnames of the application servers + vnf_id: + label: VNF ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF instance + app_oam_ip_0: + label: OAM IP Addresses + hidden: false + immutable: false + type: string + description: OAM IP Addresses of the application servers + server_group_id: + label: Server Group ID + hidden: false + immutable: false + type: string + description: ID of the server group + availability_zone_0: + label: Availability Zone + hidden: false + immutable: false + type: string + description: Name of the availability zone for this server + app_image_name: + label: Image + hidden: false + immutable: false + type: string + description: Image to be used for the server + keypair_id: + label: Key Name + hidden: false + immutable: false + type: string + description: Name of the security key for the server + deploy_timeout: + label: Deployment Timeout + hidden: false + immutable: false + type: float + description: Timeout before declaring the stack deployment as failed. + constraints: + - in_range: + - 60 + - 3600 + oam_net_name: + label: OAM Network Name + hidden: false + immutable: false + type: string + description: Name of the oam network + node_templates: + app_server_0: + type: org.openecomp.resource.vfc.nodes.heat.app + properties: + flavor: + get_input: app_flavor_name + key_name: + get_input: keypair_id + availability_zone: + get_input: availability_zone_0 + image: + get_input: app_image_name + security_groups: + get_input: security_group_ids + metadata: + vf_module_id: + get_input: vf_module_id + vm_role: + get_input: vm_role + vnf_id: + get_input: vnf_id + user_data_format: RAW + name: + - UNSUPPORTED_RESOURCE_wait_condition + scheduler_hints: + group: + get_input: server_group_id + groups: + nested_app_server_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/nested_app_server.yaml + description: Pronghorn Openstack Heat Template for the Application Server + members: + - app_server_0 + substitution_mappings: + node_type: org.openecomp.resource.abstract.nodes.heat.nested_app_server + capabilities: + endpoint_app_server_0: + - app_server_0 + - endpoint + host_app_server_0: + - app_server_0 + - host + disk.device.read.bytes_app_server_0: + - app_server_0 + - disk.device.read.bytes + disk.allocation_app_server_0: + - app_server_0 + - disk.allocation + disk.root.size_app_server_0: + - app_server_0 + - disk.root.size + disk.read.bytes.rate_app_server_0: + - app_server_0 + - disk.read.bytes.rate + disk.iops_app_server_0: + - app_server_0 + - disk.iops + disk.usage_app_server_0: + - app_server_0 + - disk.usage + cpu.delta_app_server_0: + - app_server_0 + - cpu.delta + disk.device.write.requests.rate_app_server_0: + - app_server_0 + - disk.device.write.requests.rate + disk.device.capacity_app_server_0: + - app_server_0 + - disk.device.capacity + disk.ephemeral.size_app_server_0: + - app_server_0 + - disk.ephemeral.size + disk.latency_app_server_0: + - app_server_0 + - disk.latency + disk.read.requests_app_server_0: + - app_server_0 + - disk.read.requests + disk.capacity_app_server_0: + - app_server_0 + - disk.capacity + disk.device.write.bytes.rate_app_server_0: + - app_server_0 + - disk.device.write.bytes.rate + disk.write.requests_app_server_0: + - app_server_0 + - disk.write.requests + scalable_app_server_0: + - app_server_0 + - scalable + disk.write.requests.rate_app_server_0: + - app_server_0 + - disk.write.requests.rate + cpu_util_app_server_0: + - app_server_0 + - cpu_util + disk.device.read.bytes.rate_app_server_0: + - app_server_0 + - disk.device.read.bytes.rate + binding_app_server_0: + - app_server_0 + - binding + disk.device.latency_app_server_0: + - app_server_0 + - disk.device.latency + memory.resident_app_server_0: + - app_server_0 + - memory.resident + disk.read.bytes_app_server_0: + - app_server_0 + - disk.read.bytes + disk.device.usage_app_server_0: + - app_server_0 + - disk.device.usage + disk.device.write.requests_app_server_0: + - app_server_0 + - disk.device.write.requests + vcpus_app_server_0: + - app_server_0 + - vcpus + feature_app_server_0: + - app_server_0 + - feature + os_app_server_0: + - app_server_0 + - os + cpu_app_server_0: + - app_server_0 + - cpu + disk.device.iops_app_server_0: + - app_server_0 + - disk.device.iops + disk.write.bytes_app_server_0: + - app_server_0 + - disk.write.bytes + disk.device.write.bytes_app_server_0: + - app_server_0 + - disk.device.write.bytes + disk.device.read.requests.rate_app_server_0: + - app_server_0 + - disk.device.read.requests.rate + disk.device.read.requests_app_server_0: + - app_server_0 + - disk.device.read.requests + instance_app_server_0: + - app_server_0 + - instance + disk.write.bytes.rate_app_server_0: + - app_server_0 + - disk.write.bytes.rate + memory.usage_app_server_0: + - app_server_0 + - memory.usage + memory_app_server_0: + - app_server_0 + - memory + disk.device.allocation_app_server_0: + - app_server_0 + - disk.device.allocation + requirements: + dependency_app_server_0: + - app_server_0 + - dependency + local_storage_app_server_0: + - app_server_0 + - local_storage
\ 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/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_db_serverServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_db_serverServiceTemplate.yaml new file mode 100644 index 0000000000..cb75f201c8 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_db_serverServiceTemplate.yaml @@ -0,0 +1,289 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: nested_db_server +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +- GlobalSubstitutionTypes: + file: GlobalSubstitutionTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.heat.db: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + vf_module_id: + label: VF Module ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF Module instance + security_group_ids: + label: Security Group IDs + hidden: false + immutable: false + type: list + description: IDs of the security groups for the server + entry_schema: + type: string + vm_role: + label: DB VM Role + hidden: false + immutable: false + type: string + description: VM Role for the db vms + db_name: + label: Database Hostname + hidden: false + immutable: false + type: string + description: Hostname of the database servers + vnf_id: + label: VNF ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF instance + server_group_id: + label: Server Group ID + hidden: false + immutable: false + type: string + description: ID of the server group + availability_zone_0: + label: Availability Zone + hidden: false + immutable: false + type: string + description: Name of the availability zone for this server + db_image_name: + label: Image + hidden: false + immutable: false + type: string + description: Image to be used for the server + keypair_id: + label: Key Name + hidden: false + immutable: false + type: string + description: Name of the security key for the server + db_volume_id_3: + label: Data Volume IDs for disk 3 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volume + db_volume_id_2: + label: Data Volume IDs for disk 2 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volume + deploy_timeout: + label: Deployment Timeout + hidden: false + immutable: false + type: float + description: Timeout before declaring the stack deployment as failed. + constraints: + - in_range: + - 60 + - 3600 + oam_net_name: + label: OAM Network Name + hidden: false + immutable: false + type: string + description: Name of the oam network + db_oam_ip_0: + label: OAM IP Addresse + hidden: false + immutable: false + type: string + description: OAM IP Address of the database servers + db_flavor_name: + label: Flavor + hidden: false + immutable: false + type: string + description: Flavor to be used for the server + db_volume_id_1: + label: Data Volume IDs for disk 1 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volume + db_volume_id_0: + label: Data Volume IDs for disk 0 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volume + node_templates: + db_server_0: + type: org.openecomp.resource.vfc.nodes.heat.db + properties: + flavor: + get_input: db_flavor_name + key_name: + get_input: keypair_id + availability_zone: + get_input: availability_zone_0 + image: + get_input: db_image_name + security_groups: + get_input: security_group_ids + metadata: + vf_module_id: + get_input: vf_module_id + vm_role: + get_input: vm_role + vnf_id: + get_input: vnf_id + user_data_format: RAW + name: + get_input: db_name + scheduler_hints: + group: + get_input: server_group_id + groups: + nested_db_server_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/nested_db_server.yaml + description: Pronghorn Openstack Heat Template for Mongo DB + members: + - db_server_0 + substitution_mappings: + node_type: org.openecomp.resource.abstract.nodes.heat.nested_db_server + capabilities: + disk.device.write.bytes.rate_db_server_0: + - db_server_0 + - disk.device.write.bytes.rate + cpu_db_server_0: + - db_server_0 + - cpu + disk.write.requests_db_server_0: + - db_server_0 + - disk.write.requests + os_db_server_0: + - db_server_0 + - os + disk.write.requests.rate_db_server_0: + - db_server_0 + - disk.write.requests.rate + disk.root.size_db_server_0: + - db_server_0 + - disk.root.size + memory.resident_db_server_0: + - db_server_0 + - memory.resident + disk.device.iops_db_server_0: + - db_server_0 + - disk.device.iops + memory.usage_db_server_0: + - db_server_0 + - memory.usage + disk.iops_db_server_0: + - db_server_0 + - disk.iops + disk.capacity_db_server_0: + - db_server_0 + - disk.capacity + disk.device.read.bytes_db_server_0: + - db_server_0 + - disk.device.read.bytes + disk.device.allocation_db_server_0: + - db_server_0 + - disk.device.allocation + disk.read.requests_db_server_0: + - db_server_0 + - disk.read.requests + endpoint_db_server_0: + - db_server_0 + - endpoint + cpu.delta_db_server_0: + - db_server_0 + - cpu.delta + feature_db_server_0: + - db_server_0 + - feature + binding_db_server_0: + - db_server_0 + - binding + memory_db_server_0: + - db_server_0 + - memory + disk.read.bytes_db_server_0: + - db_server_0 + - disk.read.bytes + disk.device.write.requests_db_server_0: + - db_server_0 + - disk.device.write.requests + disk.allocation_db_server_0: + - db_server_0 + - disk.allocation + disk.device.read.requests.rate_db_server_0: + - db_server_0 + - disk.device.read.requests.rate + disk.device.capacity_db_server_0: + - db_server_0 + - disk.device.capacity + host_db_server_0: + - db_server_0 + - host + disk.device.read.bytes.rate_db_server_0: + - db_server_0 + - disk.device.read.bytes.rate + disk.device.write.bytes_db_server_0: + - db_server_0 + - disk.device.write.bytes + disk.latency_db_server_0: + - db_server_0 + - disk.latency + disk.usage_db_server_0: + - db_server_0 + - disk.usage + disk.write.bytes.rate_db_server_0: + - db_server_0 + - disk.write.bytes.rate + cpu_util_db_server_0: + - db_server_0 + - cpu_util + scalable_db_server_0: + - db_server_0 + - scalable + vcpus_db_server_0: + - db_server_0 + - vcpus + disk.device.usage_db_server_0: + - db_server_0 + - disk.device.usage + disk.device.write.requests.rate_db_server_0: + - db_server_0 + - disk.device.write.requests.rate + disk.write.bytes_db_server_0: + - db_server_0 + - disk.write.bytes + disk.device.latency_db_server_0: + - db_server_0 + - disk.device.latency + instance_db_server_0: + - db_server_0 + - instance + disk.ephemeral.size_db_server_0: + - db_server_0 + - disk.ephemeral.size + disk.read.bytes.rate_db_server_0: + - db_server_0 + - disk.read.bytes.rate + disk.device.read.requests_db_server_0: + - db_server_0 + - disk.device.read.requests + requirements: + dependency_db_server_0: + - db_server_0 + - dependency + local_storage_db_server_0: + - db_server_0 + - local_storage
\ 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/getAttr/getAttrUnsupportedResource/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/MANIFEST.json new file mode 100644 index 0000000000..8b12978ce1 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/MANIFEST.json @@ -0,0 +1,38 @@ +{ + "name": "", + "description": "", + "data": [ + { + "file": "nested_app_server.yaml", + "type": "HEAT", + "isBase": "false" + }, + { + "file": "nested_db_server.yaml", + "type": "HEAT", + "isBase": "false" + }, + { + "file": "base_pronghorn.yaml", + "type": "HEAT", + "isBase": "true", + "data": [ + { + "file": "base_pronghorn.env", + "type": "HEAT_ENV" + }, + { + "file": "base_pronghorn_volume.yaml", + "type": "HEAT_VOL", + "isBase": "false", + "data": [ + { + "file": "base_pronghorn_volume.env", + "type": "HEAT_ENV" + } + ] + } + ] + } + ] +}
\ 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/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn.env new file mode 100644 index 0000000000..3b069fe185 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn.env @@ -0,0 +1,67 @@ +### +# list of stack parameters +### + +parameters: + ### + # vnf info + ### + vnf_id: pronghorn + vf_module_id: base + db_vm_role: database + app_vm_role: app + + + ### + # common / data center deployment info + ### + availability_zone_0: nova + oam_net_name: "oam" + + + ### + # security group info + ### + common_ports: "22,53,123,161" + common_protocols: "tcp,udp,udp,udp" + + db_ports: "27017" + db_protocols: "tcp" + + app_ports: "8443" + app_protocols: "tcp" + + + ### + # flavor, image, keypair and timeout info + ### + db_flavor_name: s1.test + db_image_name: pronghorn-ubuntu14 + #db_image_name: pronghorn-database + db_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGe+nL1U3mFHrbtmsvNWR+oDdUyyOX5KejZqe/80uwDiPNyOJjHWIVuX812AEdAAH94nQnkYr2dBiSu1FPh+auMuk3FfegchKT7pYetqELY3ryLUPEh67PmKrdlT9cQ/wQZROq672AA6qlZAYIooeLZVSzUhABfsITk0RhfcWZGIcZwv0Tja3nnhNgtqCxoTXs6fzfcCaypgwy3F0S4RewUfcz/9g7f0tze1CmWRUtPkNK2nX2/T2AJzHgy+vItwpalnon1egIszJfj7uxp+VotQlQ2PN8sI0J5zgpBFe/lxqEwtIKeiTJ16JlyDXtin/RCjCCdtvIaVCff3Z031UV jspaeth@Jonathons-MBP" + db_deploy_timeout: 300 + + app_flavor_name: s1.test + app_image_name: pronghorn-ubuntu14 + #app_image_name: pronghorn-application + app_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGe+nL1U3mFHrbtmsvNWR+oDdUyyOX5KejZqe/80uwDiPNyOJjHWIVuX812AEdAAH94nQnkYr2dBiSu1FPh+auMuk3FfegchKT7pYetqELY3ryLUPEh67PmKrdlT9cQ/wQZROq672AA6qlZAYIooeLZVSzUhABfsITk0RhfcWZGIcZwv0Tja3nnhNgtqCxoTXs6fzfcCaypgwy3F0S4RewUfcz/9g7f0tze1CmWRUtPkNK2nX2/T2AJzHgy+vItwpalnon1egIszJfj7uxp+VotQlQ2PN8sI0J5zgpBFe/lxqEwtIKeiTJ16JlyDXtin/RCjCCdtvIaVCff3Z031UV jspaeth@Jonathons-MBP" + app_deploy_timeout: 300 + + + ### + # hostnames, ip addresses and public keys + ### + db_name: pronghorn-db01 + db_oam_ip_0: "10.0.0.20" + + app_name: pronghorn-app01 + app_oam_ip_0: "10.0.0.21" + + + ### + # storage volume info + ### + db_volume_id_0: e8abc8da-f477-4e5c-8266-98b43c982fe4 + db_volume_id_1: 5db48c7a-eb2d-4960-a90c-88a2d0052a71 + db_volume_id_2: 6f4d6f1a-1e88-492b-8020-b5a169381434 + db_volume_id_3: 454a7b1c-a58f-4bac-bed2-a7afa3836dd4 diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn.yaml new file mode 100644 index 0000000000..62debe82af --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn.yaml @@ -0,0 +1,284 @@ +heat_template_version: 2015-04-30 + +description: Pronghorn Openstack Heat Template + +parameters: + oam_net_name: + label: Database OAM Network + description: Name of the OAM network for the database servers + type: string + common_ports: + label: Common Ports + description: List of ports to apply to the security group for all VMs + type: comma_delimited_list + common_protocols: + label: Common Protocols + description: List of protocols associated with the common_ports + type: comma_delimited_list + db_ports: + label: Database Ports + description: List of ports to apply to the security group for the database VMs + type: comma_delimited_list + db_protocols: + label: Database Protocols + description: List of protocols associated with the db_ports + type: comma_delimited_list + app_ports: + label: Application Ports + description: List of ports to apply to the security group for the application VMs + type: comma_delimited_list + app_protocols: + label: Application Protocols + description: List of protocols associated with the app_ports + type: comma_delimited_list + ### + # vnf info + ### + vnf_id: + label: VNF ID + description: Unique ID for this VF instance + type: string + vf_module_id: + label: VF Module ID + description: Unique ID for this VF Module instance + type: string + db_vm_role: + label: DB VM Role + description: Role for the DB VM + type: string + app_vm_role: + label: App VM Role + description: Role for the App VM + type: string + + ### + # availability zones + ### + availability_zone_0: + label: First Availability Zone + description: Name of the first availability zone + type: string + + ### + # database server networks, ips and hostnames + ### + db_name: + label: Database Hostname + description: Hostname of the database server + type: string + db_oam_ip_0: + label: Database OAM IP Addresse + description: OAM IP Address of the database server + type: string + ### + # database common server info (flavor, image, keypair) + ### + db_flavor_name: + label: Database Flavor + description: Flavor of the database server + type: string + db_image_name: + label: Database Image + description: Image of the database server + type: string + db_public_key: + label: Database Public Key + description: Public ssh key for the database servers + type: string + db_deploy_timeout: + label: Database Deployment Timeout + description: Timeout in seconds before declaring the database stack as failed + type: number + constraints: + - range: { min: 60, max: 3600 } + + ### + # database volume ids + ### + db_volume_id_0: + label: Data Volume IDs for disk 0 + description: IDs to be used for the database volumes + type: string + db_volume_id_1: + label: Data Volume IDs for disk 1 + description: IDs to be used for the database volumes + type: string + db_volume_id_2: + label: Data Volume IDs for disk 2 + description: IDs to be used for the database volumes + type: string + db_volume_id_3: + label: Data Volume IDs for disk 3 + description: IDs to be used for the database volumes + type: string + + + ### + # application server networks, ips and hostnames + ### + app_name: + label: Application Hostname + description: Hostname of the application server + type: string + app_oam_ip_0: + label: Application OAM IP Address + description: OAM IP Address of the application server + type: string + ### + # application common server info (flavor, image, keypair) + ### + app_flavor_name: + label: App Flavor + description: Flavor to be used for the application server + type: string + app_image_name: + label: App Image + description: Image to be used for the application server + type: string + app_public_key: + label: Application Public Key + description: Public ssh key for the application servers + type: string + + app_deploy_timeout: + label: Application Deployment Timeout + description: Timeout in seconds before declaring the application stack as failed + type: number + constraints: + - range: { min: 60, max: 3600 } + +resources: + ### + # define unique keypairs for each role + ### + db_keypair: + type: OS::Nova::KeyPair + properties: + name: pronghorn database key + public_key: { get_param: db_public_key } + save_private_key: false + app_keypair: + type: OS::Nova::KeyPair + properties: + name: pronghorn application key + public_key: { get_param: app_public_key } + save_private_key: false + + ### + # define security groups for each role + ### + ### + # NOTE: I would like to use the repeat/for_each function to iterate over these lists + # My local Mirantis 7 testing environment contains the following bug: + # + # ERROR: The values of the "for_each" argument to "repeat" must be lists + ### + common_security_group: + type: OS::Neutron::SecurityGroup + properties: + name: common security group + rules: + - protocol: { get_param: [ common_protocols, 0 ] } + port_range_min: { get_param: [ common_ports, 0 ] } + port_range_max: { get_param: [ common_ports, 0 ] } + - protocol: { get_param: [ common_protocols, 1 ] } + port_range_min: { get_param: [ common_ports, 1 ] } + port_range_max: { get_param: [ common_ports, 1 ] } + - protocol: { get_param: [ common_protocols, 2 ] } + port_range_min: { get_param: [ common_ports, 2 ] } + port_range_max: { get_param: [ common_ports, 2 ] } + - protocol: { get_param: [ common_protocols, 3 ] } + port_range_min: { get_param: [ common_ports, 3 ] } + port_range_max: { get_param: [ common_ports, 3 ] } + db_security_group: + type: OS::Neutron::SecurityGroup + properties: + name: data security group + rules: + - protocol: { get_param: [ db_protocols, 0 ] } + port_range_min: { get_param: [ db_ports, 0 ] } + port_range_max: { get_param: [ db_ports, 0 ] } + app_security_group: + type: OS::Neutron::SecurityGroup + properties: + name: app security group + rules: + - protocol: { get_param: [ app_protocols, 0 ] } + port_range_min: { get_param: [ app_ports, 0 ] } + port_range_max: { get_param: [ app_ports, 0 ] } + + ### + # create the database servers + ### + db_server_group: + type: OS::Nova::ServerGroup + properties: + name: data server group + policies: + - anti-affinity + + db_servers: + type: OS::Heat::ResourceGroup + properties: + count: 1 + resource_def: + type: nested_db_server.yaml + properties: + server_group_id: { get_resource: db_server_group } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + vm_role: { get_param: db_vm_role } + availability_zone_0: { get_param: availability_zone_0 } + oam_net_name: { get_param: oam_net_name } + db_name: { get_param: db_name } + db_oam_ip_0: { get_param: db_oam_ip_0 } + security_group_ids: + - { get_resource: common_security_group } + - { get_resource: db_security_group } + keypair_id: { get_resource: db_keypair } + db_flavor_name: { get_param: db_flavor_name } + db_image_name: { get_param: db_image_name } + db_volume_id_0: { get_param: db_volume_id_0 } + db_volume_id_1: { get_param: db_volume_id_1 } + db_volume_id_2: { get_param: db_volume_id_2 } + db_volume_id_3: { get_param: db_volume_id_3 } + deploy_timeout: { get_param: db_deploy_timeout } + + + ### + # create the application servers + ### + app_server_group: + type: OS::Nova::ServerGroup + properties: + name: app server group + policies: + - anti-affinity + + app_servers: + type: OS::Heat::ResourceGroup + properties: + count: 1 + resource_def: + type: nested_app_server.yaml + properties: + server_group_id: { get_resource: app_server_group } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + vm_role: { get_param: app_vm_role } + availability_zone_0: { get_param: availability_zone_0 } + oam_net_name: { get_param: oam_net_name } + app_name: { get_param: app_name } + app_oam_ip_0: { get_param: app_oam_ip_0 } + security_group_ids: + - { get_resource: common_security_group } + - { get_resource: app_security_group } + keypair_id: { get_resource: app_keypair } + app_flavor_name: { get_param: app_flavor_name } + app_image_name: { get_param: app_image_name } + deploy_timeout: { get_param: app_deploy_timeout } + +outputs: + ### + # No outputs as the base_pronghorn is the only VNF component + ### diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn_volume.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn_volume.env new file mode 100644 index 0000000000..e9b25015f3 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn_volume.env @@ -0,0 +1,7 @@ +### +# list of stack parameters +### +parameters: + + # size of each database volume + db_volume_size_0: 1 diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn_volume.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn_volume.yaml new file mode 100644 index 0000000000..8355b63212 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/base_pronghorn_volume.yaml @@ -0,0 +1,77 @@ +heat_template_version: 2015-04-30 + +description: Pronghorn Data Volume + +parameters: + ### + # size of each database storage volume + ### + db_volume_size_0: + label: Data Volume Size + description: Size of the data volume + type: number + constraints: + - range: { min: 1, max: 2000 } + description: Volume size should be an integer between 1 and 2000 (GB) + + +resources: + ### + # define database storage volumes + # four volumes are created for each server + # these four volumes will be combined in a RAID 10 array + ### + db_volumes_0: + type: OS::Heat::ResourceGroup + properties: + count: 1 + resource_def: + type: OS::Cinder::Volume + properties: + name: db_volume_%index%_0 + size: { get_param: db_volume_size_0 } + db_volumes_1: + type: OS::Heat::ResourceGroup + properties: + count: 1 + resource_def: + type: OS::Cinder::Volume + properties: + name: db_volume_%index%_1 + size: { get_param: db_volume_size_0 } + db_volumes_2: + type: OS::Heat::ResourceGroup + properties: + count: 1 + resource_def: + type: OS::Cinder::Volume + properties: + name: db_volume_%index%_2 + size: { get_param: db_volume_size_0 } + db_volumes_3: + type: OS::Heat::ResourceGroup + properties: + count: 1 + resource_def: + type: OS::Cinder::Volume + properties: + name: db_volume_%index%_3 + size: { get_param: db_volume_size_0 } + + +outputs: + ### + # database storage volume outputs + ### + db_volume_id_0: + description: IDs of the database volumes + value: { get_attr: [db_volumes_0, refs, 1] } + # db_volume_id_1: + # description: IDs of the database volumes + # value: { get_attr: [db_volumes_1, refs, 1] } + # db_volume_id_2: + # description: IDs of the database volumes + # value: { get_attr: [db_volumes_2, refs, 1] } + # db_volume_id_3: + # description: IDs of the database volumes + # value: { get_attr: [db_volumes_3, refs, 1] } diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/nested_app_server.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/nested_app_server.yaml new file mode 100644 index 0000000000..c4f3fdb170 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/nested_app_server.yaml @@ -0,0 +1,137 @@ +heat_template_version: 2015-04-30 + +description: Pronghorn Openstack Heat Template for the Application Server + +parameters: + ### + # server group and index + ### + server_group_id: + label: Server Group ID + description: ID of the server group + type: string + deploy_timeout: + label: Deployment Timeout + description: Timeout before declaring the stack deployment as failed. + type: number + constraints: + - range: { min: 60, max: 3600 } + + ### + # vnf info + ### + vnf_id: + label: VNF ID + description: Unique ID for this VF instance + type: string + vf_module_id: + label: VF Module ID + description: Unique ID for this VF Module instance + type: string + vm_role: + label: App VM Role + description: VM Role for the application vms + type: string + + ### + # availability zone + ### + availability_zone_0: + label: Availability Zone + description: Name of the availability zone for this server + type: string + + ### + # application server networks, ips and hostnames + ### + app_name: + label: Application Hostnames + description: Hostnames of the application servers + type: string + oam_net_name: + label: OAM Network Name + description: Name of the oam network + type: string + app_oam_ip_0: + label: OAM IP Addresses + description: OAM IP Addresses of the application servers + type: string + + ### + # application common server info (flavor, image, keypair) + ### + app_flavor_name: + label: Flavor + description: Flavor to be used for the server + type: string + app_image_name: + label: Image + description: Image to be used for the server + type: string + keypair_id: + label: Key Name + description: Name of the security key for the server + type: string + + ### + # security groups + ### + security_group_ids: + label: Security Group IDs + description: IDs of the security groups for the server + type: comma_delimited_list + + +resources: + ### + # software deployment wait conditions + ### + wait_condition: + type: OS::Heat::WaitCondition + properties: + handle: { get_resource: wait_handle } + timeout: { get_param: deploy_timeout } + + wait_handle: + type: OS::Heat::WaitConditionHandle + + ### + # create the application server + ### + app_server_0: + type: OS::Nova::Server + properties: + name: { get_attr: [wait_condition, att1] } + availability_zone: { get_param: availability_zone_0 } + scheduler_hints: + group: { get_param: server_group_id } + key_name: { get_param: keypair_id } + flavor: { get_param: app_flavor_name } + image: { get_param: app_image_name } + security_groups: { get_param: security_group_ids } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + vm_role: { get_param: vm_role } + networks: + - network: { get_param: oam_net_name } + fixed_ip: { get_param: app_oam_ip_0 } + user_data_format: RAW + user_data: + str_replace: + params: + wc_notify: { get_attr: ['wait_handle', 'curl_cli'] } + template: | + #!/bin/bash + ROOT_PW="dan1tom2" + ( + echo "$ROOT_PW" + echo "$ROOT_PW" + ) | passwd --stdin root + wc_notify --data-binary '{"status":"SUCCESS"}' + + +outputs: + ### + # No outputs as the base_pronghorn is the only VNF component + ### diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/nested_db_server.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/nested_db_server.yaml new file mode 100644 index 0000000000..8716028a07 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/inputfiles/nested_db_server.yaml @@ -0,0 +1,204 @@ +heat_template_version: 2015-04-30 + +description: Pronghorn Openstack Heat Template for Mongo DB + +parameters: + ### + # server group and index + ### + server_group_id: + label: Server Group ID + description: ID of the server group + type: string + deploy_timeout: + label: Deployment Timeout + description: Timeout before declaring the stack deployment as failed. + type: number + constraints: + - range: { min: 60, max: 3600 } + + ### + # vnf info + ### + vnf_id: + label: VNF ID + description: Unique ID for this VF instance + type: string + vf_module_id: + label: VF Module ID + description: Unique ID for this VF Module instance + type: string + vm_role: + label: DB VM Role + description: VM Role for the db vms + type: string + + ### + # availability zone + ### + availability_zone_0: + label: Availability Zone + description: Name of the availability zone for this server + type: string + + ### + # database server networks, ips and hostnames + ### + db_name: + label: Database Hostname + description: Hostname of the database servers + type: string + oam_net_name: + label: OAM Network Name + description: Name of the oam network + type: string + db_oam_ip_0: + label: OAM IP Addresse + description: OAM IP Address of the database servers + type: string + + ### + # database common server info (flavor, image, keypair) + ### + db_flavor_name: + label: Flavor + description: Flavor to be used for the server + type: string + db_image_name: + label: Image + description: Image to be used for the server + type: string + keypair_id: + label: Key Name + description: Name of the security key for the server + type: string + + ### + # security groups + ### + security_group_ids: + label: Security Group IDs + description: IDs of the security groups for the server + type: comma_delimited_list + + ### + # database volume ids + ### + db_volume_id_0: + label: Data Volume IDs for disk 0 + description: IDs to be used for the database volume + type: string + db_volume_id_1: + label: Data Volume IDs for disk 1 + description: IDs to be used for the database volume + type: string + db_volume_id_2: + label: Data Volume IDs for disk 2 + description: IDs to be used for the database volume + type: string + db_volume_id_3: + label: Data Volume IDs for disk 3 + description: IDs to be used for the database volume + type: string + + +resources: + ### + # setup wait condition and handler for heat + ### + wait_condition: + type: OS::Heat::WaitCondition + properties: + handle: {get_resource: wait_handle} + timeout: {get_param: deploy_timeout } + + wait_handle: + type: OS::Heat::WaitConditionHandle + + ### + # software configuration + ### + db_config_complete: + type: OS::Heat::SoftwareConfig + properties: + group: ungrouped + config: + str_replace: + params: + wc_notify: { get_attr: ['wait_handle', 'curl_cli'] } + template: | + #!/bin/bash + echo "sending completion notification to heat" + wc_notify --data-binary '{"status":"SUCCESS"}' + + db_config: + type: OS::Heat::MultipartMime + properties: + parts: + - config: { get_resource: db_config_complete } + + ### + # create the database server + ### + db_server_0: + type: OS::Nova::Server + properties: + name: { get_param: db_name } + availability_zone: { get_param: availability_zone_0 } + scheduler_hints: + group: { get_param: server_group_id } + flavor: { get_param: db_flavor_name } + image: { get_param: db_image_name } + key_name: { get_param: keypair_id } + security_groups: { get_param: security_group_ids } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + vm_role: { get_param: vm_role } + networks: + - network: { get_param: oam_net_name } + fixed_ip: { get_param: db_oam_ip_0 } + user_data_format: RAW + #user_data: { get_resource: db_config } + user_data: + str_replace: + params: + wc_notify: { get_attr: ['wait_handle', 'curl_cli'] } + template: | + #!/bin/bash + ROOT_PW="dan1tom2" + ( + echo "$ROOT_PW" + echo "$ROOT_PW" + ) | passwd --stdin root + wc_notify --data-binary '{"status":"SUCCESS"}' + + ### + # attach the data volumes to the server + ### + db_volume_attachment_0: + type: OS::Cinder::VolumeAttachment + properties: + instance_uuid: { get_resource: db_server_0 } + volume_id: { get_param: db_volume_id_0 } + db_volume_attachment_1: + type: OS::Cinder::VolumeAttachment + properties: + instance_uuid: { get_resource: db_server_0 } + volume_id: { get_param: db_volume_id_1 } + db_volume_attachment_2: + type: OS::Cinder::VolumeAttachment + properties: + instance_uuid: { get_resource: db_server_0 } + volume_id: { get_param: db_volume_id_2 } + db_volume_attachment_3: + type: OS::Cinder::VolumeAttachment + properties: + instance_uuid: { get_resource: db_server_0 } + volume_id: { get_param: db_volume_id_3 } + + +outputs: + ### + # No outputs as the base_pronghorn is the only VNF component + ### |