1 # author 'Aimon Bustardo <abustardo at morphlabs dot com>'
2 # license 'Apache License 2.0'
3 # description 'configures openstack cinder nexenta driver'
6 describe 'cinder::volume::nexenta' do
9 { :nexenta_user => 'nexenta',
10 :nexenta_password => 'password',
11 :nexenta_host => '127.0.0.2' }
14 let :default_params do
15 { :nexenta_volume => 'cinder',
16 :nexenta_target_prefix => 'iqn:',
17 :nexenta_target_group_prefix => 'cinder/',
18 :nexenta_blocksize => '8k',
19 :nexenta_sparse => true }
23 { :osfamily => 'Debian' }
27 context 'with required params' do
29 default_params.merge(params)
32 it 'configures nexenta volume driver' do
33 params_hash.each_pair do |config, value|
34 should contain_cinder_config("DEFAULT/#{config}").with_value(value)
38 it 'marks nexenta_password as secret' do
39 should contain_cinder_config('DEFAULT/nexenta_password').with_secret( true )