
We have define classes, which allow to manage Cinder types and their properties. This patch switches using of define classes to puppet providers, based on openstack auth from openstacklib. related blueprint use-openstackclient-in-module-resources Change-Id: I4f7e8137fa3e1ad3e141c58eaba110b12101d22c
29 lines
999 B
Ruby
29 lines
999 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'cinder::vmware' do
|
|
|
|
describe 'with defaults' do
|
|
it 'should create vmware special types' do
|
|
is_expected.to contain_cinder_type('vmware-thin').with(
|
|
:ensure => :present,
|
|
:properties => ['vmware:vmdk_type=thin'])
|
|
|
|
is_expected.to contain_cinder_type('vmware-thick').with(
|
|
:ensure => :present,
|
|
:properties => ['vmware:vmdk_type=thick'])
|
|
|
|
is_expected.to contain_cinder_type('vmware-eagerZeroedThick').with(
|
|
:ensure => :present,
|
|
:properties => ['vmware:vmdk_type=eagerZeroedThick'])
|
|
|
|
is_expected.to contain_cinder_type('vmware-full').with(
|
|
:ensure => :present,
|
|
:properties => ['vmware:clone_type=full'])
|
|
|
|
is_expected.to contain_cinder_type('vmware-linked').with(
|
|
:ensure => :present,
|
|
:properties => ['vmware:clone_type=linked'])
|
|
end
|
|
end
|
|
end
|