Adapt Parser test case to the new template
[functest.git] / functest / opnfv_tests / OpenStack / rally / scenario / templates / server_with_volume.yaml.template
1 heat_template_version: 2013-05-23
2
3 parameters:
4   # set all correct defaults for parameters before launch test
5   image:
6     type: string
7     default: cirros-0.3.4-x86_64-uec
8   flavor:
9     type: string
10     default: m1.tiny
11   availability_zone:
12     type: string
13     description: The Availability Zone to launch the instance.
14     default: nova
15   volume_size:
16     type: number
17     description: Size of the volume to be created.
18     default: 1
19     constraints:
20       - range: { min: 1, max: 1024 }
21         description: must be between 1 and 1024 Gb.
22   network_id:
23     type: string
24
25 resources:
26   server:
27     type: OS::Nova::Server
28     properties:
29       image: {get_param: image}
30       flavor: {get_param: flavor}
31       networks:
32         - network: { get_param: network_id }
33   cinder_volume:
34     type: OS::Cinder::Volume
35     properties:
36       size: { get_param: volume_size }
37       availability_zone: { get_param: availability_zone }
38   volume_attachment:
39     type: OS::Cinder::VolumeAttachment
40     properties:
41       volume_id: { get_resource: cinder_volume }
42       instance_uuid: { get_resource: server}
43       mountpoint: /dev/vdc