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

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?`
This commit is contained in:
Paul Thornthwaite 2018-06-19 10:39:58 +01:00
parent 33d438e440
commit 4fb6da70e1
No known key found for this signature in database
GPG key ID: 30DD669AB20732D2
3 changed files with 4 additions and 0 deletions

View file

@ -1,4 +1,6 @@
Shindo.tests('Fog::Compute[:cloudsigma] | snapshot model', ['cloudsigma']) do
pending if Fog.mocking?
volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogmodeltest', :size => 1024**3, :media => :disk)
volume.wait_for { available? } unless Fog.mocking?

View file

@ -1,4 +1,5 @@
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?

View file

@ -1,4 +1,5 @@
Shindo.tests('Fog::Compute[:cloudsigma] | snapshot requests', ['cloudsigma']) do
pending if Fog.mocking?
@snapshot_format = {
'uuid' => String,