
The patch adds support for VMware vmdk cinder driver. It also supports configuring the driver for multi-backend scenarios. implements blueprint support-vmdk-driver Change-Id: I3f50f9974100ceab2a991f692022dd918f2e4445
36 lines
1.0 KiB
Ruby
36 lines
1.0 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'cinder::vmware' do
|
|
|
|
let :params do
|
|
{:os_password => 'asdf',
|
|
:os_tenant_name => 'admin',
|
|
:os_username => 'admin',
|
|
:os_auth_url => 'http://127.127.127.1:5000/v2.0/'}
|
|
end
|
|
|
|
describe 'with defaults' do
|
|
it 'should create vmware special types' do
|
|
should contain_cinder__type('vmware-thin').with(
|
|
:set_key => 'vmware:vmdk_type',
|
|
:set_value => 'thin')
|
|
|
|
should contain_cinder__type('vmware-thick').with(
|
|
:set_key => 'vmware:vmdk_type',
|
|
:set_value => 'thick')
|
|
|
|
should contain_cinder__type('vmware-eagerZeroedThick').with(
|
|
:set_key => 'vmware:vmdk_type',
|
|
:set_value => 'eagerZeroedThick')
|
|
|
|
should contain_cinder__type('vmware-full').with(
|
|
:set_key => 'vmware:clone_type',
|
|
:set_value => 'full')
|
|
|
|
should contain_cinder__type('vmware-linked').with(
|
|
:set_key => 'vmware:clone_type',
|
|
:set_value => 'linked')
|
|
end
|
|
end
|
|
end
|