
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: I7de4bd06c59b921c8774accf462db1cf434d5cf6
35 lines
1006 B
Ruby
35 lines
1006 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'manila::share::glusterfs' do
|
|
|
|
shared_examples_for 'glusterfs share driver' do
|
|
let :params do
|
|
{
|
|
:glusterfs_volumes_config => '/etc/manila/glusterfs_volumes',
|
|
:glusterfs_mount_point_base => '$state_path/mnt',
|
|
}
|
|
end
|
|
|
|
it 'configures glusterfs share driver' do
|
|
is_expected.to contain_manila_config('DEFAULT/share_driver').with_value(
|
|
'manila.share.drivers.glusterfs.GlusterfsShareDriver')
|
|
is_expected.to contain_manila_config('DEFAULT/glusterfs_volumes_config').with_value(
|
|
'/etc/manila/glusterfs_volumes')
|
|
is_expected.to contain_manila_config('DEFAULT/glusterfs_mount_point_base').with_value(
|
|
'$state_path/mnt')
|
|
end
|
|
|
|
end
|
|
|
|
on_supported_os({
|
|
:supported_os => OSDefaults.get_supported_os
|
|
}).each do |os,facts|
|
|
context "on #{os}" do
|
|
let (:facts) do
|
|
facts.merge!(OSDefaults.get_facts())
|
|
end
|
|
it_behaves_like 'glusterfs share driver'
|
|
end
|
|
end
|
|
end
|