2011-01-03 16:34:08 -05:00
|
|
|
for provider, config in compute_providers
|
|
|
|
|
|
|
|
Shindo.tests("#{provider}::Compute | server", [provider.to_s.downcase]) do
|
|
|
|
|
2011-02-22 19:36:15 -05:00
|
|
|
server_tests(provider[:compute], (config[:server_attributes] || {}), config[:mocked]) do
|
|
|
|
|
|
|
|
tests('responds_to(:bootstrap)') do
|
|
|
|
pending if Fog.mocking? && !config[:mocked]
|
|
|
|
@instance.responds_to(:bootstrap)
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('responds_to(:private_ip_address)') do
|
|
|
|
pending if Fog.mocking? && !config[:mocked]
|
|
|
|
@instance.responds_to(:public_ip_address)
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('responds_to(:public_ip_address)') do
|
|
|
|
pending if Fog.mocking? && !config[:mocked]
|
|
|
|
@instance.responds_to(:public_ip_address)
|
|
|
|
end
|
|
|
|
|
2011-02-24 19:55:18 -05:00
|
|
|
tests('responds_to(:scp)') do
|
|
|
|
pending if Fog.mocking? && !config[:mocked]
|
|
|
|
@instance.responds_to(:ssh)
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('responds_to(:ssh)') do
|
|
|
|
pending if Fog.mocking? && !config[:mocked]
|
|
|
|
@instance.responds_to(:ssh)
|
|
|
|
end
|
|
|
|
|
2011-02-22 19:36:15 -05:00
|
|
|
end
|
2011-01-03 16:34:08 -05:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|