X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fcinder%2Fspec%2Fdefines%2Fcinder_backend_iscsi_spec.rb;fp=3rdparty%2Fmodules%2Fcinder%2Fspec%2Fdefines%2Fcinder_backend_iscsi_spec.rb;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=1006d747814101f56ca9282ba9ed931171be505b;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/cinder/spec/defines/cinder_backend_iscsi_spec.rb b/3rdparty/modules/cinder/spec/defines/cinder_backend_iscsi_spec.rb deleted file mode 100644 index 1006d7478..000000000 --- a/3rdparty/modules/cinder/spec/defines/cinder_backend_iscsi_spec.rb +++ /dev/null @@ -1,50 +0,0 @@ -require 'spec_helper' - -describe 'cinder::backend::iscsi' do - - let(:title) {'hippo'} - - let :req_params do { - :iscsi_ip_address => '127.0.0.2', - :iscsi_helper => 'tgtadm', - } - end - - let :facts do - {:osfamily => 'Debian'} - end - - let :params do - req_params - end - - describe 'with default params' do - - it 'should configure iscsi 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.lvm.LVMISCSIDriver') - should contain_cinder_config('hippo/iscsi_ip_address').with( - :value => '127.0.0.2') - should contain_cinder_config('hippo/iscsi_helper').with( - :value => 'tgtadm') - should contain_cinder_config('hippo/volume_group').with( - :value => 'cinder-volumes') - end - end - - describe 'with RedHat' do - - let :facts do - {:osfamily => 'RedHat'} - end - - it { should contain_file_line('cinder include').with( - :line => 'include /etc/cinder/volumes/*', - :path => '/etc/tgt/targets.conf' - ) } - - end - -end