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

19 lines
504 B
Ruby

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)
end
end