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

20 lines
504 B
Ruby
Raw Normal View History

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]
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-03-26 11:27:42 -04:00
end