mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|identity] Add attr_accessor :unscoped_token
to Mock
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
This commit is contained in:
parent
a9fb65985c
commit
41b7e330af
1 changed files with 3 additions and 0 deletions
|
@ -56,9 +56,11 @@ module Fog
|
|||
|
||||
class Mock
|
||||
attr_reader :auth_token
|
||||
attr_reader :unscoped_token
|
||||
attr_reader :auth_token_expiration
|
||||
attr_reader :current_user
|
||||
attr_reader :current_tenant
|
||||
attr_reader :unscoped_token
|
||||
|
||||
def self.data
|
||||
@users ||= {}
|
||||
|
@ -116,6 +118,7 @@ module Fog
|
|||
@current_user = self.data[:users].values.find do |u|
|
||||
u['name'] == @openstack_username
|
||||
end
|
||||
@current_tenant_id = Fog::Mock.random_hex(32)
|
||||
|
||||
unless @current_user
|
||||
@current_user_id = Fog::Mock.random_hex(32)
|
||||
|
|
Loading…
Reference in a new issue