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
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/xenserver/xenserver_tests.rb
fog-1.34.0 tests/xenserver/xenserver_tests.rb
fog-1.33.0 tests/xenserver/xenserver_tests.rb
fog-1.32.0 tests/xenserver/xenserver_tests.rb
fog-1.31.0 tests/xenserver/xenserver_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/xenserver/xenserver_tests.rb
fog-1.30.0 tests/xenserver/xenserver_tests.rb
fog-1.29.0 tests/xenserver/xenserver_tests.rb
fog-1.28.0 tests/xenserver/xenserver_tests.rb
fog-1.27.0 tests/xenserver/xenserver_tests.rb
fog-1.26.0 tests/xenserver/xenserver_tests.rb
fog-1.25.0 tests/xenserver/xenserver_tests.rb
nsidc-fog-1.24.1 tests/xenserver/xenserver_tests.rb
fog-1.24.0 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.11 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.10 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.9 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.8 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.7 tests/xenserver/xenserver_tests.rb
ns-fog-1.22.6 tests/xenserver/xenserver_tests.rb