1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/cloudsigma/models/snapshots_tests.rb
Paul Thornthwaite 4fb6da70e1
Make CloudSigma snapshot tests pending
There appears to be a number of bugs in the CloudSigma mock interface.

The `snapshots` key is `nil` and adding a new snapshot fails. Working
around that, the tests timeout because there is no mechanism to change
the snapshots state from "creating" so it never becomes `available?`
2018-06-19 11:04:16 +01:00

16 lines
532 B
Ruby

Shindo.tests('Fog::Compute[:cloudsigma] | snapshots collection', ['cloudsigma']) do
pending if Fog.mocking?
volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogtest', :size => 1024**3, :media => :disk)
volume.wait_for { available? } unless Fog.mocking?
snapshots = Fog::Compute[:cloudsigma].snapshots
snapshot_create_args = {:name => 'fogtest', :drive => volume.uuid}
collection_tests(snapshots, snapshot_create_args, true) do
@instance.wait_for(timeout=60) { available? }
end
volume.destroy
end