3 describe 'cinder::backend::iscsi' do
8 :iscsi_ip_address => '127.0.0.2',
9 :iscsi_helper => 'tgtadm',
14 {:osfamily => 'Debian'}
21 describe 'with default params' do
23 it 'should configure iscsi driver' do
24 should contain_cinder_config('hippo/volume_backend_name').with(
26 should contain_cinder_config('hippo/volume_driver').with(
27 :value => 'cinder.volume.drivers.lvm.LVMISCSIDriver')
28 should contain_cinder_config('hippo/iscsi_ip_address').with(
29 :value => '127.0.0.2')
30 should contain_cinder_config('hippo/iscsi_helper').with(
32 should contain_cinder_config('hippo/volume_group').with(
33 :value => 'cinder-volumes')
37 describe 'with RedHat' do
40 {:osfamily => 'RedHat'}
43 it { should contain_file_line('cinder include').with(
44 :line => 'include /etc/cinder/volumes/*',
45 :path => '/etc/tgt/targets.conf'