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