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::backend::nexenta' do
7 let (:title) { 'nexenta' }
10 { :nexenta_user => 'nexenta',
11 :nexenta_password => 'password',
12 :nexenta_host => '127.0.0.2' }
15 let :default_params do
16 { :nexenta_volume => 'cinder',
17 :nexenta_target_prefix => 'iqn:',
18 :nexenta_target_group_prefix => 'cinder/',
19 :nexenta_blocksize => '8k',
20 :nexenta_sparse => true }
24 { :osfamily => 'Debian' }
28 context 'with required params' do
30 default_params.merge(params)
33 it 'configures nexenta volume driver' do
34 params_hash.each_pair do |config, value|
35 should contain_cinder_config("nexenta/#{config}").with_value(value)