Sha256: 4659f06d89107d4ec7fe6ef860ffcbef8e682da52f25dc3f7cf0f87693898d84

Contents?: true

Size: 953 Bytes

Versions: 25

Compression:

Stored size: 953 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

25 entries across 25 versions & 4 rubygems

Version Path
fog-1.23.0 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.4 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.3 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.2 tests/xenserver/xenserver_tests.rb
fog-1.22.1 tests/xenserver/xenserver_tests.rb