2013-03-26 11:27:42 -04:00
|
|
|
def snapshot_tests(connection, params, mocks_implemented = true)
|
|
|
|
model_tests(connection.snapshots, params[:snapshot_attributes], mocks_implemented) do
|
|
|
|
if !Fog.mocking? || mocks_implemented
|
|
|
|
@instance.wait_for { ready? }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Shindo.tests("Fog::Compute[:cloudstack] | snapshot", "cloudstack") do
|
|
|
|
|
|
|
|
config = compute_providers[:cloudstack]
|
|
|
|
|
2013-04-20 16:39:06 -04:00
|
|
|
snapshot_tests(Fog::Compute[:cloudstack], config, config[:mocked])
|
|
|
|
|
|
|
|
tests('has volume relation') do
|
|
|
|
responds_to(:volume)
|
2013-03-26 11:27:42 -04:00
|
|
|
end
|
2013-04-20 16:39:06 -04:00
|
|
|
|
2013-03-26 11:27:42 -04:00
|
|
|
end
|