Sha256: 00fed57cd7ed4509f373996ac4e4f41eb060b1f9af449549c57be355843cc159

Contents?: true

Size: 416 Bytes

Versions: 13

Compression:

Stored size: 416 Bytes

Contents

Shindo.tests('Fog::Compute[:vsphere] | list_hosts request', ['vsphere']) do
  compute = Fog::Compute[:vsphere]

  tests('The response should') do
    response = compute.list_hosts(datacenter: 'Solutions', cluster: 'Solutionscluster')
    test('be a kind of Array') { response.is_a? Array }
    test('contain Hashes') { response.all? { |i| Hash === i } }
    test('have 1 element') { response.length == 1 }
  end
end

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
fog-vsphere-3.7.0 tests/requests/compute/list_hosts_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/list_hosts_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/list_hosts_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/list_hosts_tests.rb
fog-vsphere-3.0.0 tests/requests/compute/list_hosts_tests.rb
fog-vsphere-2.5.0 tests/requests/compute/list_hosts_tests.rb
fog-vsphere-2.4.0 tests/requests/compute/list_hosts_tests.rb
fog-vsphere-2.3.0 tests/requests/compute/list_hosts_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/tests/requests/compute/list_hosts_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/tests/requests/compute/list_hosts_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/tests/requests/compute/list_hosts_tests.rb
fog-vsphere-2.2.0 tests/requests/compute/list_hosts_tests.rb
fog-vsphere-1.7.0.1 tests/requests/compute/list_hosts_tests.rb