Sha256: 5c5182d19db966a1e12212c3d392e98d7dc53a5dbd5106d51b3a9c0ac4ca3085
Contents?: true
Size: 753 Bytes
Versions: 13
Compression:
Stored size: 753 Bytes
Contents
Shindo.tests('Fog::Compute[:vsphere] | list_datastores request', ['vsphere']) do compute = Fog::Compute[:vsphere] tests('The response with datastore filter should') do response = compute.list_datastores(datacenter: 'Solutions') test('be a kind of Array') { response.is_a? Array } test('contain Hashes') { response.all? { |i| Hash === i } } test('have 2 elements') { response.length == 2 } end tests('The response with cluster filter should') do response = compute.list_datastores(datacenter: 'Solutions', cluster: 'Solutionscluster') test('be a kind of Array') { response.is_a? Array } test('contain Hashes') { response.all? { |i| Hash === i } } test('have a single element') { response.length == 1 } end end
Version data entries
13 entries across 11 versions & 2 rubygems