X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fcinder%2Fspec%2Fdefines%2Fcinder_backend_hp3par_iscsi_spec.rb;fp=3rdparty%2Fmodules%2Fcinder%2Fspec%2Fdefines%2Fcinder_backend_hp3par_iscsi_spec.rb;h=dd2cb766edbdbc31010a7326ec22e2905300e26f;hp=0000000000000000000000000000000000000000;hb=4631045ebb77ee8622f6fa09277a50c372bcc02e;hpb=3d4dc4fd9e59bd0e07646c99f6b356c7d9d859aa diff --git a/3rdparty/modules/cinder/spec/defines/cinder_backend_hp3par_iscsi_spec.rb b/3rdparty/modules/cinder/spec/defines/cinder_backend_hp3par_iscsi_spec.rb new file mode 100644 index 00000000..dd2cb766 --- /dev/null +++ b/3rdparty/modules/cinder/spec/defines/cinder_backend_hp3par_iscsi_spec.rb @@ -0,0 +1,34 @@ +require 'spec_helper' + +describe 'cinder::backend::hp3par_iscsi' do + let (:title) { 'hp3par_iscsi' } + + let :req_params do + { + :hp3par_api_url => 'https://172.0.0.2:8080/api/v1', + :hp3par_username => '3paradm', + :hp3par_password => 'password', + :hp3par_iscsi_ips => '172.0.0.3', + :san_ip => '172.0.0.2', + :san_login => '3paradm', + :san_password => 'password', + } + end + + let :params do + req_params + end + + describe 'hp3par_iscsi volume driver' do + it 'configure hp3par_iscsi volume driver' do + should contain_cinder_config('hp3par_iscsi/volume_driver').with_value('cinder.volume.drivers.san.hp.hp_3par_iscsi.HP3PARISCSIDriver') + should contain_cinder_config('hp3par_iscsi/hp3par_api_url').with_value('https://172.0.0.2:8080/api/v1') + should contain_cinder_config('hp3par_iscsi/hp3par_username').with_value('3paradm') + should contain_cinder_config('hp3par_iscsi/hp3par_password').with_value('password') + should contain_cinder_config('hp3par_iscsi/hp3par_iscsi_ips').with_value('172.0.0.3') + should contain_cinder_config('hp3par_iscsi/san_ip').with_value('172.0.0.2') + should contain_cinder_config('hp3par_iscsi/san_login').with_value('3paradm') + should contain_cinder_config('hp3par_iscsi/san_password').with_value('password') + end + end +end