Sha256: eeda009777a6c867a32d9c99e87daf8e67c06b9105efea951842da8b75406f58

Contents?: true

Size: 800 Bytes

Versions: 32

Compression:

Stored size: 800 Bytes

Contents

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

  compute = Fog::Compute[:vsphere]

  tests('Cluster collection') do
    clusters = compute.datacenters.first.clusters

    test('should not be empty') { not clusters.empty? }
    test('should be a kind of Fog::Compute::Vsphere::Clusters') { clusters.kind_of? Fog::Compute::Vsphere::Clusters }
    test('should get a cluster') { clusters.get('Solutionscluster').id == '1d4d9a3f-e4e8-4c40-b7fc-263850068fa4' }
  end

  tests('A cluster should') do
    cluster = compute.datacenters.first.clusters.get('Solutionscluster')

    test('have datastores') { cluster.datastores.first.kind_of? Fog::Compute::Vsphere::Datastore }
    test('have networks') { cluster.networks.first.kind_of? Fog::Compute::Vsphere::Network }
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

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