7056136261989d8f404a98fb4d10d09b5edbb3c5
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / spec / classes / cinder_vmware_spec.rb
1 require 'spec_helper'
2
3 describe 'cinder::vmware' do
4
5   let :params do
6     {:os_password => 'asdf',
7      :os_tenant_name => 'admin',
8      :os_username => 'admin',
9      :os_auth_url => 'http://127.127.127.1:5000/v2.0/'}
10   end
11
12   describe 'with defaults' do
13     it 'should create vmware special types' do
14       should contain_cinder__type('vmware-thin').with(
15                  :set_key => 'vmware:vmdk_type',
16                  :set_value => 'thin')
17
18       should contain_cinder__type('vmware-thick').with(
19                  :set_key => 'vmware:vmdk_type',
20                  :set_value => 'thick')
21
22       should contain_cinder__type('vmware-eagerZeroedThick').with(
23                  :set_key => 'vmware:vmdk_type',
24                  :set_value => 'eagerZeroedThick')
25
26       should contain_cinder__type('vmware-full').with(
27                  :set_key => 'vmware:clone_type',
28                  :set_value => 'full')
29
30       should contain_cinder__type('vmware-linked').with(
31                  :set_key => 'vmware:clone_type',
32                  :set_value => 'linked')
33     end
34   end
35 end