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:
parent
dd8db412db
commit
7a8a429702
2 changed files with 8 additions and 3 deletions
|
@ -40,8 +40,11 @@ module Fog
|
||||||
requires :machine_type
|
requires :machine_type
|
||||||
requires :zone_name
|
requires :zone_name
|
||||||
|
|
||||||
data = service.insert_server(name, image_name, zone_name,
|
data = service.insert_server(
|
||||||
machine_type)
|
name,
|
||||||
|
image_name,
|
||||||
|
zone_name,
|
||||||
|
machine_type)
|
||||||
service.servers.merge_attributes()
|
service.servers.merge_attributes()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ Shindo.tests('Fog::Compute[:google] | image requests', ['google']) do
|
||||||
'kind' => String,
|
'kind' => String,
|
||||||
'id' => String,
|
'id' => String,
|
||||||
'selfLink' => String,
|
'selfLink' => String,
|
||||||
'items' => []
|
'items' => [@get_image_format]
|
||||||
}
|
}
|
||||||
|
|
||||||
tests('success') do
|
tests('success') do
|
||||||
|
@ -62,6 +62,7 @@ Shindo.tests('Fog::Compute[:google] | image requests', ['google']) do
|
||||||
end
|
end
|
||||||
|
|
||||||
tests("#get_image").formats(@get_image_format) do
|
tests("#get_image").formats(@get_image_format) do
|
||||||
|
@google.insert_image(image_name, source_type)
|
||||||
@google.get_image(image_name).body
|
@google.get_image(image_name).body
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -70,6 +71,7 @@ Shindo.tests('Fog::Compute[:google] | image requests', ['google']) do
|
||||||
end
|
end
|
||||||
|
|
||||||
tests("#delete_image").formats(@delete_image_format) do
|
tests("#delete_image").formats(@delete_image_format) do
|
||||||
|
@google.insert_image(image_name, source_type)
|
||||||
@google.delete_image(image_name).body
|
@google.delete_image(image_name).body
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue