1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #1614 from blowmage/fix_openstack_mock_methods

Fix openstack mock methods
This commit is contained in:
Dan Prince 2013-02-28 17:48:07 -08:00
commit c847af929c
6 changed files with 6 additions and 6 deletions

View file

@ -16,7 +16,7 @@ module Fog
end
class Mock
def allocate_address
def allocate_address(pool = nil)
response = Excon::Response.new
response.status = 200
response.headers = {

View file

@ -16,7 +16,7 @@ module Fog
class Mock
def get_snapshot_details(detailed=true)
def get_snapshot_details(snapshot_id)
response = Excon::Response.new
response.status = 200
response.body = {

View file

@ -16,7 +16,7 @@ module Fog
class Mock
def get_volume_details(detailed=true)
def get_volume_details(volume_id)
response = Excon::Response.new
response.status = 200
response.body = {

View file

@ -19,7 +19,7 @@ module Fog
class Mock
def list_servers
def list_servers(options = {})
response = Excon::Response.new
data = list_servers_detail.body['servers']
servers = []

View file

@ -20,7 +20,7 @@ module Fog
end # class Real
class Mock
def remove_fixed_ip(server_id, network_id)
def remove_fixed_ip(server_id, address)
true
end # def remove_fixed_ip
end # class Mock

View file

@ -16,7 +16,7 @@ module Fog
class Mock
def update_server(server_id, options)
def update_server(server_id, options = {})
response = Excon::Response.new
if server = list_servers_detail.body['servers'].detect {|_| _['id'] == server_id}
if options['name']