Added rspec test for netapp volume support
This commit is contained in:
parent
d4b7f2132f
commit
1586f940d4
30
spec/classes/cinder_volume_netapp_spec.rb
Normal file
30
spec/classes/cinder_volume_netapp_spec.rb
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe 'cinder::volume::netapp' do
|
||||||
|
|
||||||
|
let :req_params do {
|
||||||
|
:netapp_wsdl_url => 'http://127.0.0.1/dfm.wsdl',
|
||||||
|
:netapp_login => 'netapp',
|
||||||
|
:netapp_password => 'password',
|
||||||
|
:netapp_server_hostname => '127.0.0.2',
|
||||||
|
:netapp_storage_service => 'OpenStack',
|
||||||
|
} end
|
||||||
|
|
||||||
|
let :default_params do {
|
||||||
|
:netapp_server_port => '8088',
|
||||||
|
:netapp_storage_service_prefix => 'openstack',
|
||||||
|
} end
|
||||||
|
|
||||||
|
describe 'with default params' do
|
||||||
|
|
||||||
|
let :params_hash do
|
||||||
|
default_params.merge(req_params)
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'should lay down netapp config' do
|
||||||
|
params_hash.keys do |config|
|
||||||
|
should contain_cinder_config("DEFAULT/#{config}").with_value(param_hash[config])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user