Sha256: 74b51382087c69e0f4d74fcb3a4ecd981b2d62666341bfaf5ed8b48cce54e17b

Contents?: true

Size: 633 Bytes

Versions: 8

Compression:

Stored size: 633 Bytes

Contents

Shindo.tests('Fog::Compute[:vsphere] | servers collection', ['vsphere']) do
  servers = Fog::Compute[:vsphere].servers

  tests('The servers collection') do
    test('should not be empty') { !servers.empty? }
    test('should be a kind of Fog::Compute::Vsphere::Servers') { servers.is_a? Fog::Compute::Vsphere::Servers }
    tests('should be able to reload itself').succeeds { servers.reload }
    tests('should be able to get a model') do
      tests('by managed object reference').succeeds { servers.get 'jefftest' }
      tests('by instance uuid').succeeds { servers.get '5032c8a5-9c5e-ba7a-3804-832a03e16381' }
    end
  end
end

Version data entries

8 entries across 6 versions & 2 rubygems

Version Path
fog-vsphere-2.5.0 tests/models/compute/servers_tests.rb
fog-vsphere-2.4.0 tests/models/compute/servers_tests.rb
fog-vsphere-2.3.0 tests/models/compute/servers_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/tests/models/compute/servers_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/tests/models/compute/servers_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/tests/models/compute/servers_tests.rb
fog-vsphere-2.2.0 tests/models/compute/servers_tests.rb
fog-vsphere-1.7.0.1 tests/models/compute/servers_tests.rb