summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/expectedoutputfiles/MainServiceTemplate.yaml185
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/inputfiles/MANIFEST.json11
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/inputfiles/hot_template.yml131
3 files changed, 327 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..bbefd39756
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,185 @@
+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.QRouter:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ tenant_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: Name of tenant to be used
+ oam_private_net_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: A string specifying a symbolic name for the network
+ packet_internal_network_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: A string specifying a symbolic name for the network
+ packet_mirror_network_subnet_alloc_start:
+ hidden: false
+ immutable: false
+ type: string
+ description: Start address for the allocation pool
+ packet_mirror_network_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: A string specifying a symbolic name for the network
+ base_image_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: The base ID or name of the image to boot with
+ cdr_network:
+ hidden: false
+ immutable: false
+ type: string
+ description: A string specifying a symbolic name for the network
+ packet_internal_network_subnet_alloc_start:
+ hidden: false
+ immutable: false
+ type: string
+ description: Start address for the allocation pool
+ packet_internal_network_subnet_alloc_end:
+ hidden: false
+ immutable: false
+ type: string
+ description: End address for the allocation pool
+ domain_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: The servers domain
+ packet_mirror_network_subnet_alloc_end:
+ hidden: false
+ immutable: false
+ type: string
+ description: End address for the allocation pool
+ packet_internal_network_subnet_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: The name of the subnet
+ packet_mirror_network_subnet_cidr:
+ hidden: false
+ immutable: false
+ type: string
+ description: The Classless Inter-Domain Routing
+ availability_zone_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: Name of the availability zone for server placement
+ packet_internal_network_subnet_cidr:
+ hidden: false
+ immutable: false
+ type: string
+ description: The Classless Inter-Domain Routing
+ region_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: Name of region to be used
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: Name of the availability zone for server placement
+ manager_name_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: VM Name for Manager VM 0
+ manager_oam_direct_ip_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: The public ip address of the manager
+ packet_mirror_network_subnet_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: The name of the subnet
+ rpmrepository_ip_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: The public ip address of the repository
+ node_templates:
+ packet_mirror_network:
+ type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
+ properties:
+ network_name:
+ get_input: packet_mirror_network_name
+ QRouter:
+ type: org.openecomp.resource.vfc.nodes.heat.QRouter
+ properties:
+ flavor: FLAVOR-test
+ availability_zone: Availability-test
+ image: Image-test
+ config_drive: true
+ name: QRouter-name
+ packet_internal_network:
+ type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
+ properties:
+ network_name:
+ get_input: packet_internal_network_name
+ cdr_network_port:
+ 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: false
+ network:
+ get_input: cdr_network
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: QRouter
+ relationship: tosca.relationships.network.BindsTo
+ oam_private_net_network_port:
+ 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: false
+ network_role_tag: oam_private
+ network:
+ get_input: oam_private_net_name
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: QRouter
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ input_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/input.yaml
+ members:
+ - packet_mirror_network
+ - QRouter
+ - packet_internal_network
+ - cdr_network_port
+ - oam_private_net_network_port \ 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/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..b2916ccf9c
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/inputfiles/MANIFEST.json
@@ -0,0 +1,11 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "hot_template.yml",
+ "type": "HEAT"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/inputfiles/hot_template.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/inputfiles/hot_template.yml
new file mode 100644
index 0000000000..fcae3c73dc
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/buildconsolidationdata/dependsonresource/invalidDependencyCandidate/inputfiles/hot_template.yml
@@ -0,0 +1,131 @@
+heat_template_version: 2013-05-23
+
+#################################
+#
+# Changes from MSO 01/26/2016
+# Updated per OPENECOMP feedback
+#
+#################################
+
+description: cmaui server template for vMMSC
+
+parameters:
+ vnf_id:
+ type: string
+ description: Unique ID for this VNF instance
+ default: This_is_ths_MMSC-CMAUI_id
+ cmaui_names:
+ type: comma_delimited_list
+ description: CMAUI1, CMAUI2 server names
+ cmaui_image:
+ type: string
+ description: Image for CMAUI server
+ cmaui_flavor:
+ type: string
+ description: Flavor for CMAUI server
+ cmaui_cinder_volume_size:
+ type: number
+ label: CMAUI Cinder volume size
+ description: the size of the CMAUI Cinder volume
+ availability_zone_0:
+ type: string
+ label: availabilityzone name
+ description: availabilityzone name
+ oam_net_name:
+ type: string
+ description: UID of OAM network
+ oam_network_netmask:
+ type: string
+ label: oam network netmask
+ description: oam network gateway
+ oam_network_gateway:
+ type: string
+ label: oam network gateway
+ description: oam network gateway
+ external_dns:
+ type: string
+ label: dns server
+ description: dns server
+ external_ntp:
+ type: string
+ label: ntp server
+ description: ntp server
+ security_group_name:
+ type: string
+ label: security group name
+ description: the name of security group
+ timezone:
+ type: string
+ label: timezone
+ description: timezone
+ cmaui_oam_ips:
+ type: comma_delimited_list
+ label: CMAUI oam_net IP addresses
+ description: CMAUI oam_net IP addresses
+ CMAUI_volume_type:
+ type: string
+ label: CMAUI vm volume type
+ description: the name of the target volume backend
+
+resources:
+
+ cmaui_port_0:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: oam_net_name }
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ security_groups: [{get_param: security_group_name}]
+ replacement_policy: AUTO
+
+ cmaui_volume:
+ type: OS::Cinder::Volume
+ properties:
+ size: {get_param: cmaui_cinder_volume_size}
+ volume_type: {get_param: CMAUI_volume_type}
+
+ cmaui_volume_attachment:
+ type: OS::Cinder::VolumeAttachment
+ properties:
+ volume_id: {get_resource: cmaui_volume}
+ instance_uuid: {get_resource: server_cmaui}
+
+ server_cmaui:
+ type: OS::Nova::Server
+ depends_on: [ cmaui_volume,cmaui_port_0]
+ properties:
+ name: { get_param: [cmaui_names, 0]}
+ image: { get_param: cmaui_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_0 }
+ metadata:
+ vnf_id: { get_param: vnf_id }
+ user_data:
+ str_replace:
+ template: |
+ cmaui.mgmt.ip=${cmaui.mgmt.ip}
+ cmaui.mgmt.netmask=${cmaui.mgmt.netmask}
+ cmaui.mgmt.gateway=${cmaui.mgmt.gateway}
+ cmaui.external.dns=${cmaui.external.dns}
+ cmaui.external.ntp=${cmaui.external.ntp}
+ cmaui.node=${cmaui.node}
+ cmaui.timezone=${cmaui.timezone}
+ params:
+ ${cmaui.mgmt.ip}: {get_param: [cmaui_oam_ips, 0]}
+ ${cmaui.mgmt.netmask}: {get_param: oam_network_netmask}
+ ${cmaui.mgmt.gateway}: {get_param: oam_network_gateway}
+ ${cmaui.external.dns}: {get_param: external_dns}
+ ${cmaui.external.ntp}: {get_param: external_ntp}
+ ${cmaui.node}: {get_param: [cmaui_names, 0]}
+ ${cmaui.timezone}: {get_param: timezone}
+ user_data_format: RAW
+
+ server_dependOnString:
+ type: OS::Nova::Server
+ depends_on: cmaui_volume
+ properties:
+ name: { get_param: [cmaui_names, 0]}
+ image: { get_param: cmaui_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_flavor }