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_servers mock code

This commit is contained in:
Sergio Rubio 2013-03-18 11:25:06 +01:00
parent 7589c3b80a
commit f8162a4ff7

View file

@ -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