]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/cinder/spec/defines/cinder_backend_nexenta_spec.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / cinder / spec / defines / cinder_backend_nexenta_spec.rb
1 # author 'Aimon Bustardo <abustardo at morphlabs dot com>'
2 # license 'Apache License 2.0'
3 # description 'configures openstack cinder nexenta driver'
4 require 'spec_helper'
5
6 describe 'cinder::backend::nexenta' do
7   let (:title) { 'nexenta' }
8
9   let :params do
10     { :nexenta_user     => 'nexenta',
11       :nexenta_password => 'password',
12       :nexenta_host     => '127.0.0.2' }
13   end
14
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 }
21   end
22
23   let :facts do
24     { :osfamily => 'Debian' }
25   end
26
27
28   context 'with required params' do
29     let :params_hash do
30       default_params.merge(params)
31     end
32
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)
36       end
37     end
38   end
39 end