mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
360 B
Ruby
19 lines
360 B
Ruby
|
for provider, config in dns_providers
|
||
|
|
||
|
params = {
|
||
|
:key => 'fog_files_tests',
|
||
|
:body => lorem_file
|
||
|
}.merge!(config[:files_params] || {})
|
||
|
|
||
|
if !Fog.mocking? || mocks_implemented
|
||
|
|
||
|
@directory = provider.directories.create(:key => 'fogfilestests')
|
||
|
|
||
|
collection_tests(@directory.files, params, config[:mocked])
|
||
|
|
||
|
@directory.destroy
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|