1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/ecloud/compute/models/compute_pool_tests.rb
2013-01-04 13:50:05 -05:00

17 lines
587 B
Ruby

provider, config = :ecloud, compute_providers[:ecloud]
Shindo.tests("Fog::Compute[:#{provider}] | compute_pools", [provider.to_s]) do
connection = Fog::Compute[provider]
@organization = connection.organizations.first
@environment = @organization.environments.first
tests('#all').succeeds do
returns(false) { @environment.compute_pools.all.empty? }
end
tests('#get').succeeds do
compute_pool = @environment.compute_pools.all.first
fetched_compute_pool = connection.compute_pools.get(compute_pool.href)
returns(true) { !fetched_compute_pool.nil? }
end
end