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/ssh_key_tests.rb
2013-01-04 13:50:05 -05:00

19 lines
534 B
Ruby

provider, config = :ecloud, compute_providers[:ecloud]
Shindo.tests("Fog::Compute[:#{provider}] | ssh_keys", [provider.to_s]) do
connection = Fog::Compute[provider]
@organization = connection.organizations.first
@admin_organization = @organization.admin
@admin_organization.reload
@ssh_keys = @admin_organization.ssh_keys
tests('#all').succeeds do
returns(false) { @ssh_keys.empty? }
end
tests('#get').succeeds do
ssh_key = @ssh_keys.first
returns(false) { @ssh_keys.get(ssh_key.href).nil? }
end
end