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:
parent
ab04e13314
commit
be637e6836
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue