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

Version Path
fog-1.22.0 tests/xenserver/xenserver_tests.rb
fog-1.21.0 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/xenserver/xenserver_tests.rb
fog-1.20.0 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/xenserver/xenserver_tests.rb
fog-1.19.0 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/xenserver/xenserver_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/xenserver/xenserver_tests.rb