diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in')
3 files changed, 252 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/MANIFEST.json new file mode 100644 index 0000000000..40c2b4c296 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/MANIFEST.json @@ -0,0 +1,17 @@ +{ + "name": "hot-mog", + "description": "HOT template to create hot mog server", + "version": "2013-05-23", + "data": [ + { + "file": "hot-mog-0108-bs1271.yml", + "type": "HEAT", + "data": [ + { + "file": "hot-mog-0108-bs1271.env", + "type": "HEAT_ENV" + } + ] + } + ] +} diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/hot-mog-0108-bs1271.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/hot-mog-0108-bs1271.env new file mode 100644 index 0000000000..40b3e20438 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/hot-mog-0108-bs1271.env @@ -0,0 +1,6 @@ +parameters: + pd_server_names: ZRDM1MOGX01MPD001,ZRDM1MOGX01MPD002 + pd_image_name: MOG_BASE_8.0 + pd_flavor_name: m3.xlarge + availabilityzone_name: nova + dummy_net_name_1: mog_dummy_1
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/hot-mog-0108-bs1271.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/hot-mog-0108-bs1271.yml new file mode 100644 index 0000000000..a60998e147 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/inputOutputParamType/in/hot-mog-0108-bs1271.yml @@ -0,0 +1,229 @@ +heat_template_version: 2013-05-23 + +description: heat template that creates MOG stack + +parameters: + pd_server_names: + type: comma_delimited_list + label: PD server names + description: name of the PD instance + pd_image_name: + type: string + label: image name + description: PD image name + pd_flavor_name: + type: string + label: PD flavor name + description: flavor name of PD instance + availabilityzone_name: + type: string + label: availabilityzone name + description: availabilityzone name + pd_security_group_name: + type: string + label: pd_security_group_name + description: pd_security_group_name + dummy_net_name_1: + type: string + label: csb ineternal cidr + description: csb internal cidr + lb_st_interface_type_oam: + description: dummy + type: string + lb_st_interface_vlan_tag_oam: + description: dummy + type: string + template_PortTuple_LB1: + description: dummy + type: string + oam_sec_group_name: + description: dummy + type: string + jsa_net_name: + description: dummy + type: string + nems_traffic_name: + description: dummy + type: string + pd_port_fixed_ips_address: + description: dummy + type: string + pd_port_fixed_ips_subnet: + description: dummy + type: string + mac_address: + description: dummy + type: string + virtual_ip_address: + description: dummy + type: string + virtual_ipv6_address: + description: dummy + type: string + parent_interface: + description: dummy + type: string + +resources: + server_pd_01: + type: OS::Nova::Server + properties: + name: {get_param: [pd_server_names, 0]} + image: {get_param: pd_image_name} + flavor: {get_param: pd_flavor_name} + availability_zone: {get_param: availabilityzone_name} + admin_pass: SERVER_PD_ADMIN_PASS + config_drive: true + diskConfig: AUTO + flavor_update_policy: REPLACE + image_update_policy: REBUILD_PRESERVE_EPHEMERAL + key_name: SERVER_PD_KEY_NAME + metadata: {value: SERVER_PD_METADATA} + personality: {value: SERVER_PD_PERSONALITY} + reservation_id: SERVER_PD_RESERVATION_ID + scheduler_hints: { group: { get_resource: DB_Affinity } } + security_groups: [{ get_param: pd_security_group_name }] + software_config_transport: POLL_SERVER_HEAT + user_data_update_policy: IGNORE + user_data_format: RAW + networks: + - port: {get_resource: pd01_port_0} + - port: {get_resource: template_VMInt_OAM_lb_4} + + pd01_port_0: + type: OS::Neutron::Port + properties: + network: PORT_PD_NETWORK + network_id: PORT_PD_NETWORK_ID + admin_state_up: true + allowed_address_pairs: [ + {ip_address: 10.12.13.134, mac_address: 00-14-22-01-23-45}, + {ip_address: 127.0.13.134, mac_address: 00-13-24-01-44-35} + ] + binding:vnic_type: direct-physical + device_id: PORT_PD_DEVICE_ID + device_owner: PORT_PD_DEVICE_OWNER + mac_address: 00-13-24-01-44-35 + name: PORT_PD_NAME + port_security_enabled: false + qos_policy: PORT_PD_QOS_POLICY + security_groups: [{get_resource: DB_Affinity}] + value_specs: {value: PORT_PD_VALUE_SPECS} + replacement_policy: AUTO + fixed_ips: + - ip_address: { get_param: pd_port_fixed_ips_address } + - subnet: {get_param: pd_port_fixed_ips_subnet} + + template_VMInt_OAM_lb_4: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam } + #virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_interface_vlan_tag_oam } + } + virtual_network_refs: [{ get_attr: [ jsa_net4, fq_name ] } ] + port_tuple_refs: [{ get_param: template_PortTuple_LB1 }] + security_group_refs: [{ get_param: oam_sec_group_name}] + name: template_VMInt_OAM_lb_NAME + virtual_machine_interface_mac_addresses: + { + virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }] + } + virtual_machine_interface_allowed_address_pairs: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [ + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32 + } + }, + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128 + } + } + ] + } + virtual_machine_interface_refs: [{ get_param: parent_interface }] + + cmaui_volume_test_compute_properties: + type: OS::Cinder::Volume + properties: + availability_zone: {get_attr: [server_pd_01, console_urls ] } + backup_id: {get_attr: [server_pd_01, instance_name ] } + description: {get_attr: [server_pd_01, show ] } + #image: {get_attr: [server_pd_01, config_drive ] } + #metadata: {get_attr: [server_pd_01, instance_name ] } + multiattach: {get_attr: [server_pd_01, addresses ] } + #name: {get_attr: [server_pd_01, image ] } + #read_only: false + #scheduler_hints: {get_attr: [server_pd_01, key_name ] } + #size: {get_attr: [server_pd_01, diskConfig ] } + #snapshot_id: {get_attr: [server_pd_01, name ] } + #source_volid: {get_attr: [server_pd_01, personality ] } + #volume_id: {get_attr: [server_pd_01, reservation_id ] } + #volume_type: {get_attr: [server_pd_01, scheduler_hints ] } + #delete_on_termination: {get_attr: [server_pd_01, security_groups ] } + #volume_size: {get_attr: [server_pd_01, software_config_transport ] } + #device_type: {get_attr: [server_pd_01, user_data_format ] } + #disk_bus: {get_attr: [server_pd_01, user_data_update_policy ] } + swap_size: {get_attr: [server_pd_01, accessIPv4 ] } + image_id: {get_attr: [server_pd_01, accessIPv6 ] } + + cmaui_volume_test_neutron_port_properties: + type: OS::Cinder::Volume + properties: + backup_id: {get_attr: [pd01_port_0, network ] } + image: {get_attr: [pd01_port_0, admin_state_up ] } + metadata: {get_attr: [pd01_port_0, allowed_address_pairs ] } + name: {get_attr: [pd01_port_0, device_id ] } + read_only: {get_attr: [pd01_port_0, device_owner ] } + scheduler_hints: {get_attr: [pd01_port_0, fixed_ips ] } + size: {get_attr: [pd01_port_0, mac_address ] } + snapshot_id: {get_attr: [pd01_port_0, name ] } + source_volid: {get_attr: [pd01_port_0, port_security_enabled ] } + volume_id: {get_attr: [pd01_port_0, qos_policy ] } + volume_type: {get_attr: [pd01_port_0, security_groups ] } + volume_size: {get_attr: [pd01_port_0, network_id ] } + device_type: {get_attr: [pd01_port_0, show ] } + delete_on_termination: {get_attr: [pd01_port_0, status ] } + disk_bus: {get_attr: [pd01_port_0, subnets ] } + swap_size: {get_attr: [pd01_port_0, tenant_id ] } + + cmaui_volume_test_contrailv2_VMI_properties: + type: OS::Cinder::Volume + properties: + availability_zone: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_mac_addresses, virtual_machine_interface_mac_addresses_mac_address ] } + description: {get_attr: [template_VMInt_OAM_lb_4, virtual_network_refs ] } + image: {get_attr: [template_VMInt_OAM_lb_4, port_tuple_refs ] } + metadata: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_mac_addresses ] } + multiattach: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_properties ] } + name: {get_attr: [template_VMInt_OAM_lb_4, name ] } + size: 50 + snapshot_id: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_allowed_address_pairs, virtual_machine_interface_allowed_address_pairs_allowed_address_pair, 0, virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode ] } + source_volid: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_allowed_address_pairs, virtual_machine_interface_allowed_address_pairs_allowed_address_pair, 0, virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac ] } + volume_id: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_allowed_address_pairs, virtual_machine_interface_allowed_address_pairs_allowed_address_pair, 0, virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip, virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix ] } + volume_type: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_allowed_address_pairs, virtual_machine_interface_allowed_address_pairs_allowed_address_pair, 0, virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip, virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len ] } + device_type: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_properties, virtual_machine_interface_properties_service_interface_type] } + disk_bus: {get_attr: [template_VMInt_OAM_lb_4, virtual_machine_interface_allowed_address_pairs, virtual_machine_interface_allowed_address_pairs_allowed_address_pair, 0, virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip ] } + delete_on_termination: {get_attr: [template_VMInt_OAM_lb_4, fq_name ] } + swap_size: {get_attr: [template_VMInt_OAM_lb_4, show ] } + + jsa_net4: + type: OS::Contrail::VirtualNetwork + properties: + name: {get_param: nems_traffic_name} + + DB_Affinity: + type: OS::Nova::ServerGroup + properties: + policies: ["anti-affinity"]
\ No newline at end of file |