
The Quobyte system is conceptionally similar to GlusterFS, which is why their Cinder driver is forked from the GlusterFS Cinder driver, so I have taken the same approach here. Change-Id: I5f207a2ca18bc039ad9d4a6036cec4ad84d5d5f5
44 lines
1.1 KiB
Ruby
44 lines
1.1 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'cinder::volume::quobyte' do
|
|
|
|
shared_examples_for 'quobyte volume driver' do
|
|
let :params do
|
|
{
|
|
:quobyte_volume_url => 'quobyte://quobyte.cluster.example.com/volume-name',
|
|
:quobyte_qcow2_volumes => false,
|
|
:quobyte_sparsed_volumes => true,
|
|
}
|
|
end
|
|
|
|
it 'configures quobyte volume driver' do
|
|
should contain_cinder_config('DEFAULT/volume_driver').with_value(
|
|
'cinder.volume.drivers.quobyte.QuobyteDriver')
|
|
should contain_cinder_config('DEFAULT/quobyte_volume_url').with_value(
|
|
'quobyte://quobyte.cluster.example.com/volume-name')
|
|
should contain_cinder_config('DEFAULT/quobyte_qcow2_volumes').with_value(
|
|
false)
|
|
should contain_cinder_config('DEFAULT/quobyte_sparsed_volumes').with_value(
|
|
true)
|
|
end
|
|
|
|
end
|
|
|
|
context 'on Debian platforms' do
|
|
let :facts do
|
|
{ :osfamily => 'Debian' }
|
|
end
|
|
|
|
it_configures 'quobyte volume driver'
|
|
end
|
|
|
|
context 'on RedHat platforms' do
|
|
let :facts do
|
|
{ :osfamily => 'RedHat' }
|
|
end
|
|
|
|
it_configures 'quobyte volume driver'
|
|
end
|
|
|
|
end
|