1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/google/requests/compute/operation_tests.rb

21 lines
662 B
Ruby
Raw Normal View History

2012-12-26 19:54:42 -05:00
Shindo.tests('Fog::Compute[:google] | operation requests', ['google']) do
pending if Fog.mocking?
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
# 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
end
tests("#list_zone_operations").succeeds do
2013-04-29 16:57:04 -04:00
zone_name = @google.list_zones.body["items"][0]["name"]
@google.list_zone_operations(zone_name)
2012-10-22 20:15:33 -04:00
end
end
end