Sha256: 64a064952988deefdd83ad4e602796fc39c38b978263d706b8ae3016e8af2387

Contents?: true

Size: 668 Bytes

Versions: 4

Compression:

Stored size: 668 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 tests/models/compute/servers_tests.rb
fog-vsphere-3.6.8 tests/models/compute/servers_tests.rb
fog-vsphere-3.6.7 tests/models/compute/servers_tests.rb
fog-vsphere-3.6.6 tests/models/compute/servers_tests.rb