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