40 lines
1001 B
Ruby
40 lines
1001 B
Ruby
# author 'Aimon Bustardo <abustardo at morphlabs dot com>'
|
|
# license 'Apache License 2.0'
|
|
# description 'configures openstack manila nexenta driver'
|
|
require 'spec_helper'
|
|
|
|
describe 'manila::backend::nexenta' do
|
|
let (:title) { 'nexenta' }
|
|
|
|
let :params do
|
|
{ :nexenta_user => 'nexenta',
|
|
:nexenta_password => 'password',
|
|
:nexenta_host => '127.0.0.2' }
|
|
end
|
|
|
|
let :default_params do
|
|
{ :nexenta_volume => 'manila',
|
|
:nexenta_target_prefix => 'iqn:',
|
|
:nexenta_target_group_prefix => 'manila/',
|
|
:nexenta_blocksize => '8k',
|
|
:nexenta_sparse => true }
|
|
end
|
|
|
|
let :facts do
|
|
{ :osfamily => 'Debian' }
|
|
end
|
|
|
|
|
|
context 'with required params' do
|
|
let :params_hash do
|
|
default_params.merge(params)
|
|
end
|
|
|
|
it 'configures nexenta volume driver' do
|
|
params_hash.each_pair do |config, value|
|
|
should contain_manila_config("nexenta/#{config}").with_value(value)
|
|
end
|
|
end
|
|
end
|
|
end
|