mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[digitalocean|compute] added destroy_server mock code
This commit is contained in:
parent
26ae294683
commit
9fbf1e8e13
1 changed files with 7 additions and 1 deletions
|
@ -19,7 +19,13 @@ module Fog
|
|||
class Mock
|
||||
|
||||
def destroy_server( id )
|
||||
Fog::Mock.not_implemented
|
||||
response = Excon::Response.new
|
||||
response.status = 200
|
||||
response.body = {
|
||||
"event_id" => Fog::Mock.random_numbers(1).to_i,
|
||||
"status" => "OK"
|
||||
}
|
||||
response
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue