2012-12-26 19:54:42 -05:00
|
|
|
Shindo.tests('Fog::Compute[:google] | operation requests', ['google']) do
|
2012-10-22 20:15:33 -04:00
|
|
|
|
2012-12-26 19:54:42 -05:00
|
|
|
@google = Fog::Compute[:google]
|
2012-10-22 20:15:33 -04:00
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
2013-04-29 17:01:30 -04:00
|
|
|
# We are not testing the format here because operation formats are pretty
|
|
|
|
# extensive based on what has happened to you account, ever.
|
|
|
|
# https://developers.google.com/compute/docs/reference/latest/globalOperations#resource
|
|
|
|
tests("#list_global_operations").succeeds do
|
|
|
|
@google.list_global_operations
|
2013-04-29 15:27:37 -04:00
|
|
|
end
|
|
|
|
|
2013-04-29 17:01:30 -04:00
|
|
|
tests("#list_zone_operations").succeeds do
|
2013-04-29 16:57:04 -04:00
|
|
|
zone_name = @google.list_zones.body["items"][0]["name"]
|
2013-04-29 17:01:30 -04:00
|
|
|
@google.list_zone_operations(zone_name)
|
2012-10-22 20:15:33 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|