Sha256: 31adefff0082555543a3fed603149353584081e1dbee700ed36231740c8abcdf

Contents?: true

Size: 506 Bytes

Versions: 32

Compression:

Stored size: 506 Bytes

Contents

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

  compute = Fog::Compute[:vsphere]
  cluster = compute.datacenters.first.clusters.get('Solutionscluster')
  hosts = cluster.hosts

  tests('The hosts collection') do
    test('should not be empty') { not hosts.empty? }
    test('should be a kind of Fog::Compute::Vsphere::Hosts') { hosts.kind_of? Fog::Compute::Vsphere::Hosts }
    test('should get hosts') { hosts.get('host1.example.com').name == 'host1.example.com' }
  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
fog-vsphere-2.1.1 tests/models/compute/hosts_tests.rb
fog-vsphere-2.1.0 tests/models/compute/hosts_tests.rb
fog-vsphere-2.0.1 tests/models/compute/hosts_tests.rb
fog-vsphere-2.0.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.13.1 tests/models/compute/hosts_tests.rb
fog-vsphere-1.13.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.12.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.11.3 tests/models/compute/hosts_tests.rb
fog-vsphere-1.11.2 tests/models/compute/hosts_tests.rb
fog-vsphere-1.11.1 tests/models/compute/hosts_tests.rb
fog-vsphere-1.11.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.10.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.9.2 tests/models/compute/hosts_tests.rb
fog-vsphere-1.9.1 tests/models/compute/hosts_tests.rb
fog-vsphere-1.9.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.8.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.7.1 tests/models/compute/hosts_tests.rb
fog-vsphere-1.7.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.6.0 tests/models/compute/hosts_tests.rb
fog-vsphere-1.5.2 tests/models/compute/hosts_tests.rb