mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fixing misnaming of methods for mock classes in compute v2 digitalocean
This commit is contained in:
parent
3086f4651a
commit
5cc840c6fa
5 changed files with 11 additions and 8 deletions
|
@ -26,7 +26,7 @@ module Fog
|
|||
|
||||
# noinspection RubyStringKeysInHashInspection
|
||||
class Mock
|
||||
def create_server(name, public_key)
|
||||
def create_ssh_key(name, public_key)
|
||||
response = Excon::Response.new
|
||||
response.status = 202
|
||||
|
||||
|
|
|
@ -18,9 +18,11 @@ module Fog
|
|||
# noinspection RubyStringKeysInHashInspection
|
||||
class Mock
|
||||
def delete_server(_)
|
||||
response(:status => 204)
|
||||
response = Excon::Response.new
|
||||
response.status = 204
|
||||
response
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -18,9 +18,10 @@ module Fog
|
|||
# noinspection RubyStringKeysInHashInspection
|
||||
class Mock
|
||||
def delete_ssh_key(_)
|
||||
response(:status => 204)
|
||||
end
|
||||
response = Excon::Response.new
|
||||
response.status = 204
|
||||
response end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,7 +13,7 @@ module Fog
|
|||
|
||||
# noinspection RubyStringKeysInHashInspection
|
||||
class Mock
|
||||
def list_images
|
||||
def list_regions
|
||||
response = Excon::Response.new
|
||||
response.status = 200
|
||||
response.body = {
|
||||
|
|
|
@ -25,7 +25,7 @@ module Fog
|
|||
|
||||
# noinspection RubyStringKeysInHashInspection
|
||||
class Mock
|
||||
def update_server(key_id, name)
|
||||
def update_ssh_key(key_id, name)
|
||||
response = Excon::Response.new
|
||||
response.status = 200
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue