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:
parent
f8162a4ff7
commit
e9933dab96
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue