mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|storage] added missing mocks
This commit is contained in:
parent
ac9c0ceb40
commit
3b0f9f50a2
1 changed files with 11 additions and 0 deletions
|
@ -48,6 +48,7 @@ module Fog
|
|||
require 'mime/types'
|
||||
@openstack_api_key = options[:openstack_api_key]
|
||||
@openstack_username = options[:openstack_username]
|
||||
@path = '/v1/AUTH_1234'
|
||||
end
|
||||
|
||||
def data
|
||||
|
@ -57,6 +58,16 @@ module Fog
|
|||
def reset_data
|
||||
self.class.data.delete(@openstack_username)
|
||||
end
|
||||
|
||||
def change_account(account)
|
||||
@original_path ||= @path
|
||||
version_string = @original_path.split('/')[1]
|
||||
@path = "/#{version_string}/#{account}"
|
||||
end
|
||||
|
||||
def reset_account_name
|
||||
@path = @original_path
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue