Sha256: 50751031757c8680be93a0fd6dea1a758365b0c871627ca27225b56b0f474391
Contents?: true
Size: 1 KB
Versions: 25
Compression:
Stored size: 1 KB
Contents
Shindo.tests('Fog::Compute[:google] | zone requests', ['google']) do @google = Fog::Compute[:google] @get_zone_format = { 'kind' => String, 'id' => String, 'selfLink' => String, 'creationTimestamp' => String, 'name' => String, 'description' => String, 'status' => String, 'maintenanceWindows' => [{ 'name' => String, 'description' => String, 'beginTime' => String, 'endTime' => String, }], 'quotas' => [{ 'metric' => String, 'limit' => Float, 'usage' => Float}, ], } @list_zones_format = { 'kind' => String, 'id' => String, 'selfLink' => String, 'items' => [@get_zone_format] } tests('success') do tests("#get_zone").formats(@get_zone_format) do zone_name = @google.list_zones.body["items"][0]["name"] @google.get_zone(zone_name).body end tests("#list_zones").formats(@list_zones_format) do @google.list_zones.body end end end
Version data entries
25 entries across 25 versions & 3 rubygems