Sha256: 342b483b0516146ea6e35411296dedd317c1515a227ca38f85da51c240b33afc
Contents?: true
Size: 954 Bytes
Versions: 78
Compression:
Stored size: 954 Bytes
Contents
Shindo.tests('Fog::Compute[:xenserver]', ['xenserver']) do tests("Login") do raises(Fog::XenServer::InvalidLogin, 'raises error when invalid password') do conn = Fog::Compute.new({ :provider => 'XenServer', :xenserver_url => 'xenserver-test', :xenserver_username => 'root', :xenserver_password => 'asdfsadf' }) end raises(Fog::XenServer::InvalidLogin, 'raises error when invalid user') do conn = Fog::Compute.new({ :provider => 'XenServer', :xenserver_url => 'xenserver-test', :xenserver_username => 'rootffff', :xenserver_password => 'changeme' }) end raises(SocketError, 'raises error when invalid host') do conn = Fog::Compute.new({ :provider => 'XenServer', :xenserver_url => 'xenserver-testlakjsdflkj', :xenserver_username => 'root', :xenserver_password => 'changeme' }) end end end
Version data entries
78 entries across 78 versions & 11 rubygems