Sha256: f1b2e7974bf87956c2d4f3dbe3771176008b7a540876c343ad6c9dbcf1c4e6d0
Contents?: true
Size: 787 Bytes
Versions: 5
Compression:
Stored size: 787 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') { !clusters.empty? } test('should be a kind of Fog::Vsphere::Compute::Clusters') { clusters.is_a? Fog::Vsphere::Compute::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.is_a? Fog::Vsphere::Compute::Datastore } test('have networks') { cluster.networks.first.is_a? Fog::Vsphere::Compute::Network } end end
Version data entries
5 entries across 5 versions & 1 rubygems