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

This commit is contained in:
Sergio Rubio 2013-03-18 11:24:15 +01:00
parent ab04e13314
commit be637e6836

View file

@ -16,7 +16,20 @@ module Fog
class Mock
def list_flavors
Fog::Mock.not_implemented
response = Excon::Response.new
response.status = 200
response.body = {
"status" => "OK",
"sizes" => [
{"id" => 33,"name" => "512MB"},
{"id" => 34,"name" => "1GB"},
{"id" => 35,"name" => "2GB"},
{"id" => 36,"name" => "4GB"},
{"id" => 37,"name" => "8GB"},
{"id" => 38,"name" => "16GB"}
]
}
response
end
end