2011-01-03 14:23:51 -05:00
|
|
|
for provider, config in storage_providers
|
2010-12-29 21:12:51 -05:00
|
|
|
|
2012-08-15 11:19:32 -04:00
|
|
|
Shindo.tests("Storage[:#{provider}] | directories", [provider.to_s]) do
|
2010-12-29 21:12:51 -05:00
|
|
|
|
2011-05-24 20:32:27 -04:00
|
|
|
if !Fog.mocking? || config[:mocked]
|
2010-12-29 21:12:51 -05:00
|
|
|
|
2011-05-24 20:32:27 -04:00
|
|
|
directory_attributes = {
|
|
|
|
:key => 'fogdirectoriestests',
|
|
|
|
}.merge!(config[:directory_attributes] || {})
|
|
|
|
|
2011-06-15 17:26:43 -04:00
|
|
|
collection_tests(Fog::Storage[provider].directories, directory_attributes, config[:mocked])
|
2011-05-24 20:32:27 -04:00
|
|
|
|
|
|
|
end
|
2011-01-03 14:23:51 -05:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|