try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / spec / defines / cinder_backend_hp3par_iscsi_spec.rb
1 require 'spec_helper'
2
3 describe 'cinder::backend::hp3par_iscsi' do
4   let (:title) { 'hp3par_iscsi' }
5
6   let :req_params do
7     {
8       :hp3par_api_url   => 'https://172.0.0.2:8080/api/v1',
9       :hp3par_username  => '3paradm',
10       :hp3par_password  => 'password',
11       :hp3par_iscsi_ips => '172.0.0.3',
12       :san_ip           => '172.0.0.2',
13       :san_login        => '3paradm',
14       :san_password     => 'password',
15     }
16   end
17
18   let :params do
19     req_params
20   end
21
22   describe 'hp3par_iscsi volume driver' do
23     it 'configure hp3par_iscsi volume driver' do
24       should contain_cinder_config('hp3par_iscsi/volume_driver').with_value('cinder.volume.drivers.san.hp.hp_3par_iscsi.HP3PARISCSIDriver')
25       should contain_cinder_config('hp3par_iscsi/hp3par_api_url').with_value('https://172.0.0.2:8080/api/v1')
26       should contain_cinder_config('hp3par_iscsi/hp3par_username').with_value('3paradm')
27       should contain_cinder_config('hp3par_iscsi/hp3par_password').with_value('password')
28       should contain_cinder_config('hp3par_iscsi/hp3par_iscsi_ips').with_value('172.0.0.3')
29       should contain_cinder_config('hp3par_iscsi/san_ip').with_value('172.0.0.2')
30       should contain_cinder_config('hp3par_iscsi/san_login').with_value('3paradm')
31       should contain_cinder_config('hp3par_iscsi/san_password').with_value('password')
32     end
33   end
34 end