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

get image tests closer to passing.

This commit is contained in:
Nat Welch 2013-04-29 16:10:33 -07:00
parent dd8db412db
commit 7a8a429702
2 changed files with 8 additions and 3 deletions

View file

@ -40,7 +40,10 @@ module Fog
requires :machine_type
requires :zone_name
data = service.insert_server(name, image_name, zone_name,
data = service.insert_server(
name,
image_name,
zone_name,
machine_type)
service.servers.merge_attributes()
end

View file

@ -49,7 +49,7 @@ Shindo.tests('Fog::Compute[:google] | image requests', ['google']) do
'kind' => String,
'id' => String,
'selfLink' => String,
'items' => []
'items' => [@get_image_format]
}
tests('success') do
@ -62,6 +62,7 @@ Shindo.tests('Fog::Compute[:google] | image requests', ['google']) do
end
tests("#get_image").formats(@get_image_format) do
@google.insert_image(image_name, source_type)
@google.get_image(image_name).body
end
@ -70,6 +71,7 @@ Shindo.tests('Fog::Compute[:google] | image requests', ['google']) do
end
tests("#delete_image").formats(@delete_image_format) do
@google.insert_image(image_name, source_type)
@google.delete_image(image_name).body
end