1
0
Fork 0
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:
Philip Mark M. Deazeta 2012-11-15 22:29:57 +08:00 committed by Nelvin Driz
parent a9fb65985c
commit 41b7e330af

View file

@ -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)