1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[digitalocean|compute] added list_regions mock code

This commit is contained in:
Sergio Rubio 2013-03-18 11:27:10 +01:00
parent f8162a4ff7
commit e9933dab96

View file

@ -16,7 +16,16 @@ module Fog
class Mock
def list_regions
Fog::Mock.not_implemented
response = Excon::Response.new
response.status = 200
response.body = {
"status" => "OK",
"regions" => [
{"id" => 1,"name" => "New York 1"},
{"id" => 2,"name" => "Amsterdam 1"}
]
}
response
end
end