
Add support for the tuning options for multipath device I/O which were added in os-brick 6.9.0[1]. [1] 639f953194cdc07b1e6aff1fc1ca2a7bc9d28536 Change-Id: I38892c1d2c140af6e1df32de4c2e38ea4246eff0
46 lines
1.4 KiB
Ruby
46 lines
1.4 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'oslo::os_brick' do
|
|
|
|
let (:title) { 'keystone_config' }
|
|
|
|
shared_examples 'oslo::os_brick' do
|
|
|
|
context 'with defaults' do
|
|
it 'configures the default values' do
|
|
is_expected.to contain_keystone_config('os_brick/lock_path').with_value('<SERVICE DEFAULT>')
|
|
is_expected.to contain_keystone_config('os_brick/wait_mpath_device_attempts').with_value('<SERVICE DEFAULT>')
|
|
is_expected.to contain_keystone_config('os_brick/wait_mpath_device_interval').with_value('<SERVICE DEFAULT>')
|
|
end
|
|
end
|
|
|
|
context 'with parameters overridden' do
|
|
let :params do
|
|
{
|
|
:lock_path => '/var/lib/openstack/lock',
|
|
:wait_mpath_device_attempts => 4,
|
|
:wait_mpath_device_interval => 1,
|
|
}
|
|
end
|
|
|
|
it 'configures the overridden values' do
|
|
is_expected.to contain_keystone_config('os_brick/lock_path').with_value('/var/lib/openstack/lock')
|
|
is_expected.to contain_keystone_config('os_brick/wait_mpath_device_attempts').with_value(4)
|
|
is_expected.to contain_keystone_config('os_brick/wait_mpath_device_interval').with_value(1)
|
|
end
|
|
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
|
|
|
|
include_examples 'oslo::os_brick'
|
|
end
|
|
end
|
|
end
|