mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[tests] non-destructively generate id for get('fake') == nil tests
This commit is contained in:
parent
efad151889
commit
fa77c2ff1d
2 changed files with 3 additions and 2 deletions
|
@ -72,6 +72,7 @@ module Fog
|
|||
'instance-id' => 'instanceId',
|
||||
'status' => 'status'
|
||||
}
|
||||
|
||||
for filter_key, filter_value in filters
|
||||
if attachment_key = filter_key.split('attachment.')[1]
|
||||
aliased_key = attachment_aliases[filter_key]
|
||||
|
|
|
@ -39,8 +39,8 @@ def collection_tests(collection, params = {}, mocks_implemented = true)
|
|||
|
||||
if !Fog.mocking? || mocks_implemented
|
||||
@identity = @identity.to_s
|
||||
@identity.gsub!(/[a-zA-Z]/) { Fog::Mock.random_letters(1) }
|
||||
@identity.gsub!(/\d/) { Fog::Mock.random_numbers(1) }
|
||||
@identity = @identity.gsub(/[a-zA-Z]/) { Fog::Mock.random_letters(1) }
|
||||
@identity = @identity.gsub(/\d/) { Fog::Mock.random_numbers(1) }
|
||||
@identity
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue