2011-01-03 16:34:08 -05:00
|
|
|
for provider, config in compute_providers
|
|
|
|
|
2012-11-27 19:57:16 -05:00
|
|
|
next if [:ecloud].include?(provider)
|
|
|
|
|
2012-05-08 11:56:23 -04:00
|
|
|
Shindo.tests("Fog::Compute[:#{provider}] | server", [provider.to_s]) do
|
2011-01-03 16:34:08 -05:00
|
|
|
|
2012-12-20 15:54:02 -05:00
|
|
|
provider_attributes = config[:provider_attributes] || {}
|
|
|
|
provider_attributes.merge!(:provider => provider)
|
|
|
|
server_tests(Fog::Compute.new(provider_attributes), (config[:server_attributes] || {}), config[:mocked]) do
|
2011-02-22 19:36:15 -05:00
|
|
|
|
2011-03-11 16:06:44 -05:00
|
|
|
if Fog.mocking? && !config[:mocked]
|
|
|
|
pending
|
|
|
|
else
|
|
|
|
responds_to(:boostrap)
|
|
|
|
responds_to(:public_ip_address)
|
|
|
|
responds_to(:scp)
|
|
|
|
responds_to(:ssh)
|
2011-02-24 19:55:18 -05:00
|
|
|
end
|
|
|
|
|
2011-02-22 19:36:15 -05:00
|
|
|
end
|
2011-01-03 16:34:08 -05:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|