Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec_helper'
- describe 'cinder::backend::eqlx' do
- let(:title) {'eqlx'}
- let :params do {
- :volume_backend_name => 'DEFAULT',
- :san_ip => '192.168.100.10',
- :san_login => 'grpadmin',
- :san_password => '12345',
- :san_thin_provision => true,
- :eqlx_group_name => 'group-a',
- :eqlx_pool => 'apool',
- :eqlx_use_chap => true,
- :eqlx_chap_login => 'chapadm',
- :eqlx_chap_password => '56789',
- :eqlx_cli_timeout => 31,
- :eqlx_cli_max_retries => 6,
- }
- end
- describe 'eqlx volume driver' do
- it 'configures eqlx volume driver' do
- should contain_cinder_config("#{params[:volume_backend_name]}/volume_driver").with_value('cinder.volume.drivers.eqlx.DellEQLSanISCSIDriver')
- should contain_cinder_config("#{params[:volume_backend_name]}/san_ip").with_value(params[:san_ip])
- should contain_cinder_config("#{params[:volume_backend_name]}/san_login").with_value(params[:san_login])
- should contain_cinder_config("#{params[:volume_backend_name]}/san_password").with_value(params[:san_password])
- should contain_cinder_config("#{params[:volume_backend_name]}/san_thin_provision").with_value(params[:san_thin_provision])
- should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_group_name").with_value(params[:eqlx_group_name])
- should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_pool").with_value(params[:eqlx_pool])
- should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_use_chap").with_value(params[:eqlx_use_chap])
- should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_chap_login").with_value(params[:eqlx_chap_login])
- should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_chap_password").with_value(params[:eqlx_chap_password])
- should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_cli_timeout").with_value(params[:eqlx_cli_timeout])
- should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_cli_max_retries").with_value(params[:eqlx_cli_max_retries])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement