
- According the Michael comments on review¹, the conditional statements was re-added (in order to not pass « False » in ini config file). - Fix spec/defines/* warnings (Space interpreted as grouped expression) ¹https://review.openstack.org/#/c/73892/2/manifests/backend/rbd.pp Change-Id: I4ef5cbffdc611c011bccb9b400df27830d51343e
43 lines
1.4 KiB
Ruby
43 lines
1.4 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'cinder::backend::nfs' do
|
|
|
|
let(:title) {'hippo'}
|
|
|
|
let :params do
|
|
{
|
|
:nfs_servers => ['10.10.10.10:/shares', '10.10.10.10:/shares2'],
|
|
:nfs_mount_options => 'vers=3',
|
|
:nfs_shares_config => '/etc/cinder/other_shares.conf',
|
|
:nfs_disk_util => 'du',
|
|
:nfs_sparsed_volumes => true,
|
|
:nfs_mount_point_base => '/cinder_mount_point',
|
|
}
|
|
end
|
|
|
|
describe 'nfs volume driver' do
|
|
|
|
it 'configures nfs volume driver' do
|
|
should contain_cinder_config('hippo/volume_backend_name').with(
|
|
:value => 'hippo')
|
|
should contain_cinder_config('hippo/volume_driver').with_value(
|
|
'cinder.volume.drivers.nfs.NfsDriver')
|
|
should contain_cinder_config('hippo/nfs_shares_config').with_value(
|
|
'/etc/cinder/other_shares.conf')
|
|
should contain_cinder_config('hippo/nfs_mount_options').with_value(
|
|
'vers=3')
|
|
should contain_cinder_config('hippo/nfs_sparsed_volumes').with_value(
|
|
true)
|
|
should contain_cinder_config('hippo/nfs_mount_point_base').with_value(
|
|
'/cinder_mount_point')
|
|
should contain_cinder_config('hippo/nfs_disk_util').with_value(
|
|
'du')
|
|
should contain_file('/etc/cinder/other_shares.conf').with(
|
|
:content => "10.10.10.10:/shares\n10.10.10.10:/shares2",
|
|
:require => 'Package[cinder]',
|
|
:notify => 'Service[cinder-volume]'
|
|
)
|
|
end
|
|
end
|
|
end
|