Sha256: 634e183d2ec3db1ad7f1519779428e8d130d016eba1ce293b942628a24197143

Contents?: true

Size: 424 Bytes

Versions: 32

Compression:

Stored size: 424 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.kind_of? Array }
    test('contain Hashes') { response.all? { |i| Hash === i } }
    test("have 1 element") {response.length == 1}
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

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