diff options
author | 2015-12-19 08:38:21 +0000 | |
---|---|---|
committer | 2015-12-19 08:38:21 +0000 | |
commit | ec0ee75e9576319f0bf1e4bc2a41dea099fbbce7 (patch) | |
tree | 9d5bb5cc177b7c9fd529aa44d75d699cd30f2a9b /testcases/VIM/OpenStack/CI/rally_cert/scenario/templates/server_with_volume.yaml.template | |
parent | 1603c0810fbfc872dada41e5af84e7b5587169e9 (diff) | |
parent | 955b592a7d4aab0a9685bd19bf77f959f59ffd22 (diff) |
Merge "Parameterize Rally scenarios"
Diffstat (limited to 'testcases/VIM/OpenStack/CI/rally_cert/scenario/templates/server_with_volume.yaml.template')
-rw-r--r-- | testcases/VIM/OpenStack/CI/rally_cert/scenario/templates/server_with_volume.yaml.template | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testcases/VIM/OpenStack/CI/rally_cert/scenario/templates/server_with_volume.yaml.template b/testcases/VIM/OpenStack/CI/rally_cert/scenario/templates/server_with_volume.yaml.template new file mode 100644 index 000000000..23c882714 --- /dev/null +++ b/testcases/VIM/OpenStack/CI/rally_cert/scenario/templates/server_with_volume.yaml.template @@ -0,0 +1,39 @@ +heat_template_version: 2013-05-23 + +parameters: + # set all correct defaults for parameters before launch test + image: + type: string + default: cirros-0.3.4-x86_64-uec + flavor: + type: string + default: m1.tiny + availability_zone: + type: string + description: The Availability Zone to launch the instance. + default: nova + volume_size: + type: number + description: Size of the volume to be created. + default: 1 + constraints: + - range: { min: 1, max: 1024 } + description: must be between 1 and 1024 Gb. + +resources: + server: + type: OS::Nova::Server + properties: + image: {get_param: image} + flavor: {get_param: flavor} + cinder_volume: + type: OS::Cinder::Volume + properties: + size: { get_param: volume_size } + availability_zone: { get_param: availability_zone } + volume_attachment: + type: OS::Cinder::VolumeAttachment + properties: + volume_id: { get_resource: cinder_volume } + instance_uuid: { get_resource: server} + mountpoint: /dev/vdc |