From 7a8a42970230bc0e9eaa114a14eaf291992a1c1f Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Mon, 29 Apr 2013 16:10:33 -0700 Subject: [PATCH] get image tests closer to passing. --- lib/fog/google/models/compute/server.rb | 7 +++++-- tests/google/requests/compute/image_tests.rb | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/fog/google/models/compute/server.rb b/lib/fog/google/models/compute/server.rb index d5aec56ea..7c3b7cc8f 100644 --- a/lib/fog/google/models/compute/server.rb +++ b/lib/fog/google/models/compute/server.rb @@ -40,8 +40,11 @@ module Fog requires :machine_type requires :zone_name - data = service.insert_server(name, image_name, zone_name, - machine_type) + data = service.insert_server( + name, + image_name, + zone_name, + machine_type) service.servers.merge_attributes() end diff --git a/tests/google/requests/compute/image_tests.rb b/tests/google/requests/compute/image_tests.rb index 9c29e807d..55917b0b3 100644 --- a/tests/google/requests/compute/image_tests.rb +++ b/tests/google/requests/compute/image_tests.rb @@ -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