1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/compute/models/server_tests.rb

37 lines
979 B
Ruby
Raw Normal View History

2011-01-03 16:34:08 -05:00
for provider, config in compute_providers
Shindo.tests("#{provider}::Compute | server", [provider.to_s.downcase]) do
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
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
end
2011-01-03 16:34:08 -05:00
end
end