Sha256: 31886194fbf546bd232f33ec5f32819340409af5e19b7c2c13baec844d083c1e

Contents?: true

Size: 498 Bytes

Versions: 5

Compression:

Stored size: 498 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') { !hosts.empty? }
    test('should be a kind of Fog::Vsphere::Compute::Hosts') { hosts.is_a? Fog::Vsphere::Compute::Hosts }
    test('should get hosts') { hosts.get('host1.example.com').name == 'host1.example.com' }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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