[VVP] enhance tests for nested templates
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_volume_resource_ids / fail / mismatch_vm_type_volume_id_nova_server_id_2.yaml
1 heat_template_version: 2015-04-30
2
3 description: Heat template description
4
5 parameters:
6
7   vnf_id:
8     type: string
9     description: Unique ID for this VNF instance
10
11   vf_module_id:
12     type: string
13     description: Unique ID for this VF module
14
15   vnf_name:
16     type: string
17     description: Unique name for this VNF instance
18
19   admin_names:
20     type: comma_delimited_list
21     description: Names attribute for the VMs
22
23   availability_zone_0:
24     type: string
25     description: availability zone to be used
26
27   admin_flavor_name:
28     type: string
29     description: flavor to be used to create this vm must be one of the following flavors
30
31   admin_volume_ids:
32     type: json
33     description: Unique IDs for volumes
34
35
36 resources:
37
38   admin_server_0:
39     type: OS::Nova::Server
40     properties:
41       availability_zone: { get_param: availability_zone_0 }
42       name: { get_param: [admin2_names, 0]  }
43       block_device_mapping: [{ device_name: "vda", volume_id: { get_param : [admin_volume_ids, 0] }, delete_on_termination : "false" }]
44       flavor: { get_param: admin2_flavor_name}
45       metadata:
46         vnf_name: { get_param: vnf_name }
47         vnf_id: { get_param: vnf_id }
48         vf_module_id: { get_param: vf_module_id }
49
50   admin_server_1:
51     type: OS::Nova::Server
52     properties:
53       availability_zone: { get_param: availability_zone_0 }
54       name: { get_param: [admin_names, 1]  }
55       block_device_mapping: [{ device_name: "vda", volume_id : { get_param : [admin_volume_ids, 1] }, delete_on_termination : "false" }]
56       flavor: { get_param: admin_flavor_name}
57       metadata:
58         vnf_name: { get_param: vnf_name }
59         vnf_id: { get_param: vnf_id }
60         vf_module_id: { get_param: vf_module_id }