try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / spec / classes / cinder_volume_emc_vnx_spec.rb
1 require 'spec_helper'
2
3 describe 'cinder::volume::emc_vnx' do
4   let :req_params do
5     {
6       :san_ip                => '127.0.0.2',
7       :san_login             => 'emc',
8       :san_password          => 'password',
9       :iscsi_ip_address      => '127.0.0.3',
10       :storage_vnx_pool_name => 'emc-storage-pool'
11     }
12   end
13
14   let :facts do
15     {:osfamily => 'Redhat' }
16   end
17
18   let :params do
19     req_params
20   end
21
22   describe 'emc vnx volume driver' do
23     it 'configure emc vnx volume driver' do
24       should contain_cinder_config('DEFAULT/volume_driver').with_value('cinder.volume.drivers.emc.emc_cli_iscsi.EMCCLIISCSIDriver')
25       should contain_cinder_config('DEFAULT/san_ip').with_value('127.0.0.2')
26       should contain_cinder_config('DEFAULT/san_login').with_value('emc')
27       should contain_cinder_config('DEFAULT/san_password').with_value('password')
28       should contain_cinder_config('DEFAULT/iscsi_ip_address').with_value('127.0.0.3')
29       should contain_cinder_config('DEFAULT/storage_vnx_pool_name').with_value('emc-storage-pool')
30     end
31   end
32 end