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

Shindo tests pass.

Turns out our UUIDs for pre-built drives are way out of date.
This commit is contained in:
Sean Handley 2012-06-22 16:26:11 +01:00
parent 14efc2f14c
commit aaabc1d6a9
2 changed files with 6 additions and 3 deletions

View file

@ -13,6 +13,7 @@ module Fog
attribute :size
attribute :claimed
attribute :status
attribute :imaging
attribute :encryption_cipher, :aliases => 'encryption:cipher'
def save

View file

@ -16,7 +16,7 @@ Shindo.tests('Fog::Compute[:serverlove] | drive requests', ['serverlove']) do
tests('success') do
attributes = { 'name' => 'Test', 'size' => '1234567890' }
attributes = { 'name' => 'Test', 'size' => '4234567890' }
tests("#create_image").formats(@image_format) do
@image = Fog::Compute[:serverlove].create_image(attributes).body
@ -30,11 +30,13 @@ Shindo.tests('Fog::Compute[:serverlove] | drive requests', ['serverlove']) do
@image['name'] = "Diff"
Fog::Compute[:serverlove].update_image(@image['drive'], { name: @image['name'], size: @image['size']})
Fog::Compute[:serverlove].images.get(@image['drive']).name == "Diff"
end
tests("#load_standard_image").succeeds do
tests("#load_standard_image").returns(true) do
# Load centos
Fog::Compute[:serverlove].load_standard_image(@image['drive'], '679f5f44-0be7-4745-a658-cccd4334c1aa')
Fog::Compute[:serverlove].load_standard_image(@image['drive'], '88ed067f-d2b8-42ce-a25f-5297818a3b6f')
Fog::Compute[:serverlove].images.get(@image['drive']).imaging != "" # This will be "x%" when imaging
end
tests("#destroy_image").succeeds do