Advertisement
Guest User

eqlx spec test

a guest
Apr 21st, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. describe 'cinder::backend::eqlx' do
  4. let(:title) {'eqlx'}
  5.  
  6. let :params do {
  7. :volume_backend_name => 'DEFAULT',
  8. :san_ip => '192.168.100.10',
  9. :san_login => 'grpadmin',
  10. :san_password => '12345',
  11. :san_thin_provision => true,
  12. :eqlx_group_name => 'group-a',
  13. :eqlx_pool => 'apool',
  14. :eqlx_use_chap => true,
  15. :eqlx_chap_login => 'chapadm',
  16. :eqlx_chap_password => '56789',
  17. :eqlx_cli_timeout => 31,
  18. :eqlx_cli_max_retries => 6,
  19. }
  20. end
  21.  
  22. describe 'eqlx volume driver' do
  23. it 'configures eqlx volume driver' do
  24. should contain_cinder_config("#{params[:volume_backend_name]}/volume_driver").with_value('cinder.volume.drivers.eqlx.DellEQLSanISCSIDriver')
  25. should contain_cinder_config("#{params[:volume_backend_name]}/san_ip").with_value(params[:san_ip])
  26. should contain_cinder_config("#{params[:volume_backend_name]}/san_login").with_value(params[:san_login])
  27. should contain_cinder_config("#{params[:volume_backend_name]}/san_password").with_value(params[:san_password])
  28. should contain_cinder_config("#{params[:volume_backend_name]}/san_thin_provision").with_value(params[:san_thin_provision])
  29. should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_group_name").with_value(params[:eqlx_group_name])
  30. should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_pool").with_value(params[:eqlx_pool])
  31. should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_use_chap").with_value(params[:eqlx_use_chap])
  32. should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_chap_login").with_value(params[:eqlx_chap_login])
  33. should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_chap_password").with_value(params[:eqlx_chap_password])
  34. should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_cli_timeout").with_value(params[:eqlx_cli_timeout])
  35. should contain_cinder_config("#{params[:volume_backend_name]}/eqlx_cli_max_retries").with_value(params[:eqlx_cli_max_retries])
  36. end
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement