mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[digitalocean|compute] added list_servers mock code
This commit is contained in:
parent
7589c3b80a
commit
f8162a4ff7
1 changed files with 18 additions and 1 deletions
|
@ -16,7 +16,24 @@ module Fog
|
|||
class Mock
|
||||
|
||||
def list_servers
|
||||
Fog::Mock.not_implemented
|
||||
response = Excon::Response.new
|
||||
response.status = 200
|
||||
response.body = {
|
||||
"status" => "OK",
|
||||
"droplets" => [
|
||||
# Sample droplet
|
||||
#{
|
||||
# "backups_active" => nil,
|
||||
# "id" => 100823,
|
||||
# "image_id" => 420,
|
||||
# "name" => "test222",
|
||||
# "region_id" => 1,
|
||||
# "size_id" => 33,
|
||||
# "status" => "active"
|
||||
#}
|
||||
]
|
||||
}
|
||||
response
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue